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

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

上级 b42e1e28
...@@ -89,6 +89,7 @@ export default { ...@@ -89,6 +89,7 @@ export default {
if (this.curComponent) { if (this.curComponent) {
this.cursors = this.getCursor() // 根据旋转角度获取光标位置 this.cursors = this.getCursor() // 根据旋转角度获取光标位置
} }
this.element.type === 'custom' && (this.pointList = ['l', 'r'])
eventBus.$on('runAnimation', () => { eventBus.$on('runAnimation', () => {
if (this.element === this.curComponent) { if (this.element === this.curComponent) {
...@@ -221,7 +222,7 @@ export default { ...@@ -221,7 +222,7 @@ export default {
handleMouseDownOnShape(e) { handleMouseDownOnShape(e) {
this.$store.commit('setClickComponentStatus', true) 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() e.preventDefault()
} }
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
<el-input <el-input
v-if="options!== null && options.attrs!==null" v-if="options!== null && options.attrs!==null"
v-model="options.value" v-model="options.value"
style="width: 260px" resize="vertical"
:placeholder="options.attrs.placeholder" :placeholder="options.attrs.placeholder"
@keyup.enter.native="search" @keyup.enter.native="search"
@dblclick="setEdit"
> >
<el-button slot="append" icon="el-icon-search" @click="search" /> <el-button slot="append" icon="el-icon-search" @click="search" />
...@@ -30,7 +31,8 @@ export default { ...@@ -30,7 +31,8 @@ export default {
return { return {
options: null, options: null,
operator: 'like', operator: 'like',
values: null values: null,
canEdit: false
} }
}, },
created() { created() {
...@@ -48,6 +50,9 @@ export default { ...@@ -48,6 +50,9 @@ export default {
operator: this.operator operator: this.operator
} }
this.inDraw && this.$store.dispatch('conditions/add', param) this.inDraw && this.$store.dispatch('conditions/add', param)
},
setEdit() {
this.canEdit = true
} }
} }
} }
......
...@@ -22,7 +22,7 @@ const drawPanel = { ...@@ -22,7 +22,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 47, height: 45.5,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -187,6 +187,9 @@ div:focus { ...@@ -187,6 +187,9 @@ div:focus {
.custom-component-class { .custom-component-class {
width: 100%; width: 100%;
div.el-input-group__append {
width: 10% !important;
}
div { div {
width: 100% !important; width: 100% !important;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论