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

fix: 修复仪表板查询组件是日期样式

上级 879d2841
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
:is="config.component" :is="config.component"
v-if="config.type==='custom'" v-if="config.type==='custom'"
:id="'component' + config.id" :id="'component' + config.id"
class="component-custom"
:style="getComponentStyleDefault(config.style)" :style="getComponentStyleDefault(config.style)"
:out-style="config.style" :out-style="config.style"
:element="config" :element="config"
...@@ -99,4 +100,9 @@ export default { ...@@ -99,4 +100,9 @@ export default {
.gap_class{ .gap_class{
padding:3px; padding:3px;
} }
.component-custom {
outline: none;
width: 100%;
height: 100%;
}
</style> </style>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
:start-placeholder="options.attrs.startPlaceholder" :start-placeholder="options.attrs.startPlaceholder"
:end-placeholder="options.attrs.endPlaceholder" :end-placeholder="options.attrs.endPlaceholder"
:placeholder="options.attrs.placeholder" :placeholder="options.attrs.placeholder"
style="min-height: 36px;"
@change="dateChange" @change="dateChange"
/> />
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<el-input <el-input
v-if="options!== null && options.attrs!==null" v-if="options!== null && options.attrs!==null"
v-model="options.value" v-model="values"
resize="vertical" resize="vertical"
:placeholder="options.attrs.placeholder" :placeholder="options.attrs.placeholder"
@keyup.enter.native="search" @keyup.enter.native="search"
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
setCondition() { setCondition() {
const param = { const param = {
component: this.element, component: this.element,
value: !this.options.value ? [] : Array.isArray(this.options.value) ? this.options.value : [this.options.value], value: !this.values ? [] : Array.isArray(this.values) ? this.values : [this.values],
operator: this.operator operator: this.operator
} }
this.inDraw && this.$store.commit('addViewFilter', param) this.inDraw && this.$store.commit('addViewFilter', param)
......
...@@ -628,7 +628,7 @@ export default { ...@@ -628,7 +628,7 @@ export default {
min-width: 230px !important; min-width: 230px !important;
max-width: 260px !important; max-width: 260px !important;
height: 100%; height: 100%;
min-height: 390px; min-height: 100px;
padding: 5px; padding: 5px;
border: none; border: none;
padding-bottom: 20px !important; padding-bottom: 20px !important;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论