vue2-client 1.15.86 → 1.15.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -69,7 +69,7 @@
|
|
69
69
|
:type="data.icon"/>
|
70
70
|
<span
|
71
71
|
v-html="highlightKeyword(node.label, searchInput)"></span>
|
72
|
-
<span v-if="countVisible">{{
|
72
|
+
<span v-if="config.countVisible">{{
|
73
73
|
data.hasOwnProperty('count') ? ' (' + data.count + ')' : ''
|
74
74
|
}}</span>
|
75
75
|
</a-tooltip>
|
@@ -134,11 +134,6 @@ export default {
|
|
134
134
|
type: Boolean,
|
135
135
|
default: false
|
136
136
|
},
|
137
|
-
// 是否显示子级数量
|
138
|
-
countVisible: {
|
139
|
-
type: Boolean,
|
140
|
-
default: true
|
141
|
-
},
|
142
137
|
// 收起开关默认值设置
|
143
138
|
treeDisplayConfig: {
|
144
139
|
type: Object,
|
@@ -157,7 +152,9 @@ export default {
|
|
157
152
|
children: 'children'
|
158
153
|
},
|
159
154
|
localTreeData: this.treeData,
|
160
|
-
config: {
|
155
|
+
config: {
|
156
|
+
countVisible: true
|
157
|
+
},
|
161
158
|
// 暂存选中的数据
|
162
159
|
expandedKeys: [],
|
163
160
|
// 是否加载中
|
@@ -194,7 +191,8 @@ export default {
|
|
194
191
|
},
|
195
192
|
async created () {
|
196
193
|
if (this.configName) {
|
197
|
-
|
194
|
+
const config = await getConfigByNameAsync(this.configName, this.serviceName, this.env === 'dev')
|
195
|
+
this.config = Object.assign({}, config)
|
198
196
|
} else if (this.configValue) {
|
199
197
|
this.config = this.configValue
|
200
198
|
} else {
|