提交 1b7ae16f authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 【ID1004125】【仪表板】添加 文本搜索组件,搜索框不显示输入的内容

上级 b42e1e28
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论