cnhis-design-vue 0.2.20-beta → 0.2.24-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 (144) hide show
  1. package/lib/cui.common.js +1231 -2422
  2. package/lib/cui.umd.js +1231 -2422
  3. package/lib/cui.umd.min.js +63 -63
  4. package/package.json +2 -2
  5. package/packages/big-table/src/BigTable.vue +1 -0
  6. package/packages/big-table/src/assets/style/table-base.less +5 -0
  7. package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
  8. package/packages/multi-chat/chat/index.vue +1 -1
  9. package/packages/multi-chat/components/user-status.vue +1 -1
  10. package/packages/scale-view/answerParse.vue +4 -4
  11. package/packages/select-label/label-classify.vue +129 -0
  12. package/packages/select-label/labelFormContent.vue +263 -130
  13. package/packages/select-label/select-label.vue +111 -18
  14. package/packages/table-filter/src/base-search-com/BaseSearch.vue +2 -1
  15. package/packages/table-filter/src/components/search-modal/set-classification.vue +19 -1
  16. package/packages/table-filter/src/mixins/mixins.js +10 -2
  17. package/packages/table-filter/src/quick-search/QuickSearch.vue +16 -7
  18. package/es/affix/index.js +0 -3008
  19. package/es/age/index.js +0 -3767
  20. package/es/age/style.css +0 -1
  21. package/es/alert/index.js +0 -3008
  22. package/es/anchor/index.js +0 -3021
  23. package/es/auto-complete/index.js +0 -3008
  24. package/es/avatar/index.js +0 -3008
  25. package/es/back-top/index.js +0 -3008
  26. package/es/badge/index.js +0 -3008
  27. package/es/base/index.js +0 -2896
  28. package/es/big-table/index.js +0 -19626
  29. package/es/big-table/style.css +0 -1
  30. package/es/breadcrumb/index.js +0 -3032
  31. package/es/button/index.js +0 -9128
  32. package/es/button/style.css +0 -1
  33. package/es/calendar/index.js +0 -3008
  34. package/es/captcha/index.js +0 -3618
  35. package/es/captcha/style.css +0 -1
  36. package/es/card/index.js +0 -3032
  37. package/es/carousel/index.js +0 -3008
  38. package/es/cascader/index.js +0 -3008
  39. package/es/checkbox/index.js +0 -3344
  40. package/es/checkbox/style.css +0 -1
  41. package/es/col/index.js +0 -3009
  42. package/es/collapse/index.js +0 -3021
  43. package/es/color-picker/index.js +0 -3532
  44. package/es/color-picker/style.css +0 -1
  45. package/es/comment/index.js +0 -3008
  46. package/es/config-provider/index.js +0 -3008
  47. package/es/date-picker/index.js +0 -3043
  48. package/es/descriptions/index.js +0 -3021
  49. package/es/divider/index.js +0 -3008
  50. package/es/drag-layout/index.js +0 -4814
  51. package/es/drag-layout/style.css +0 -1
  52. package/es/drawer/index.js +0 -3008
  53. package/es/dropdown/index.js +0 -3008
  54. package/es/editor/index.js +0 -3273
  55. package/es/editor/style.css +0 -1
  56. package/es/empty/index.js +0 -3008
  57. package/es/fabric-chart/index.js +0 -9844
  58. package/es/fabric-chart/style.css +0 -1
  59. package/es/form/index.js +0 -3019
  60. package/es/form-model/index.js +0 -3018
  61. package/es/grid/index.js +0 -3776
  62. package/es/icon/index.js +0 -2962
  63. package/es/img/calling.ba1a517f.png +0 -0
  64. package/es/img/failure.96c6f004.png +0 -0
  65. package/es/img/no-permission.3aa0dddb.png +0 -0
  66. package/es/img/nodata.bbccf960.png +0 -0
  67. package/es/index/index.js +0 -110944
  68. package/es/index/style.css +0 -1
  69. package/es/input/index.js +0 -4384
  70. package/es/input/style.css +0 -1
  71. package/es/input-number/index.js +0 -3008
  72. package/es/keep-cache/index.js +0 -3288
  73. package/es/layout/index.js +0 -3054
  74. package/es/list/index.js +0 -3032
  75. package/es/locale-provider/index.js +0 -3008
  76. package/es/map/index.js +0 -3677
  77. package/es/map/style.css +0 -1
  78. package/es/media/msgTip.6865f0c7.mp3 +0 -0
  79. package/es/mentions/index.js +0 -3021
  80. package/es/menu/index.js +0 -3054
  81. package/es/message/index.js +0 -2896
  82. package/es/modal/index.js +0 -2962
  83. package/es/multi-chat/index.js +0 -24268
  84. package/es/multi-chat/style.css +0 -1
  85. package/es/multi-chat-client/index.js +0 -18293
  86. package/es/multi-chat-client/style.css +0 -1
  87. package/es/multi-chat-history/index.js +0 -4571
  88. package/es/multi-chat-history/style.css +0 -1
  89. package/es/multi-chat-record/index.js +0 -4831
  90. package/es/multi-chat-record/style.css +0 -1
  91. package/es/multi-chat-setting/index.js +0 -13452
  92. package/es/multi-chat-setting/style.css +0 -1
  93. package/es/multi-chat-sip/index.js +0 -3313
  94. package/es/multi-chat-sip/style.css +0 -1
  95. package/es/notification/index.js +0 -2896
  96. package/es/page-header/index.js +0 -3008
  97. package/es/pagination/index.js +0 -3008
  98. package/es/popconfirm/index.js +0 -3008
  99. package/es/popover/index.js +0 -3008
  100. package/es/progress/index.js +0 -3008
  101. package/es/radio/index.js +0 -3335
  102. package/es/radio/style.css +0 -1
  103. package/es/rate/index.js +0 -3008
  104. package/es/result/index.js +0 -3008
  105. package/es/row/index.js +0 -3008
  106. package/es/scale-view/index.js +0 -18009
  107. package/es/scale-view/style.css +0 -1
  108. package/es/select/index.js +0 -4567
  109. package/es/select/style.css +0 -1
  110. package/es/select-label/index.js +0 -5226
  111. package/es/select-label/style.css +0 -1
  112. package/es/select-person/index.js +0 -5427
  113. package/es/select-person/style.css +0 -1
  114. package/es/skeleton/index.js +0 -3008
  115. package/es/slider/index.js +0 -3008
  116. package/es/space/index.js +0 -3008
  117. package/es/spin/index.js +0 -3008
  118. package/es/statistic/index.js +0 -3021
  119. package/es/steps/index.js +0 -3021
  120. package/es/switch/index.js +0 -3008
  121. package/es/table-filter/index.js +0 -24120
  122. package/es/table-filter/style.css +0 -1
  123. package/es/tabs/index.js +0 -3021
  124. package/es/tag/index.js +0 -3909
  125. package/es/tag/style.css +0 -1
  126. package/es/time-picker/index.js +0 -3008
  127. package/es/timeline/index.js +0 -3018
  128. package/es/tooltip/index.js +0 -3008
  129. package/es/transfer/index.js +0 -3008
  130. package/es/tree/index.js +0 -3021
  131. package/es/tree-select/index.js +0 -3021
  132. package/es/upload/index.js +0 -3008
  133. package/es/utils/UniRTCv2.js +0 -586
  134. package/es/utils/chatFetch.js +0 -85
  135. package/es/utils/clickoutside.js +0 -76
  136. package/es/utils/crypto.js +0 -40
  137. package/es/utils/kty-sdk.js +0 -1030
  138. package/es/utils/kty.min-1.0.0.js +0 -6
  139. package/es/utils/sip-device.js +0 -112
  140. package/es/utils/time-domain.js +0 -195
  141. package/es/utils/utils-map.js +0 -530
  142. package/es/utils/vexutils.js +0 -963
  143. package/es/verification-code/index.js +0 -3487
  144. package/es/verification-code/style.css +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.20-beta",
3
+ "version": "0.2.24-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -93,4 +93,4 @@
93
93
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
94
94
  }
95
95
  }
96
- }
96
+ }
@@ -2149,6 +2149,7 @@ export default create({
2149
2149
  if (!imageArr || !imageArr.length) return curSrc;
2150
2150
  let matchItem = imageArr.find(item => item.type === type);
2151
2151
  if (!matchItem) return curSrc;
2152
+ if(matchItem.suffix) return curSrc + matchItem.suffix
2152
2153
  let h = matchItem.h;
2153
2154
  let w = matchItem.w;
2154
2155
  if (matchItem.h === 'adaptive' && matchItem.w != 'adaptive') {
@@ -189,6 +189,7 @@ body {
189
189
  .vxe-header--column .vxe-cell--title {
190
190
  height: 100%;
191
191
  line-height: unset;
192
+ width: 100%;
192
193
  }
193
194
  }
194
195
  .vxe-table--footer-wrapper.body--wrapper,
@@ -219,6 +220,10 @@ body {
219
220
  /deep/ .filter-box {
220
221
  display: flex;
221
222
  align-items: center;
223
+ width: 100%;
224
+ .text-over-tooltip-components {
225
+ max-width: calc(100% - 20px);
226
+ }
222
227
  .vxe-filter--btn {
223
228
  border-top-color: #c0c4cc;
224
229
  border-right-color: #c0c4cc;
@@ -89,7 +89,7 @@ export default {
89
89
  <style lang="less" scoped>
90
90
  .text-over-tooltip-components {
91
91
  display: inline-block;
92
- max-width: 100%;
92
+ max-width: 98%;
93
93
  /* 文字超出宽度显示省略号 单行 */
94
94
  .ellipsis {
95
95
  font-size: 14px;
@@ -131,7 +131,7 @@
131
131
  </a-tabs>
132
132
  <div v-if="isNormalStyle" class="footer-operate">
133
133
  <!-- 状态切换 -->
134
- <UserStatus v-if="hideHeader" type="left-bottom" />
134
+ <UserStatus v-if="hideHeader" placement="topCenter" />
135
135
  <div class="footer-operate-right">
136
136
  <span v-if="showSetting" class="setting-span">
137
137
  <svg-icon icon-class="a-xitongtubiaoliaotianshezhi" @click="handleSetting" />
@@ -18,7 +18,7 @@
18
18
  <svg-icon v-if="statusIcon" :icon-class="statusIcon" style="font-size: 16px"></svg-icon>
19
19
  <img v-else :src="getImg(status)" height="16" />
20
20
  {{ statusDesc }}
21
- <a-icon type="down" />
21
+ <a-icon type="up" />
22
22
  </div>
23
23
  <a-menu slot="overlay">
24
24
  <a-menu-item v-for="{ title, status, description, icon } in statusList" :key="status" @click="handleStatusChange(status)">
@@ -27,11 +27,11 @@ export default {
27
27
  },
28
28
 
29
29
  computed: {
30
+ questionScore() {
31
+ return this.item?.questionScore;
32
+ },
30
33
  answerSuccess() {
31
- let { questionScore } = this.item;
32
- // let { questionScore, maxScore } = this.item?.scoreConfigs || {};
33
- // if (questionScore && questionScore == maxScore) return true;
34
- return questionScore > 0;
34
+ return this.questionScore > 0;
35
35
  },
36
36
  answerIcon() {
37
37
  return this.answerSuccess ? "xitongtubiaodui" : "xitongtubiaocuo";
@@ -0,0 +1,129 @@
1
+ <template>
2
+ <div class="edit-content">
3
+ <!-- disable -->
4
+ <div v-if="!itemList" class="label-disable-wrap">
5
+ <p class="label-disable-title">无可选标签</p>
6
+ <p class="label-disable-desc">请联系管理员进行标签管理设置</p>
7
+ </div>
8
+ <!-- -->
9
+ <div v-else class="label-content">
10
+ <a-checkable-tag
11
+ v-for="item in itemList"
12
+ v-model="item.isSelect"
13
+ @change="handleLabelChange($event, item, classifyItem)"
14
+ :key="item.labelId"
15
+ :style="handleLabelColor(item)"
16
+ :class="{ 'sys-label-tag': item.isPublic && item.isPublic == 1 }"
17
+ >
18
+ <a-tooltip placement="topLeft">
19
+ <template slot="title">
20
+ <span>{{ item.labelName }}</span>
21
+ </template>
22
+ {{ item.labelName }}
23
+ </a-tooltip>
24
+
25
+ <template v-if="sourceType != 'guage'">
26
+ <a-icon class="label-close" v-show="!(item.isPublic && item.isPublic == 1)" type="close" @click.native.stop="handleDelLabel(item, classifyItem)" />
27
+ </template>
28
+ </a-checkable-tag>
29
+ <template v-if="classifyItem.allowCreateByPersonal == 1 ">
30
+ <a-button v-if="isEdit && !classifyItem.isNoAdd && sourceType != 'guage'" type="dashed" class="label-add" v-show="!classifyItem.showAdd" @click="handleAddLabel($event, classifyItem)">
31
+ <a-icon type="plus" />
32
+ <!-- {{ $t("1.1.2") }} -->
33
+ 标签
34
+ </a-button>
35
+ <!-- 是否允许新增个人标签 allowCreateByPersonal -->
36
+ <a-input v-if="isEdit && !classifyItem.isNoAdd && sourceType != 'guage'" class="label-add add-input" v-model.trim="classifyItem.addVal" v-show="classifyItem.showAdd" @blur="hanldeBlur($event, classifyItem)">
37
+ <a-icon slot="suffix" type="close" @click.native.stop="clearaddVal($event, classifyItem)" />
38
+ </a-input>
39
+ </template>
40
+ </div>
41
+ </div>
42
+ </template>
43
+
44
+ <script>
45
+ import { Tooltip, Icon, Button, Input, Tag, Tabs, Anchor } from 'ant-design-vue';
46
+ import create from '@/core/create';
47
+ export default create({
48
+ name: 'label-classify',
49
+ data() {
50
+ return {};
51
+ },
52
+ props: {
53
+ classifyItem:{
54
+ type: Object,
55
+ default:()=>({})
56
+ },
57
+
58
+ handleLabelChange: {
59
+ type: Function,
60
+ default: ()=>{}
61
+ },
62
+ handleLabelColor: {
63
+ type: Function,
64
+ default: ()=>{}
65
+ },
66
+ handleDelLabel: {
67
+ type: Function,
68
+ default: ()=>{}
69
+ },
70
+ handleAddLabel : {
71
+ type: Function,
72
+ default: ()=>{}
73
+ },
74
+ hanldeBlur: {
75
+ type: Function,
76
+ default: ()=>{}
77
+ },
78
+ clearaddVal: {
79
+ type: Function,
80
+ default: ()=>{}
81
+ },
82
+ isEdit:{
83
+ type: Boolean,
84
+ default: false
85
+ },
86
+ sourceType: String,
87
+
88
+ },
89
+ computed: {
90
+ itemList(){
91
+ return this?.classifyItem?.itemList || [];
92
+ }
93
+ },
94
+ watch: {},
95
+ beforeCreate() {},
96
+ created() {},
97
+ beforeMount() {},
98
+ mounted() {},
99
+ beforeUpdate() {},
100
+ updated() {},
101
+ beforeDestroy() {},
102
+ destroyed() {},
103
+ activated() {},
104
+ methods: {},
105
+ components: {
106
+ [Input.name]: Input,
107
+ [Icon.name]: Icon,
108
+ [Tabs.name]: Tabs,
109
+ [Tabs.TabPane.name]: Tabs.TabPane,
110
+ [Anchor.name]: Anchor,
111
+ [Anchor.Link.name]: Anchor.Link,
112
+ [Tooltip.name]: Tooltip,
113
+ [Button.name]: Button,
114
+ [Tag.name]: Tag,
115
+ [Tag.CheckableTag.name]: Tag.CheckableTag
116
+ },
117
+ });
118
+ </script>
119
+
120
+ <style lang="less" scoped>
121
+ .label-disable-wrap {
122
+ text-align: center;
123
+ }
124
+ .label-content {
125
+ /deep/ .ant-tag {
126
+ border: 1px solid #f1f1f1;
127
+ }
128
+ }
129
+ </style>