t20-common-lib 0.15.40 → 0.15.41
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
|
@@ -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
|
}
|