功能变化: selector-table 组件优化

pull/102/head
李强 2023-07-08 19:15:06 +08:00
parent 54273443c8
commit c9544df61f
1 changed files with 7 additions and 2 deletions

View File

@ -54,7 +54,7 @@
</div>
<div slot="reference" ref="divRef" :style="{'pointerEvents': disabled?'none':''}">
<div v-if="currentValue" class="div-input el-input__inner" :class="disabled?'div-disabled':''">
<div>
<div v-if="currentValue instanceof Array">
<el-tag
style="margin-right: 5px"
v-for="(item,index) in currentValue"
@ -70,7 +70,7 @@
</el-tag>
</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>
</el-popover>
</div>
@ -95,6 +95,11 @@ export default {
required: false,
default: ''
},
size: {
type: String,
required: false,
default: ''
},
//
dict: {
type: Object,