jufubao-base 1.0.289-beta1 → 1.0.289-beta3
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
|
@@ -112,12 +112,13 @@
|
|
|
112
112
|
}
|
|
113
113
|
//#endif
|
|
114
114
|
|
|
115
|
-
this.height =
|
|
115
|
+
this.height = Number(getComponentAttr(this.componentAttr, 'height'));
|
|
116
116
|
|
|
117
117
|
this.init(this.container);
|
|
118
118
|
|
|
119
119
|
//监听重试消息数量
|
|
120
120
|
this.$xdRoot.$on('restFooterNumber', this.handle)
|
|
121
|
+
|
|
121
122
|
},
|
|
122
123
|
methods: {
|
|
123
124
|
handle(){
|
|
@@ -364,7 +364,21 @@ export default function (data, gValue, gColor, oldData){
|
|
|
364
364
|
let setTpl = dataVal({data, key:'footerTpl', dValue:'normal', gValue});
|
|
365
365
|
if(setTpl === 'normal') {
|
|
366
366
|
if(value && value.length === 0) callback('请设置菜单');
|
|
367
|
-
else
|
|
367
|
+
else {
|
|
368
|
+
let errorStr = '';
|
|
369
|
+
if(value && value.length > 0) {
|
|
370
|
+
let len = value.length;
|
|
371
|
+
for(let i = 0; i < len; i++) {
|
|
372
|
+
if(value[i].name.length > 5) {
|
|
373
|
+
errorStr = `菜单${i}最大长度不能超过5个汉字`;
|
|
374
|
+
break
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if(errorStr) {
|
|
379
|
+
callback(errorStr)
|
|
380
|
+
}else callback();
|
|
381
|
+
}
|
|
368
382
|
}
|
|
369
383
|
else callback()
|
|
370
384
|
},
|
|
@@ -385,6 +399,7 @@ export default function (data, gValue, gColor, oldData){
|
|
|
385
399
|
icons:ICONS,
|
|
386
400
|
mode: 'new',
|
|
387
401
|
tplMode: footerTpl,
|
|
402
|
+
|
|
388
403
|
showField: {
|
|
389
404
|
path: true,
|
|
390
405
|
icon: true,
|
|
@@ -409,7 +424,21 @@ export default function (data, gValue, gColor, oldData){
|
|
|
409
424
|
let setTpl = dataVal({data, key:'footerTpl', dValue:'normal', gValue});
|
|
410
425
|
if(setTpl === 'itemCenterBig') {
|
|
411
426
|
if(value && value.length === 0) callback('请设置菜单');
|
|
412
|
-
else
|
|
427
|
+
else {
|
|
428
|
+
let errorStr = '';
|
|
429
|
+
if(value && value.length > 0) {
|
|
430
|
+
let len = value.length;
|
|
431
|
+
for(let i = 0; i < len; i++) {
|
|
432
|
+
if(value[i].name.length > 5) {
|
|
433
|
+
errorStr = `菜单${i}最大长度不能超过5个汉字`;
|
|
434
|
+
break
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if(errorStr) {
|
|
439
|
+
callback(errorStr)
|
|
440
|
+
}else callback();
|
|
441
|
+
}
|
|
413
442
|
}
|
|
414
443
|
else callback()
|
|
415
444
|
},
|