This commit is contained in:
670788339
2025-11-04 09:53:18 +08:00
parent be10b56885
commit 01bbe6c5c4

View File

@@ -191,6 +191,7 @@ export default {
// 新增:处理选择变化事件
handleSelectionChange(newValues) {
console.log('handleSelectionChange = ' + newValues)
// 检查数量限制
if (newValues.length > this.maxTags) {
this.$message.warning(`最多只能选择${this.maxTags}个标签`);
@@ -202,7 +203,8 @@ export default {
// 更新前保存当前状态
this.previousTags = [...newValues];
this.$emit('change', this.displayTags);
console.log('-- handleSelectionChange clearInput --- this.$refs.tagSelect = ' + this.$refs.tagSelect )
console.log('-- handleSelectionChange clearInput --- input.value = ' + this.$refs.tagSelect.$refs.input )
this.clearInput();
},