cnhis-design-vue 0.2.65-beta → 0.2.66-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 (105) hide show
  1. package/es/affix/index.js +8 -8
  2. package/es/age/index.js +10 -10
  3. package/es/alert/index.js +8 -8
  4. package/es/anchor/index.js +8 -8
  5. package/es/auto-complete/index.js +8 -8
  6. package/es/avatar/index.js +8 -8
  7. package/es/back-top/index.js +8 -8
  8. package/es/badge/index.js +8 -8
  9. package/es/base/index.js +8 -8
  10. package/es/big-table/index.js +120 -118
  11. package/es/big-table/style.css +1 -1
  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 +9 -9
  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 +1523 -816
  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 +75 -75
  49. package/es/multi-chat-client/index.js +69 -69
  50. package/es/multi-chat-history/index.js +4 -4
  51. package/es/multi-chat-record/index.js +14 -14
  52. package/es/multi-chat-setting/index.js +22 -22
  53. package/es/multi-chat-sip/index.js +1 -1
  54. package/es/notification/index.js +8 -8
  55. package/es/page-header/index.js +8 -8
  56. package/es/pagination/index.js +8 -8
  57. package/es/popconfirm/index.js +8 -8
  58. package/es/popover/index.js +8 -8
  59. package/es/progress/index.js +8 -8
  60. package/es/radio/index.js +9 -9
  61. package/es/rate/index.js +8 -8
  62. package/es/result/index.js +8 -8
  63. package/es/row/index.js +8 -8
  64. package/es/scale-view/index.js +1127 -408
  65. package/es/scale-view/style.css +1 -1
  66. package/es/select/index.js +11 -11
  67. package/es/select-label/index.js +11 -11
  68. package/es/select-person/index.js +2 -2
  69. package/es/skeleton/index.js +8 -8
  70. package/es/slider/index.js +8 -8
  71. package/es/space/index.js +8 -8
  72. package/es/spin/index.js +8 -8
  73. package/es/statistic/index.js +8 -8
  74. package/es/steps/index.js +8 -8
  75. package/es/switch/index.js +8 -8
  76. package/es/table-filter/index.js +53 -53
  77. package/es/tabs/index.js +8 -8
  78. package/es/tag/index.js +9 -9
  79. package/es/time-picker/index.js +8 -8
  80. package/es/timeline/index.js +8 -8
  81. package/es/tooltip/index.js +8 -8
  82. package/es/transfer/index.js +8 -8
  83. package/es/tree/index.js +8 -8
  84. package/es/tree-select/index.js +8 -8
  85. package/es/upload/index.js +8 -8
  86. package/es/verification-code/index.js +2 -2
  87. package/lib/cui.common.js +2020 -1577
  88. package/lib/cui.umd.js +2020 -1577
  89. package/lib/cui.umd.min.js +58 -58
  90. package/package.json +1 -1
  91. package/packages/big-table/src/BigTable.vue +1 -1
  92. package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
  93. package/packages/scale-view/NoData.vue +81 -0
  94. package/packages/scale-view/answerParse.vue +10 -1
  95. package/packages/scale-view/assets/img/failure.png +0 -0
  96. package/packages/scale-view/assets/img/no-permission.png +0 -0
  97. package/packages/scale-view/assets/img/nodata.png +0 -0
  98. package/packages/scale-view/assets/img/notfound.png +0 -0
  99. package/packages/scale-view/formitem/r-choice.vue +319 -99
  100. package/packages/scale-view/formitem/r-input.vue +10 -14
  101. package/packages/scale-view/mixin/NoData.js +16 -2
  102. package/packages/scale-view/mixin/evaluate.js +1 -1
  103. package/packages/scale-view/scaleView.vue +334 -139
  104. package/packages/big-table/src/components/edit-form/edit-component/global-props.js +0 -33
  105. package/packages/big-table/src/components/edit-form/edit-component/index.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.65-beta",
3
+ "version": "0.2.66-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -1034,7 +1034,7 @@ export default create({
1034
1034
  if (this.isNestTable) return false;
1035
1035
  let id = this.inlineEditCurrentOperateBtnId;
1036
1036
  let find = this.btnList?.find(item => {
1037
- return item.settingObj[0].obj_id === id;
1037
+ return item?.settingObj?.[0]?.obj_id === id;
1038
1038
  });
1039
1039
  return !!find;
1040
1040
  },
@@ -71,7 +71,7 @@ export default {
71
71
  // 移入事件: 判断内容的宽度contentWidth是否大于父级的宽度
72
72
  onMouseOver(str) {
73
73
  if (this.isAlias) {
74
- this.isDisabledTooltip = false;
74
+ this.isDisabledTooltip = true;
75
75
  return;
76
76
  }
77
77
  let parentWidth = this.$refs[str].parentNode.offsetWidth;
@@ -0,0 +1,81 @@
1
+ <template>
2
+ <div class="no-data-tip NoData-page">
3
+ <img v-if="showImg" :src="require(`./assets/img/${noDataImg}.png`)" alt="" />
4
+ <p>{{ $t(noDataTip) }}</p>
5
+ <span v-if="handleDesc"> {{ handleDesc }}</span>
6
+ </div>
7
+ </template>
8
+ <script>
9
+ export default {
10
+ name: 'NoData',
11
+ components: {},
12
+ props: {
13
+ noDataTip: {
14
+ type: String,
15
+ default: '1.1.6.11'
16
+ },
17
+ noDataImg: {
18
+ type: String,
19
+ default: 'nodata'
20
+ },
21
+ showImg: {
22
+ type: Boolean,
23
+ default: true
24
+ }
25
+ },
26
+ data() {
27
+ return {};
28
+ },
29
+
30
+ computed: {
31
+ handleDesc() {
32
+ let res = '';
33
+ switch (this.noDataImg) {
34
+ case 'no-permission':
35
+ res = '请联系管理员';
36
+ break;
37
+ case 'failure':
38
+ res = '请稍后再试';
39
+ break;
40
+ default:
41
+ break;
42
+ }
43
+ return res;
44
+ }
45
+ },
46
+ watch: {},
47
+ // 生命周期
48
+ created() {},
49
+ mounted() {},
50
+
51
+ // 方法
52
+ methods: {}
53
+ };
54
+ </script>
55
+ <style lang="less" scoped>
56
+ .no-data-tip {
57
+ display: flex;
58
+ flex-direction: column;
59
+ justify-content: center;
60
+ align-items: center;
61
+ width: 100%;
62
+ height: 100%;
63
+ color: #333333;
64
+ font-size: 22px;
65
+ > img {
66
+ max-width: 70%;
67
+ width: 260px;
68
+ }
69
+ > p {
70
+ margin-top: 12px;
71
+ margin-bottom: 0;
72
+ font-size: 16px;
73
+ color: rgba(0, 0, 0, 0.8);
74
+ }
75
+ > span {
76
+ font-size: 14px;
77
+ color: rgba(0, 0, 0, 0.4);
78
+ margin-top: 6px;
79
+ }
80
+ }
81
+ </style>
@@ -5,7 +5,7 @@
5
5
  <svg-icon :iconClass="answerIcon"></svg-icon>
6
6
  {{ answerResText }}
7
7
  </div>
8
- <div v-if="answerSuccess"> 本题得分:{{ questionScore }}分 </div>
8
+ <div v-if="answerSuccess"> {{ scoreText }}得分:{{ questionScore }}分 </div>
9
9
  </div>
10
10
  <div class="correct-answer" v-if="correctAnswer">
11
11
  <p>正确答案:</p>
@@ -37,8 +37,17 @@ export default {
37
37
  return this.answerSuccess ? "xitongtubiaodui" : "xitongtubiaocuo";
38
38
  },
39
39
  answerResText() {
40
+ if ("questionPartScore" in this.item) {
41
+ return "部分正确";
42
+ }
40
43
  return this.answerSuccess ? "回答正确" : "回答错误";
41
44
  },
45
+ scoreText() {
46
+ if ("questionPartScore" in this.item) {
47
+ return "部分";
48
+ }
49
+ return "本题";
50
+ },
42
51
  correctAnswer() {
43
52
  let { correctAnswer } = this.item?.scoreConfigs || {};
44
53
  return correctAnswer;