mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
限制保留标签
This commit is contained in:
parent
83c277363c
commit
bd3b3270e9
@ -292,7 +292,8 @@ export default {
|
|||||||
this.configurationPage.allQuickCommandTags,
|
this.configurationPage.allQuickCommandTags,
|
||||||
"默认",
|
"默认",
|
||||||
"未分类",
|
"未分类",
|
||||||
"搜索结果"
|
"搜索结果",
|
||||||
|
"来自分享"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -139,6 +139,7 @@
|
|||||||
use-chips
|
use-chips
|
||||||
multiple
|
multiple
|
||||||
new-value-mode="add-unique"
|
new-value-mode="add-unique"
|
||||||
|
@new-value="tagVerify"
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
:options="allQuickCommandTags"
|
:options="allQuickCommandTags"
|
||||||
>
|
>
|
||||||
@ -373,6 +374,12 @@ export default {
|
|||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
tagVerify(val, done) {
|
||||||
|
if (["默认", "未分类", "搜索结果", "来自分享"].includes(val)) {
|
||||||
|
return done(`_${val}_`);
|
||||||
|
}
|
||||||
|
done(val);
|
||||||
|
},
|
||||||
// 平台为空自动补充
|
// 平台为空自动补充
|
||||||
platformVerify() {
|
platformVerify() {
|
||||||
this.currentCommand.features.platform?.length > 0 ||
|
this.currentCommand.features.platform?.length > 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user