功能变化: selector-table 组件优化
parent
54273443c8
commit
c9544df61f
|
@ -54,7 +54,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div slot="reference" ref="divRef" :style="{'pointerEvents': disabled?'none':''}">
|
<div slot="reference" ref="divRef" :style="{'pointerEvents': disabled?'none':''}">
|
||||||
<div v-if="currentValue" class="div-input el-input__inner" :class="disabled?'div-disabled':''">
|
<div v-if="currentValue" class="div-input el-input__inner" :class="disabled?'div-disabled':''">
|
||||||
<div>
|
<div v-if="currentValue instanceof Array">
|
||||||
<el-tag
|
<el-tag
|
||||||
style="margin-right: 5px"
|
style="margin-right: 5px"
|
||||||
v-for="(item,index) in currentValue"
|
v-for="(item,index) in currentValue"
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-input v-else placeholder="请选择" slot:reference clearable :disabled="disabled"></el-input>
|
<el-input v-else placeholder="请选择" slot:reference clearable :disabled="disabled" :size="size"></el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,6 +95,11 @@ export default {
|
||||||
required: false,
|
required: false,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
size: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
// 数据字典配置
|
// 数据字典配置
|
||||||
dict: {
|
dict: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|
Loading…
Reference in New Issue