功能变化: 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>
<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,