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

feat: 下拉框样式

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