cnhis-design-vue 0.1.72-beta → 0.1.76-beta

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 (40) hide show
  1. package/es/age/index.js +2 -2
  2. package/es/big-table/index.js +44 -44
  3. package/es/big-table/style.css +1 -1
  4. package/es/button/index.js +28 -25
  5. package/es/button/style.css +1 -1
  6. package/es/captcha/index.js +3 -3
  7. package/es/checkbox/index.js +1 -1
  8. package/es/color-picker/index.js +1 -1
  9. package/es/drag-layout/index.js +3 -3
  10. package/es/editor/index.js +1 -1
  11. package/es/fabric-chart/index.js +9 -9
  12. package/es/index/index.js +264 -259
  13. package/es/index/style.css +1 -1
  14. package/es/input/index.js +1 -1
  15. package/es/map/index.js +1 -1
  16. package/es/multi-chat/index.js +24 -24
  17. package/es/multi-chat-client/index.js +15 -15
  18. package/es/multi-chat-history/index.js +4 -4
  19. package/es/multi-chat-record/index.js +4 -4
  20. package/es/multi-chat-setting/index.js +20 -20
  21. package/es/multi-chat-sip/index.js +1 -1
  22. package/es/radio/index.js +1 -1
  23. package/es/scale-view/index.js +99 -97
  24. package/es/scale-view/style.css +1 -1
  25. package/es/select/index.js +3 -3
  26. package/es/select-label/index.js +42 -26
  27. package/es/select-label/style.css +1 -1
  28. package/es/select-person/index.js +2 -2
  29. package/es/table-filter/index.js +45 -42
  30. package/es/table-filter/style.css +1 -1
  31. package/es/tag/index.js +1 -1
  32. package/es/verification-code/index.js +2 -2
  33. package/lib/cui.common.js +370 -369
  34. package/lib/cui.umd.js +370 -369
  35. package/lib/cui.umd.min.js +26 -26
  36. package/package.json +1 -1
  37. package/packages/big-table/src/BigTable.vue +1 -1
  38. package/packages/button/src/ButtonPrint/index.vue +8 -5
  39. package/packages/scale-view/scaleView.vue +25 -21
  40. package/packages/select-label/labelFormContent.vue +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.1.72-beta",
3
+ "version": "0.1.76-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -685,7 +685,7 @@ export default create({
685
685
  },
686
686
  // 日期显示格式化
687
687
  getDate(row, item) {
688
- let obj = row[item.columnName];
688
+ let obj = row[item.columnName] || "";
689
689
  if (vexutils.isEmpty(obj)) {
690
690
  if (vexutils.isObject(obj) && 'tooltip' in obj) {
691
691
  return [
@@ -18,11 +18,14 @@
18
18
  {{ formatEditText }}
19
19
  </a-menu-item>
20
20
  </a-menu>
21
- <a-button class="dropdown-button" style="margin: 0 8px 8px 0" @click.stop="handleClickBtn">
22
- <a-icon v-if="spinning" type="loading" style="line-height: 10px;" />
23
- {{ btnText }}
24
- <a-icon type="down" />
25
- </a-button>
21
+ <slot name="button" :handleClickPrintBtn="handleClickBtn" :printSpinning="spinning" :printbtnText="btnText" :printVisible="visible">
22
+ <a-button class="dropdown-button" style="margin: 0 8px 8px 0" @click.stop="handleClickBtn">
23
+ <a-icon v-if="spinning" type="loading" style="line-height: 10px;" />
24
+ {{ btnText }}
25
+ <a-icon type="down" />
26
+ </a-button>
27
+ <slot>
28
+
26
29
  </a-dropdown>
27
30
 
28
31
  <IdentityVerification
@@ -392,18 +392,21 @@ export default create({
392
392
  ? item.showTitle
393
393
  : `${item.softcode}、${item.showTitle}`;
394
394
  if (!this.isEvaluation(type)) return tempTile;
395
- if (this.noBtn) {
396
- let score = this.handleEvaluationScore(item);
397
- return `${tempTile}&nbsp;<span style="color:#2d7aff;">${score}</span>`;
398
- }
399
- if (!this.isLock) {
400
- let score = this.handleEvaluationScore(item);
401
- return `${tempTile}&nbsp;<span style="color:#2d7aff;">${score}</span>`;
402
- }
403
- if (item.questionScore !== undefined) {
404
- return `${tempTile}&nbsp;<span style="color:#2d7aff;">(${item.questionScore}分)</span>`;
405
- }
406
- return tempTile;
395
+
396
+ let score = this.handleEvaluationScore(item);
397
+ return `${tempTile}&nbsp;<span style="color:#2d7aff;">${score}</span>`;
398
+ // if (this.noBtn) {
399
+ // let score = this.handleEvaluationScore(item);
400
+ // return `${tempTile}&nbsp;<span style="color:#2d7aff;">${score}</span>`;
401
+ // }
402
+ // if (!this.isLock) {
403
+ // let score = this.handleEvaluationScore(item);
404
+ // return `${tempTile}&nbsp;<span style="color:#2d7aff;">${score}</span>`;
405
+ // }
406
+ // if (item.questionScore !== undefined) {
407
+ // return `${tempTile}&nbsp;<span style="color:#2d7aff;">(${item.questionScore}分)</span>`;
408
+ // }
409
+ // return tempTile;
407
410
  };
408
411
  },
409
412
  hasScore() {
@@ -1544,15 +1547,16 @@ export default create({
1544
1547
  },
1545
1548
  handleEvaluationScore(ele) {
1546
1549
  let { minScore = 0, maxScore = 0, scoreType } = ele.scoreConfigs || {};
1547
- if (scoreType === "correctAnswerScore") return `(${maxScore}分)`;
1548
- if (minScore === maxScore) return `(${maxScore}分)`;
1549
- if (ele.type === "EVALUATE_INPUT") {
1550
- if (maxScore == 0) {
1551
- return `(${maxScore}分)`;
1552
- }
1553
- return `(0-${maxScore}分)`;
1554
- }
1555
- return `(${minScore}-${maxScore}分)`;
1550
+ return `(${maxScore}分)`;
1551
+ // if (scoreType === "correctAnswerScore") return `(${maxScore}分)`;
1552
+ // if (minScore === maxScore) return `(${maxScore}分)`;
1553
+ // if (ele.type === "EVALUATE_INPUT") {
1554
+ // if (maxScore == 0) {
1555
+ // return `(${maxScore}分)`;
1556
+ // }
1557
+ // return `(0-${maxScore}分)`;
1558
+ // }
1559
+ // return `(${minScore}-${maxScore}分)`;
1556
1560
  }
1557
1561
  }
1558
1562
  });
@@ -112,6 +112,7 @@
112
112
  import utils from '@/utils/utils-map';
113
113
  import { Tooltip, Icon, Button, Input, Tag, Tabs, Anchor } from 'ant-design-vue';
114
114
  import create from '@/core/create';
115
+ import vexutils from '@/utils/vexutils';
115
116
  export default create({
116
117
  name: 'label-form-content',
117
118
  components: {
@@ -470,7 +471,10 @@ export default create({
470
471
  handleLabelChange(v, d, labelGroup) {
471
472
  const list = labelGroup.itemList;
472
473
  const multipleChoice = labelGroup.multipleChoice;
473
- let selectedList = this.labelSelectedEdit || [];
474
+ // let selectedList = this.labelSelectedEdit || [];
475
+ // 修复 标签多选 点击modal取消按钮 回显也会被选中
476
+ let selectedList =
477
+ (this.labelSelectedEdit?.length && vexutils.clone(this.labelSelectedEdit, true)) || [];
474
478
  if (v) {
475
479
  if (selectedList.some(n => n.labelId == d.labelId)) {
476
480
  return;