fix: 【ID1004125】【仪表板】添加 文本搜索组件,搜索框不显示输入的内容
This commit is contained in:
parent
b42e1e2855
commit
1b7ae16fa6
@ -89,6 +89,7 @@ export default {
|
||||
if (this.curComponent) {
|
||||
this.cursors = this.getCursor() // 根据旋转角度获取光标位置
|
||||
}
|
||||
this.element.type === 'custom' && (this.pointList = ['l', 'r'])
|
||||
|
||||
eventBus.$on('runAnimation', () => {
|
||||
if (this.element === this.curComponent) {
|
||||
@ -221,7 +222,7 @@ export default {
|
||||
|
||||
handleMouseDownOnShape(e) {
|
||||
this.$store.commit('setClickComponentStatus', true)
|
||||
if (this.element.component !== 'v-text' && this.element.component !== 'rect-shape') {
|
||||
if (this.element.component !== 'v-text' && this.element.component !== 'rect-shape' && this.element.component !== 'de-input-search') {
|
||||
e.preventDefault()
|
||||
}
|
||||
|
||||
|
||||
@ -3,9 +3,10 @@
|
||||
<el-input
|
||||
v-if="options!== null && options.attrs!==null"
|
||||
v-model="options.value"
|
||||
style="width: 260px"
|
||||
resize="vertical"
|
||||
:placeholder="options.attrs.placeholder"
|
||||
@keyup.enter.native="search"
|
||||
@dblclick="setEdit"
|
||||
>
|
||||
|
||||
<el-button slot="append" icon="el-icon-search" @click="search" />
|
||||
@ -30,7 +31,8 @@ export default {
|
||||
return {
|
||||
options: null,
|
||||
operator: 'like',
|
||||
values: null
|
||||
values: null,
|
||||
canEdit: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -48,6 +50,9 @@ export default {
|
||||
operator: this.operator
|
||||
}
|
||||
this.inDraw && this.$store.dispatch('conditions/add', param)
|
||||
},
|
||||
setEdit() {
|
||||
this.canEdit = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ const drawPanel = {
|
||||
type: 'custom',
|
||||
style: {
|
||||
width: 300,
|
||||
height: 47,
|
||||
height: 45.5,
|
||||
fontSize: 14,
|
||||
fontWeight: 500,
|
||||
lineHeight: '',
|
||||
|
||||
@ -187,6 +187,9 @@ div:focus {
|
||||
|
||||
.custom-component-class {
|
||||
width: 100%;
|
||||
div.el-input-group__append {
|
||||
width: 10% !important;
|
||||
}
|
||||
div {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user