cnhis-design-vue 0.2.41-beta → 0.2.42-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 (97) 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 +66 -66
  11. package/es/breadcrumb/index.js +8 -8
  12. package/es/button/index.js +28 -28
  13. package/es/calendar/index.js +8 -8
  14. package/es/captcha/index.js +3 -3
  15. package/es/card/index.js +8 -8
  16. package/es/carousel/index.js +8 -8
  17. package/es/cascader/index.js +8 -8
  18. package/es/checkbox/index.js +9 -9
  19. package/es/col/index.js +8 -8
  20. package/es/collapse/index.js +8 -8
  21. package/es/color-picker/index.js +1 -1
  22. package/es/comment/index.js +8 -8
  23. package/es/config-provider/index.js +8 -8
  24. package/es/date-picker/index.js +8 -8
  25. package/es/descriptions/index.js +8 -8
  26. package/es/divider/index.js +8 -8
  27. package/es/drag-layout/index.js +3 -3
  28. package/es/drawer/index.js +8 -8
  29. package/es/dropdown/index.js +8 -8
  30. package/es/editor/index.js +1 -1
  31. package/es/empty/index.js +8 -8
  32. package/es/fabric-chart/index.js +9 -9
  33. package/es/form/index.js +8 -8
  34. package/es/form-model/index.js +8 -8
  35. package/es/form-table/index.js +62 -62
  36. package/es/index/index.js +449 -440
  37. package/es/index/style.css +1 -1
  38. package/es/input/index.js +9 -9
  39. package/es/input-number/index.js +8 -8
  40. package/es/keep-cache/index.js +12 -1
  41. package/es/keep-cache/style.css +1 -0
  42. package/es/layout/index.js +8 -8
  43. package/es/list/index.js +8 -8
  44. package/es/locale-provider/index.js +8 -8
  45. package/es/map/index.js +9 -9
  46. package/es/mentions/index.js +8 -8
  47. package/es/menu/index.js +8 -8
  48. package/es/message/index.js +8 -8
  49. package/es/multi-chat/index.js +98 -98
  50. package/es/multi-chat/style.css +1 -1
  51. package/es/multi-chat-client/index.js +92 -92
  52. package/es/multi-chat-client/style.css +1 -1
  53. package/es/multi-chat-history/index.js +4 -4
  54. package/es/multi-chat-record/index.js +14 -14
  55. package/es/multi-chat-setting/index.js +51 -53
  56. package/es/multi-chat-setting/style.css +1 -1
  57. package/es/multi-chat-sip/index.js +1 -1
  58. package/es/notification/index.js +8 -8
  59. package/es/page-header/index.js +8 -8
  60. package/es/pagination/index.js +8 -8
  61. package/es/popconfirm/index.js +8 -8
  62. package/es/popover/index.js +8 -8
  63. package/es/progress/index.js +8 -8
  64. package/es/radio/index.js +9 -9
  65. package/es/rate/index.js +8 -8
  66. package/es/result/index.js +8 -8
  67. package/es/row/index.js +8 -8
  68. package/es/scale-view/index.js +23 -23
  69. package/es/select/index.js +11 -11
  70. package/es/select-label/index.js +11 -11
  71. package/es/select-person/index.js +2 -2
  72. package/es/skeleton/index.js +8 -8
  73. package/es/slider/index.js +8 -8
  74. package/es/space/index.js +8 -8
  75. package/es/spin/index.js +8 -8
  76. package/es/statistic/index.js +8 -8
  77. package/es/steps/index.js +8 -8
  78. package/es/switch/index.js +8 -8
  79. package/es/table-filter/index.js +53 -53
  80. package/es/tabs/index.js +8 -8
  81. package/es/tag/index.js +9 -9
  82. package/es/time-picker/index.js +8 -8
  83. package/es/timeline/index.js +8 -8
  84. package/es/tooltip/index.js +8 -8
  85. package/es/transfer/index.js +8 -8
  86. package/es/tree/index.js +8 -8
  87. package/es/tree-select/index.js +8 -8
  88. package/es/upload/index.js +8 -8
  89. package/es/verification-code/index.js +2 -2
  90. package/lib/cui.common.js +446 -414
  91. package/lib/cui.umd.js +446 -414
  92. package/lib/cui.umd.min.js +20 -20
  93. package/package.json +1 -1
  94. package/packages/keep-cache/KeepCache.js +1 -0
  95. package/packages/keep-cache/index.css +3 -0
  96. package/packages/multi-chat/chat/chatHeader.vue +11 -4
  97. package/packages/multi-chat/setting/customerService/batchSelect.vue +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.41-beta",
3
+ "version": "0.2.42-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -9,6 +9,7 @@
9
9
 
10
10
  */
11
11
  import create from '@/core/create';
12
+ import './index.css';
12
13
  const patternTypes = [String, RegExp, Array];
13
14
 
14
15
  // 获取一个子元素
@@ -0,0 +1,3 @@
1
+ body {
2
+ width: 100%;
3
+ }
@@ -21,10 +21,10 @@
21
21
  </a-tooltip>
22
22
  </template>
23
23
  </div>
24
- <div>
25
- <a-button v-if="isShow('TRANSFER') && sessionType == 1 && onChating" @click="handleConvertShow" :disabled="!onChating && !!convertButtonTitle">{{ convertButtonTitle }}</a-button>
24
+ <div class="chat-header-opt">
25
+ <a-button class="chat-header-opt-btn" v-if="isShow('TRANSFER') && sessionType == 1 && onChating" @click="handleConvertShow" :disabled="!onChating && !!convertButtonTitle">{{ convertButtonTitle }}</a-button>
26
26
  <!-- 状态切换 -->
27
- <UserStatus />
27
+ <UserStatus class="chat-header-opt-btn" />
28
28
  <!-- <a-dropdown placement="bottomCenter">
29
29
  <a-button>
30
30
  <svg-icon v-if="statusIcon" :icon-class="statusIcon" style="font-size:16px;"></svg-icon>
@@ -58,7 +58,7 @@
58
58
  </a-menu-item>
59
59
  </a-menu>
60
60
  </a-dropdown> -->
61
- <a-button @click="handleConfirm" :disabled="!onChating" v-if="isSessionOwner && !isStaff">{{ endSessionTitle }}</a-button>
61
+ <a-button class="chat-header-opt-btn" @click="handleConfirm" :disabled="!onChating" v-if="isSessionOwner && !isStaff">{{ endSessionTitle }}</a-button>
62
62
  </div>
63
63
  </div>
64
64
  <a-alert v-if="sessionTimer" class="session-time" type="success">
@@ -455,6 +455,13 @@ export default {
455
455
  margin-top: -15px;
456
456
  }
457
457
  }
458
+
459
+ .chat-header-opt {
460
+ display: flex;
461
+ &-btn {
462
+ margin-left: 10px;
463
+ }
464
+ }
458
465
  /deep/ .ant-btn {
459
466
  border-radius: 13px;
460
467
  height: 26px;
@@ -92,9 +92,6 @@ export default {
92
92
  selectedUsers() {
93
93
  return this.flatUserList.filter(item => {
94
94
  let flag = this.checkedKeys.includes(item.key);
95
- // const orgId = item.key.split('-')[0];
96
- // const userId = item.key.split('-')[2];
97
- // let flag = this.checkedKeys.some(v => v.split('-')[0] == orgId && v.split('-')[2] == userId);
98
95
  if (flag) {
99
96
  item.createdTime = this.checkedKeysTimeObj[item.key];
100
97
  return flag;
@@ -132,7 +129,8 @@ export default {
132
129
  const key = `${orgId}-${deptId}-${userId}`;
133
130
  // userId && checkedKeys.add(key);
134
131
  if (userId) {
135
- // 保证checkedKeys中的值与treeData中的key值保持一致
132
+ // 由于存在转部门的情况所以不需要匹配deptId,但a-tree中必须存在不同的deptId
133
+ // 保证checkedKeys中的值与treeData中的key值保持一致,防止因deptId不同导致数据不同步
136
134
  const obj = this.flatUserList.find(v => v.key.split('-')[0] == orgId && v.key.split('-')[2] == userId);
137
135
  if (obj?.key) {
138
136
  checkedKeys.add(`${orgId}-${obj.key.split('-')[1]}-${userId}`);