新增DropdownTable组件

This commit is contained in:
aoshiguchen
2022-09-01 22:43:30 +08:00
parent 3dd258890f
commit 376ebfa86a
2 changed files with 3 additions and 7 deletions
@@ -22,10 +22,6 @@
type: String, type: String,
default: '' default: ''
}, },
index: {
type: Number,
default: () => 0
},
placeholder: { placeholder: {
type: String, type: String,
default: '请选择' default: '请选择'
@@ -84,8 +80,8 @@
} }
}, },
methods: { methods: {
handleRowClick(val) { handleRowClick(val, column) {
this.$emit('selectedData', { list: val, index: this.index }) this.$emit('selectedData', { list: val, index: column })
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
this.popVisible = false this.popVisible = false
}, 200) }, 200)
@@ -84,7 +84,7 @@
:name.sync="temp.licenseId" :name.sync="temp.licenseId"
:tableData= "licenseList" :tableData= "licenseList"
@selectedData="selectedFeeItem" @selectedData="selectedFeeItem"
placeholder="选择费用项" placeholder="选择"
/> />
</el-form-item> </el-form-item>