vue2-client 1.8.144 → 1.8.145
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
|
@@ -397,7 +397,7 @@ export default {
|
|
|
397
397
|
// 替换columns,合并data
|
|
398
398
|
config.columns[i] = []
|
|
399
399
|
const before = config.columns.slice(0, i)
|
|
400
|
-
|
|
400
|
+
let after = config.columns.slice(i + 1, config.columns.length)
|
|
401
401
|
|
|
402
402
|
const addArr = []
|
|
403
403
|
for (let k = 0; k < this.configFromWeb[targetName].columns.length; k++) {
|
|
@@ -425,6 +425,11 @@ export default {
|
|
|
425
425
|
})
|
|
426
426
|
|
|
427
427
|
// 拼接之后的数组
|
|
428
|
+
if (after.length === 1) {
|
|
429
|
+
if (after[0].type === 'slot' || after[0][0].type === 'slot') {
|
|
430
|
+
after = []
|
|
431
|
+
}
|
|
432
|
+
}
|
|
428
433
|
if (after.length > 0) {
|
|
429
434
|
if (after.length >= 1) {
|
|
430
435
|
after.forEach(item => {
|
|
@@ -443,7 +448,6 @@ export default {
|
|
|
443
448
|
}
|
|
444
449
|
|
|
445
450
|
config.data = { ...config.data, ...this.configFromWeb[targetName].data }
|
|
446
|
-
this.configFromWeb = {}
|
|
447
451
|
}
|
|
448
452
|
}
|
|
449
453
|
}
|