cnhis-design-vue 2.1.75 → 2.1.77

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 (99) hide show
  1. package/CHANGELOG.md +21 -7
  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 +22 -22
  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/ellipsis/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +72 -57
  35. package/es/fabric-chart/style.css +1 -1
  36. package/es/form/index.js +8 -8
  37. package/es/form-model/index.js +8 -8
  38. package/es/form-table/index.js +66 -66
  39. package/es/grid/index.js +2 -12
  40. package/es/index/index.js +485 -480
  41. package/es/index/style.css +1 -1
  42. package/es/input/index.js +9 -9
  43. package/es/input-number/index.js +8 -8
  44. package/es/layout/index.js +8 -8
  45. package/es/list/index.js +8 -8
  46. package/es/locale-provider/index.js +8 -8
  47. package/es/map/index.js +9 -9
  48. package/es/mentions/index.js +8 -8
  49. package/es/menu/index.js +8 -8
  50. package/es/message/index.js +8 -8
  51. package/es/multi-chat/index.js +76 -76
  52. package/es/multi-chat-client/index.js +70 -70
  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 +22 -22
  56. package/es/multi-chat-sip/index.js +1 -1
  57. package/es/notification/index.js +8 -8
  58. package/es/page-header/index.js +8 -8
  59. package/es/pagination/index.js +8 -8
  60. package/es/popconfirm/index.js +8 -8
  61. package/es/popover/index.js +8 -8
  62. package/es/progress/index.js +8 -8
  63. package/es/radio/index.js +9 -9
  64. package/es/rate/index.js +8 -8
  65. package/es/result/index.js +8 -8
  66. package/es/row/index.js +8 -8
  67. package/es/scale-container/index.js +1 -1
  68. package/es/scale-view/index.js +27 -27
  69. package/es/select/index.js +12 -12
  70. package/es/select-label/index.js +11 -11
  71. package/es/select-person/index.js +2 -2
  72. package/es/shortcut-setter/index.js +10 -10
  73. package/es/skeleton/index.js +8 -8
  74. package/es/slider/index.js +8 -8
  75. package/es/space/index.js +8 -8
  76. package/es/spin/index.js +8 -8
  77. package/es/statistic/index.js +8 -8
  78. package/es/steps/index.js +8 -8
  79. package/es/switch/index.js +8 -8
  80. package/es/table-filter/index.js +75 -75
  81. package/es/table-filter/style.css +1 -1
  82. package/es/tabs/index.js +8 -8
  83. package/es/tag/index.js +9 -9
  84. package/es/time-picker/index.js +8 -8
  85. package/es/timeline/index.js +8 -8
  86. package/es/tooltip/index.js +8 -8
  87. package/es/transfer/index.js +8 -8
  88. package/es/tree/index.js +8 -8
  89. package/es/tree-select/index.js +8 -8
  90. package/es/upload/index.js +8 -8
  91. package/es/verification-code/index.js +2 -2
  92. package/lib/cui.common.js +454 -472
  93. package/lib/cui.umd.js +454 -472
  94. package/lib/cui.umd.min.js +148 -148
  95. package/package.json +1 -1
  96. package/packages/fabric-chart/src/components/TimeScaleValue.vue +20 -9
  97. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +10 -3
  98. package/packages/grid/src/grid.js +1 -1
  99. package/packages/table-filter/src/base-search-com/BaseSearch.vue +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.75",
3
+ "version": "2.1.77",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -37,7 +37,6 @@ export default {
37
37
  return {
38
38
  cFabricChart: null,
39
39
  scrollEvent: null,
40
- top: 0,
41
40
  popupStyle: {
42
41
  width: '1000px',
43
42
  height: '80px',
@@ -48,6 +47,18 @@ export default {
48
47
  isShow: false
49
48
  };
50
49
  },
50
+ computed: {
51
+ popupTop() {
52
+ return this.$attrs.templateData.top?.xScalevalue?.popupTop ?? 0;
53
+ }
54
+ },
55
+ watch: {
56
+ popupTop: {
57
+ handler(value) {
58
+ this.popupStyle.top = `${value}px`;
59
+ }
60
+ }
61
+ },
51
62
  mounted() {
52
63
  this._timer = setInterval(() => {
53
64
  if (document.readyState === 'complete') {
@@ -63,10 +74,10 @@ export default {
63
74
  const { canvasWidth, spaceHeight, xCellWidth } = this.propItems;
64
75
  this.cFabricChart = this.canvas.wrapperEl.parentNode.parentNode;
65
76
  // this.bodyHeight = document.body.getBoundingClientRect().height;
66
- this.top = this.cFabricChart?.getBoundingClientRect()?.top || 0;
77
+
67
78
  this.popupStyle = {
68
79
  left: `${this.cFabricChart?.getBoundingClientRect()?.left || 0}px`,
69
- top: `${xScalevalue?.popupTop || 0}px`,
80
+ top: `${this.popupTop}px`,
70
81
  width: `${canvasWidth}px`,
71
82
  height: `${spaceHeight}px`,
72
83
  fontSize: `${xScalevalue.style?.fontSize || 12}px`
@@ -74,22 +85,22 @@ export default {
74
85
  // const spaceGridNumber = xScalevalue.spaceGridNumber || 3;
75
86
  // this.marginLeft = `${xCellWidth * spaceGridNumber}px`;
76
87
  // 节流的间隔时间不宜太大,因为实际top值不准,会造成判断条件不准确
77
- this.scrollEvent = vexutils.throttle(this.scroll, 100);
78
- window.addEventListener('scroll', this.scrollEvent, true);
88
+ if (!this.scrollEvent) {
89
+ this.scrollEvent = vexutils.debounce(this.scroll, 80);
90
+ window.addEventListener('scroll', this.scrollEvent, true);
91
+ }
79
92
  },
80
93
  scroll() {
81
94
  if (this.cFabricChart) {
82
95
  const { originYTime } = this.propItems;
83
96
  const top = this.cFabricChart.getBoundingClientRect().top;
84
- const { xScalevalue } = this.$attrs.templateData.top || {};
85
- const popupTop = xScalevalue?.popupTop || 0;
86
- this.isShow = top + originYTime < popupTop ? true : false;
97
+ this.isShow = top + originYTime < this.popupTop ? true : false;
87
98
  }
88
99
  }
89
100
  },
90
101
  beforeDestroy() {
91
102
  this._timer && clearInterval(this._timer);
92
- window.removeEventListener('scroll', this.scroll, true);
103
+ window.removeEventListener('scroll', this.scrollEvent, true);
93
104
  }
94
105
  };
95
106
  </script>
@@ -165,7 +165,8 @@ export default {
165
165
  drawTopTotal(topTotalList) {
166
166
  const { endX, canvasWidth, yCellHeightTop, topTotal, endYTop, spaceHeight, originYTop } = this.propItems;
167
167
  const textList = [];
168
- const left = endX + (canvasWidth - endX) / 2;
168
+ const totalWidth = canvasWidth - endX;
169
+ const left = endX + totalWidth / 2;
169
170
  topTotalList.forEach((v, i) => {
170
171
  const top = i * yCellHeightTop + yCellHeightTop / 2 + originYTop;
171
172
  const text = v
@@ -178,10 +179,16 @@ export default {
178
179
  originY: 'center'
179
180
  })
180
181
  : null;
181
- text && textList.push(text);
182
+ if (!text) return;
183
+ if (text.width > totalWidth)
184
+ text.set({
185
+ originX: 'right',
186
+ left: canvasWidth - 1
187
+ });
188
+ textList.push(text);
182
189
  });
183
190
  const title = this.drawTextGroup(
184
- { width: canvasWidth - endX, height: spaceHeight, strokeWidth: 1 },
191
+ { width: totalWidth, height: spaceHeight, strokeWidth: 1 },
185
192
  { text: String(topTotal.title), ...(topTotal.style || defaultVaule.textStyle) },
186
193
  { left: endX, top: originYTop > 0 ? 0 : endYTop }
187
194
  );
@@ -8,7 +8,7 @@ import 'xe-utils';
8
8
  import VXETable from 'vxe-table';
9
9
  import VXETablePluginAntd from 'vxe-table-plugin-antd'
10
10
  import Grid from 'vxe-table/lib/grid';
11
- import 'vxe-table/lib/style.css';
11
+ // import 'vxe-table/lib/style.css';
12
12
  import 'vxe-table-plugin-antd/dist/style.css'
13
13
 
14
14
  VXETable.use(VXETablePluginAntd);
@@ -46,7 +46,7 @@
46
46
  </div>
47
47
  <slot name="classification"></slot>
48
48
  <li v-if="showQuickSearch" ref="quickSearchLi">
49
- <a-button class="search-default" type="default" @click="foldQuickSearch">
49
+ <a-button class="search-default" type="default" @click="foldQuickSearch" :class="{'search-default-count': qqConObjCount}">
50
50
  <svg-icon icon-class="anniushaixuan" style="color: inherit; margin-right: 6px"></svg-icon>
51
51
  筛选 {{ qqConObjCount ? `(${qqConObjCount})` : '' }}
52
52
  </a-button>
@@ -2355,6 +2355,13 @@ export default create({
2355
2355
  border-color: #d5d5d5;
2356
2356
  color: #212121;
2357
2357
  }
2358
+ &.search-default-count {
2359
+ border-color: #2d7aff;
2360
+ color: #2d7aff;
2361
+ .ant-btn {
2362
+ color: #2d7aff;
2363
+ }
2364
+ }
2358
2365
  }
2359
2366
  /deep/ .out-filter-input {
2360
2367
  width: 200px;