bug修复: 修复table-selector组件问题

pull/107/head
猿小天 2023-08-21 11:24:57 +08:00
parent f9e3261ae8
commit d0cad5c939
1 changed files with 2 additions and 41 deletions

View File

@ -64,7 +64,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 v-if="currentValue.length>0" class="div-input el-input__inner" :class="disabled?'div-disabled':''">
<div v-if="currentValue instanceof Array">
<el-tag
style="margin-right: 5px"
@ -170,26 +170,6 @@ export default {
}
},
watch: {
// value: {
// handler (value, oldVal) {
// // inputv-modelvalue
// // watchvaluechange
// // changevalueform-data-change
// this.$emit('change', value)
// this.$emit('input', value)
// // currentValue
// if (Array.isArray(value) && value.length === 0) {
// this.currentValue = null
// this.multipleSelection = null
// } else {
// if (value && this.dispatch) {
// this.dispatch('ElFormItem', 'el.form.blur')
// }
// }
// },
// deep: true,
// immediate: true
// },
multipleSelection: {
handler (newValue, oldVal) {
const { tableConfig } = this._elProps
@ -202,26 +182,7 @@ export default {
},
deep: true,
immediate: true
},
// currentValue (newValue, oldVal) {
// const { tableConfig } = this._elProps
// const { value } = this.dict
// if (newValue) {
// if (!tableConfig.multiple) {
// if (newValue[0]) {
// this.$emit('input', newValue[0][value])
// this.$emit('change', newValue[0][value])
// }
// } else {
// console.log(newValue)
// const result = newValue.map((item) => {
// return item[value]
// })
// this.$emit('input', result)
// this.$emit('change', result)
// }
// }
// }
}
},
mounted () {
// currentValue