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

feat: 下拉框样式

上级 5af4158d
<template> <template>
<el-select v-if="options!== null && options.attrs!==null" v-model="options.value" :multiple="options.attrs.multiple" :style="element.style" :placeholder="options.attrs.placeholder" @change="changeValue"> <el-select v-if="options!== null && options.attrs!==null" v-model="values" :multiple="options.attrs.multiple" :placeholder="options.attrs.placeholder" @change="changeValue">
<el-option <el-option
v-for="item in options.attrs.datas" v-for="item in options.attrs.datas"
:key="item[options.attrs.key]" :key="item[options.attrs.key]"
...@@ -28,12 +28,17 @@ export default { ...@@ -28,12 +28,17 @@ export default {
data() { data() {
return { return {
options: null, options: null,
operator: 'eq' operator: 'eq',
values: null
} }
}, },
watch: { watch: {
'element.style': function(value) { 'options.attrs.multiple': function(value) {
// console.log(value) if (value) {
this.values = []
} else {
this.values = null
}
} }
}, },
......
...@@ -27,8 +27,8 @@ const dialogPanel = { ...@@ -27,8 +27,8 @@ const dialogPanel = {
const drawPanel = { const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 200, width: 300,
height: 22, height: 35,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -395,7 +395,7 @@ export default { ...@@ -395,7 +395,7 @@ export default {
multipleChange(value) { multipleChange(value) {
// this.componentInfo.options.attrs.multiple = value // this.componentInfo.options.attrs.multiple = value
this.componentInfo.options.value = null // this.componentInfo.options.value = null
this.$emit('re-fresh-component', this.componentInfo) this.$emit('re-fresh-component', this.componentInfo)
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论