cnhis-design-vue 2.0.19-beta.2 → 2.0.21
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/CHANGELOG.md +31 -17
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +68 -68
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +28 -28
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +11 -11
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +507 -490
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +80 -80
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +74 -74
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +136 -119
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +53 -53
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +925 -635
- package/lib/cui.umd.js +925 -635
- package/lib/cui.umd.min.js +29 -29
- package/package.json +1 -1
- package/packages/multi-chat/chat/quickReply.vue +2 -2
- package/packages/scale-view/formitem/r-choice.vue +31 -28
- package/packages/scale-view/scaleView.vue +18 -4
package/package.json
CHANGED
|
@@ -246,34 +246,7 @@ export default {
|
|
|
246
246
|
deep: true,
|
|
247
247
|
handler(value) {
|
|
248
248
|
if (!value || !Object.keys(value).length) return;
|
|
249
|
-
|
|
250
|
-
if (this.isEvaluation(value.type)) {
|
|
251
|
-
options = value.scoreConfigs?.scoreRules || [];
|
|
252
|
-
}
|
|
253
|
-
if (value.type === 'RADIO_BLOCK' || value.type === 'EVALUATE_RADIO_BLOCK') {
|
|
254
|
-
const defVal = value.dbValue || value.setting.defaultValue || this.value;
|
|
255
|
-
this.handleRadioDef(value, defVal, options);
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
if (value.type === 'CHECKBOX_BLOCK' || value.type === 'EVALUATE_CHECKBOX_BLOCK') {
|
|
259
|
-
let defVal = [];
|
|
260
|
-
if (utils.isJSON(value.setting.defaultValue)) {
|
|
261
|
-
defVal = JSON.parse(value.setting.defaultValue);
|
|
262
|
-
} else {
|
|
263
|
-
defVal = this.value;
|
|
264
|
-
}
|
|
265
|
-
this.handleCheckboxDef(value, value.dbValue || defVal, options);
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
if (value.type == 'SELECT' || value.type == 'SEARCH_CASCADE' || value.type === 'EVALUATE_SELECT') {
|
|
269
|
-
this.cloneItem = JSON.parse(JSON.stringify(value));
|
|
270
|
-
let options = this.cloneItem.options || [];
|
|
271
|
-
if (this.isEvaluation(value.type)) {
|
|
272
|
-
options = this.cloneItem.scoreConfigs?.scoreRules || [];
|
|
273
|
-
}
|
|
274
|
-
this.curOptions = options;
|
|
275
|
-
this.initSelectOptions();
|
|
276
|
-
}
|
|
249
|
+
this.init(JSON.parse(JSON.stringify(value)));
|
|
277
250
|
}
|
|
278
251
|
}
|
|
279
252
|
},
|
|
@@ -297,6 +270,36 @@ export default {
|
|
|
297
270
|
};
|
|
298
271
|
},
|
|
299
272
|
methods: {
|
|
273
|
+
init(value) {
|
|
274
|
+
let options = value.options || [];
|
|
275
|
+
if (this.isEvaluation(value.type)) {
|
|
276
|
+
options = value.scoreConfigs?.scoreRules || [];
|
|
277
|
+
}
|
|
278
|
+
if (value.type === 'RADIO_BLOCK' || value.type === 'EVALUATE_RADIO_BLOCK') {
|
|
279
|
+
const defVal = value.dbValue || value.setting.defaultValue || this.value;
|
|
280
|
+
this.handleRadioDef(value, defVal, options);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (value.type === 'CHECKBOX_BLOCK' || value.type === 'EVALUATE_CHECKBOX_BLOCK') {
|
|
284
|
+
let defVal = [];
|
|
285
|
+
if (utils.isJSON(value.setting.defaultValue)) {
|
|
286
|
+
defVal = JSON.parse(value.setting.defaultValue);
|
|
287
|
+
} else {
|
|
288
|
+
defVal = this.value;
|
|
289
|
+
}
|
|
290
|
+
this.handleCheckboxDef(value, value.dbValue || defVal, options);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
if (value.type == 'SELECT' || value.type == 'SEARCH_CASCADE' || value.type === 'EVALUATE_SELECT') {
|
|
294
|
+
this.cloneItem = JSON.parse(JSON.stringify(value));
|
|
295
|
+
let options = this.cloneItem.options || [];
|
|
296
|
+
if (this.isEvaluation(value.type)) {
|
|
297
|
+
options = this.cloneItem.scoreConfigs?.scoreRules || [];
|
|
298
|
+
}
|
|
299
|
+
this.curOptions = options;
|
|
300
|
+
this.initSelectOptions();
|
|
301
|
+
}
|
|
302
|
+
},
|
|
300
303
|
handleRadioDef(item, curValue, options) {
|
|
301
304
|
this.curOptions = this.handleOptions(options, item.type);
|
|
302
305
|
if (!options.length || !curValue) return;
|
|
@@ -1474,8 +1474,15 @@ export default create({
|
|
|
1474
1474
|
hasValue = choiceValue === value;
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
|
-
|
|
1478
|
-
formItem
|
|
1477
|
+
// 添加非响应式key __isLogic__ __lastSeq__
|
|
1478
|
+
Object.defineProperty(formItem, '__isLogic__', {
|
|
1479
|
+
value: hasValue,
|
|
1480
|
+
writable: true
|
|
1481
|
+
});
|
|
1482
|
+
Object.defineProperty(formItem, '__lastSeq__', {
|
|
1483
|
+
value: seq + 1,
|
|
1484
|
+
writable: true
|
|
1485
|
+
});
|
|
1479
1486
|
|
|
1480
1487
|
if (hasValue) {
|
|
1481
1488
|
formArray.forEach(item => {
|
|
@@ -1499,8 +1506,15 @@ export default create({
|
|
|
1499
1506
|
} else if (nextLogic.next_logic == 'uncondition') {
|
|
1500
1507
|
let res = utils.isEmpty(choiceValue);
|
|
1501
1508
|
|
|
1502
|
-
|
|
1503
|
-
formItem
|
|
1509
|
+
// 添加非响应式key __isLogic__ __lastSeq__
|
|
1510
|
+
Object.defineProperty(formItem, '__isLogic__', {
|
|
1511
|
+
value: !res,
|
|
1512
|
+
writable: true
|
|
1513
|
+
});
|
|
1514
|
+
Object.defineProperty(formItem, '__lastSeq__', {
|
|
1515
|
+
value: seq + 1,
|
|
1516
|
+
writable: true
|
|
1517
|
+
});
|
|
1504
1518
|
|
|
1505
1519
|
formArray.forEach(item => {
|
|
1506
1520
|
const key = this.formKey(item);
|