标签输入框调整

This commit is contained in:
670788339
2025-10-30 19:10:17 +08:00
parent d94bcf96a1
commit 3f028e5cd8
2 changed files with 30 additions and 1 deletions

View File

@@ -604,6 +604,11 @@ export default {
// 处理标签变化事件
handleTagsChange(tags) {
console.log("父组件:",tags)
// 限制最多5个标签
if (tags.length > 5) {
this.$message.warning('最多只能选择5个标签')
return
}
let ids = "";
tags.forEach(tag=>{
console.log("父组件name : ",tag.tagName)