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.
Files changed (95) hide show
  1. package/CHANGELOG.md +31 -17
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +68 -68
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +28 -28
  14. package/es/calendar/index.js +8 -8
  15. package/es/captcha/index.js +3 -3
  16. package/es/card/index.js +8 -8
  17. package/es/carousel/index.js +8 -8
  18. package/es/cascader/index.js +8 -8
  19. package/es/checkbox/index.js +9 -9
  20. package/es/col/index.js +8 -8
  21. package/es/collapse/index.js +8 -8
  22. package/es/color-picker/index.js +1 -1
  23. package/es/comment/index.js +8 -8
  24. package/es/config-provider/index.js +8 -8
  25. package/es/date-picker/index.js +8 -8
  26. package/es/descriptions/index.js +8 -8
  27. package/es/divider/index.js +8 -8
  28. package/es/drag-layout/index.js +3 -3
  29. package/es/drawer/index.js +8 -8
  30. package/es/dropdown/index.js +8 -8
  31. package/es/editor/index.js +1 -1
  32. package/es/empty/index.js +8 -8
  33. package/es/fabric-chart/index.js +11 -11
  34. package/es/form/index.js +8 -8
  35. package/es/form-model/index.js +8 -8
  36. package/es/form-table/index.js +62 -62
  37. package/es/index/index.js +507 -490
  38. package/es/index/style.css +1 -1
  39. package/es/input/index.js +9 -9
  40. package/es/input-number/index.js +8 -8
  41. package/es/layout/index.js +8 -8
  42. package/es/list/index.js +8 -8
  43. package/es/locale-provider/index.js +8 -8
  44. package/es/map/index.js +9 -9
  45. package/es/mentions/index.js +8 -8
  46. package/es/menu/index.js +8 -8
  47. package/es/message/index.js +8 -8
  48. package/es/multi-chat/index.js +80 -80
  49. package/es/multi-chat/style.css +1 -1
  50. package/es/multi-chat-client/index.js +74 -74
  51. package/es/multi-chat-client/style.css +1 -1
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +22 -22
  55. package/es/multi-chat-sip/index.js +1 -1
  56. package/es/notification/index.js +8 -8
  57. package/es/page-header/index.js +8 -8
  58. package/es/pagination/index.js +8 -8
  59. package/es/popconfirm/index.js +8 -8
  60. package/es/popover/index.js +8 -8
  61. package/es/progress/index.js +8 -8
  62. package/es/radio/index.js +9 -9
  63. package/es/rate/index.js +8 -8
  64. package/es/result/index.js +8 -8
  65. package/es/row/index.js +8 -8
  66. package/es/scale-view/index.js +136 -119
  67. package/es/scale-view/style.css +1 -1
  68. package/es/select/index.js +11 -11
  69. package/es/select-label/index.js +11 -11
  70. package/es/select-person/index.js +2 -2
  71. package/es/skeleton/index.js +8 -8
  72. package/es/slider/index.js +8 -8
  73. package/es/space/index.js +8 -8
  74. package/es/spin/index.js +8 -8
  75. package/es/statistic/index.js +8 -8
  76. package/es/steps/index.js +8 -8
  77. package/es/switch/index.js +8 -8
  78. package/es/table-filter/index.js +53 -53
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +925 -635
  90. package/lib/cui.umd.js +925 -635
  91. package/lib/cui.umd.min.js +29 -29
  92. package/package.json +1 -1
  93. package/packages/multi-chat/chat/quickReply.vue +2 -2
  94. package/packages/scale-view/formitem/r-choice.vue +31 -28
  95. package/packages/scale-view/scaleView.vue +18 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.0.19-beta.2",
3
+ "version": "2.0.21",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -327,8 +327,8 @@ export default {
327
327
  }
328
328
  }
329
329
  &:not(.quick-input):hover {
330
- background-color: #5585f5;
331
- color: #fff;
330
+ background-color: #5585f5 !important;
331
+ color: #fff !important;
332
332
  .operate {
333
333
  display: block;
334
334
  }
@@ -246,34 +246,7 @@ export default {
246
246
  deep: true,
247
247
  handler(value) {
248
248
  if (!value || !Object.keys(value).length) return;
249
- let options = value.options || [];
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
- formItem.__isLogic__ = hasValue;
1478
- formItem.__lastSeq__ = seq + 1;
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
- formItem.__isLogic__ = !res;
1503
- formItem.__lastSeq__ = seq + 1;
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);