t20-common-lib 0.15.40 → 0.15.42
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
|
@@ -188,14 +188,17 @@ export default {
|
|
|
188
188
|
current: 1,
|
|
189
189
|
pageSize: 20,
|
|
190
190
|
total: 0
|
|
191
|
-
}
|
|
191
|
+
},
|
|
192
|
+
useTabMode: false
|
|
192
193
|
}
|
|
193
194
|
},
|
|
194
195
|
watch: {
|
|
195
196
|
tabList: {
|
|
196
197
|
handler() {
|
|
198
|
+
this.useTabMode = Array.isArray(this.tabList) && this.tabList.length > 0
|
|
197
199
|
this.initActiveTab()
|
|
198
200
|
},
|
|
201
|
+
deep: true,
|
|
199
202
|
immediate: true
|
|
200
203
|
},
|
|
201
204
|
errorList: {
|
|
@@ -219,9 +222,6 @@ export default {
|
|
|
219
222
|
}
|
|
220
223
|
},
|
|
221
224
|
computed: {
|
|
222
|
-
useTabMode() {
|
|
223
|
-
return Array.isArray(this.tabList) && this.tabList.length > 0
|
|
224
|
-
},
|
|
225
225
|
tableProTag() {
|
|
226
226
|
const Vue = this.$root.$options._base
|
|
227
227
|
return resolveTableProComponent(Vue)
|
|
@@ -301,7 +301,7 @@ export default {
|
|
|
301
301
|
return !!(this.validateResult.errorList && this.validateResult.errorList.length)
|
|
302
302
|
},
|
|
303
303
|
importTipText() {
|
|
304
|
-
return this.validateResult
|
|
304
|
+
return (this.validateResult && this.validateResult.importTip) || '上述数据输入有误,请修改导入文件中相关信息!'
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
307
|
methods: {
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* @param {string} [fallback]
|
|
7
7
|
*/
|
|
8
8
|
export function resolvePrefixedComponent(Vue, candidates, fallback) {
|
|
9
|
-
if (!Vue || !candidates
|
|
10
|
-
return fallback || candidates
|
|
9
|
+
if (!Vue || !candidates || !candidates.length) {
|
|
10
|
+
return fallback || (candidates && candidates[0])
|
|
11
11
|
}
|
|
12
|
-
for (
|
|
12
|
+
for (let i = 0; i < candidates.length; i++) {
|
|
13
|
+
const name = candidates[i]
|
|
13
14
|
if (Vue.component(name)) {
|
|
14
15
|
return name
|
|
15
16
|
}
|