【update】标签管理优化 + 文档拆分查看代码修改接口

This commit is contained in:
fengchenchen
2023-09-11 17:42:17 +08:00
parent 30f9260fff
commit 9385dbda09
12 changed files with 118 additions and 49 deletions
+14 -1
View File
@@ -7,7 +7,16 @@
<a-radio-button v-for="(item, key) in dictOptions" :key="key" :value="item.value">{{ item.text }}</a-radio-button>
</a-radio-group>
<a-select v-else-if="tagType==='select'" :getPopupContainer = "getPopupContainer" :placeholder="placeholder" :disabled="disabled" :value="getValueSting" @change="handleInput">
<a-select
v-else-if="tagType==='select'"
:getPopupContainer = "getPopupContainer"
:placeholder="placeholder"
:disabled="disabled"
:value="getValueSting"
show-search
:filter-option="filterOption"
@change="handleInput"
>
<a-select-option :value="undefined">请选择</a-select-option>
<a-select-option v-for="(item, key) in dictOptions" :key="key" :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
@@ -63,6 +72,10 @@ export default {
}
},
methods: {
filterOption (input, option) {
const text = option.componentOptions.children[0].text || option.componentOptions.children[0].data.attrs.title
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
initDictData () {
// 优先从缓存中读取字典配置
if (getDictItemsFromCache(this.dictCode)) {