cnhis-design-vue 2.1.16 → 2.1.17

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 (125) hide show
  1. package/CHANGELOG.md +2219 -2219
  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 +124 -111
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +59 -53
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/carousel/index.js +8 -8
  19. package/es/cascader/index.js +8 -8
  20. package/es/checkbox/index.js +9 -9
  21. package/es/col/index.js +8 -8
  22. package/es/collapse/index.js +8 -8
  23. package/es/color-picker/index.js +1 -1
  24. package/es/comment/index.js +8 -8
  25. package/es/config-provider/index.js +8 -8
  26. package/es/date-picker/index.js +8 -8
  27. package/es/descriptions/index.js +8 -8
  28. package/es/divider/index.js +8 -8
  29. package/es/drag-layout/index.js +3 -3
  30. package/es/drawer/index.js +8 -8
  31. package/es/dropdown/index.js +8 -8
  32. package/es/editor/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +95 -104
  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 +62 -62
  39. package/es/index/index.js +666 -656
  40. package/es/index/style.css +1 -1
  41. package/es/input/index.js +9 -9
  42. package/es/input-number/index.js +8 -8
  43. package/es/layout/index.js +8 -8
  44. package/es/list/index.js +8 -8
  45. package/es/locale-provider/index.js +8 -8
  46. package/es/map/index.js +9 -9
  47. package/es/mentions/index.js +8 -8
  48. package/es/menu/index.js +8 -8
  49. package/es/message/index.js +8 -8
  50. package/es/multi-chat/index.js +92 -92
  51. package/es/multi-chat-client/index.js +86 -86
  52. package/es/multi-chat-history/index.js +4 -4
  53. package/es/multi-chat-record/index.js +14 -14
  54. package/es/multi-chat-setting/index.js +27 -27
  55. package/es/multi-chat-sip/index.js +1 -1
  56. package/es/notification/index.js +8 -8
  57. package/es/page-header/index.js +8 -8
  58. package/es/pagination/index.js +8 -8
  59. package/es/popconfirm/index.js +8 -8
  60. package/es/popover/index.js +8 -8
  61. package/es/progress/index.js +8 -8
  62. package/es/radio/index.js +9 -9
  63. package/es/rate/index.js +8 -8
  64. package/es/result/index.js +8 -8
  65. package/es/row/index.js +8 -8
  66. package/es/scale-view/index.js +33 -33
  67. package/es/select/index.js +11 -11
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +20 -20
  70. package/es/skeleton/index.js +8 -8
  71. package/es/slider/index.js +8 -8
  72. package/es/space/index.js +8 -8
  73. package/es/spin/index.js +8 -8
  74. package/es/statistic/index.js +8 -8
  75. package/es/steps/index.js +8 -8
  76. package/es/switch/index.js +8 -8
  77. package/es/table-filter/index.js +145 -139
  78. package/es/table-filter/style.css +1 -1
  79. package/es/tabs/index.js +8 -8
  80. package/es/tag/index.js +9 -9
  81. package/es/time-picker/index.js +8 -8
  82. package/es/timeline/index.js +8 -8
  83. package/es/tooltip/index.js +8 -8
  84. package/es/transfer/index.js +8 -8
  85. package/es/tree/index.js +8 -8
  86. package/es/tree-select/index.js +8 -8
  87. package/es/upload/index.js +8 -8
  88. package/es/verification-code/index.js +2 -2
  89. package/lib/cui.common.js +644 -634
  90. package/lib/cui.umd.js +644 -634
  91. package/lib/cui.umd.min.js +72 -72
  92. package/package.json +107 -107
  93. package/packages/big-table/src/BigTable.vue +3038 -3038
  94. package/packages/big-table/src/assets/style/table-base.less +370 -370
  95. package/packages/big-table/src/components/AutoLayoutButton.vue +270 -270
  96. package/packages/big-table/src/utils/batchEditing.js +34 -27
  97. package/packages/big-table/src/utils/bigTableProps.js +95 -95
  98. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
  99. package/packages/button/src/ButtonPrint/index.vue +728 -724
  100. package/packages/fabric-chart/src/FabricChart.vue +15 -36
  101. package/packages/fabric-chart/src/components/TimeScaleValue.vue +117 -117
  102. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  103. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +4 -3
  104. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +960 -960
  105. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -133
  106. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
  107. package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
  108. package/packages/multi-chat/chat/chatFooter.vue +1598 -1598
  109. package/packages/multi-chat/chat/chatMain.vue +1442 -1442
  110. package/packages/multi-chat/chat/quickReply.vue +439 -439
  111. package/packages/multi-chat/chat/scrollList.vue +1232 -1232
  112. package/packages/multi-chat/setting/baseInfo/index.vue +1302 -1302
  113. package/packages/multi-chat/store/actions.js +448 -448
  114. package/packages/multi-chat/store/state.js +112 -112
  115. package/packages/scale-view/formitem/r-choice.vue +714 -714
  116. package/packages/scale-view/scaleView.vue +2010 -2010
  117. package/packages/select-person/select-person.vue +1658 -1658
  118. package/packages/table-filter/src/base-search-com/BaseSearch.vue +2462 -2462
  119. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
  120. package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
  121. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
  122. package/packages/table-filter/src/const/dataOptions.js +43 -43
  123. package/packages/table-filter/src/mixins/mixins.js +695 -695
  124. package/packages/table-filter/src/quick-search/QuickSearch.vue +2083 -2083
  125. package/src/directive/preventReClick.js +12 -12
@@ -1,43 +1,22 @@
1
1
  <template>
2
- <div class="c-fabric-chart" :style="{'width': canvasWidth}">
3
- <component
4
- ref="canvasEle"
5
- :is="`FabricCanvas${templateData.type || ''}`"
6
- :id="id"
7
- :templateData="templateData"
8
- v-if="rendercanvas"
9
- >
2
+ <div class="c-fabric-chart" :style="{ width: canvasWidth }">
3
+ <component ref="canvasEle" :is="`FabricCanvas${templateData.type || ''}`" :id="id" :templateData="templateData" v-if="rendercanvas">
10
4
  <template v-if="templateData.type">
11
5
  <fabric-grid></fabric-grid>
12
6
  <fabric-top2 :templateData="templateData"></fabric-top2>
13
7
  <fabric-left2 :templateData="templateData"></fabric-left2>
14
8
  <fabric-right2 :templateData="templateData"></fabric-right2>
15
9
  <fabric-bottom2 :templateData="templateData"></fabric-bottom2>
16
- <fabric-center2
17
- :other="templateData.other"
18
- :polyline="templateData.left.leftYScalevalue"
19
- v-on="$listeners"
20
- @pointOperation="pointOperation"
21
- ></fabric-center2>
10
+ <fabric-center2 :other="templateData.other" :polyline="templateData.left.leftYScalevalue" v-on="$listeners" @pointOperation="pointOperation"></fabric-center2>
22
11
  </template>
23
12
 
24
13
  <template v-else>
25
- <fabric-text-group
26
- v-if="hasXScalevalue"
27
- :templateData="templateData"
28
- v-on="$listeners"
29
- ></fabric-text-group>
14
+ <fabric-text-group v-if="hasXScalevalue" :templateData="templateData" v-on="$listeners"></fabric-text-group>
30
15
  <fabric-grid></fabric-grid>
31
16
  <fabric-scale-value v-if="hasTable" :templateData="templateData"></fabric-scale-value>
32
17
  <fabric-lines v-if="hasTopTable" ref="lines" :linesObj="templateData.top" v-on="$listeners"></fabric-lines>
33
- <fabric-polylines ref="polylines"
34
- v-if="hasTable"
35
- :polyline="polylines"
36
- :other="templateData.left.other || {}"
37
- @pointOperation="pointOperation"
38
- v-on="$listeners"></fabric-polylines>
18
+ <fabric-polylines ref="polylines" v-if="hasTable" :polyline="polylines" :other="templateData.left.other || {}" @pointOperation="pointOperation" v-on="$listeners"></fabric-polylines>
39
19
  </template>
40
-
41
20
  </component>
42
21
  </div>
43
22
  </template>
@@ -74,7 +53,7 @@ export default create({
74
53
  templateData: {
75
54
  type: Object,
76
55
  required: true
77
- },
56
+ }
78
57
  },
79
58
  components: {
80
59
  FabricCanvas,
@@ -109,17 +88,17 @@ export default create({
109
88
  hasTable() {
110
89
  const hasLeft = this.templateData.left?.leftYScalevalue?.list?.length > 0;
111
90
  const hasRight = this.templateData.right?.rightYScalevalue?.list?.length > 0;
112
- return this.hasXScalevalue && hasLeft && hasRight;
91
+ return this.hasXScalevalue && (hasLeft || hasRight);
113
92
  },
114
93
  hasXScalevalue() {
115
94
  return this.templateData.top?.xScalevalue?.list?.length > 0;
116
- },
95
+ }
117
96
  },
118
97
  data() {
119
98
  return {
120
99
  rendercanvas: true,
121
100
  canvasWidth: 0
122
- }
101
+ };
123
102
  },
124
103
  mounted() {
125
104
  this.canvasWidth = `${this.templateData.canvasWidth}px` || '1000px';
@@ -159,21 +138,21 @@ export default create({
159
138
  // 在组件移除后,重新渲染组件
160
139
  // this.$nextTick可实现在DOM 状态更新后,执行传入的方法。
161
140
  this.$nextTick(() => {
162
- this.rendercanvas = true;
163
- })
141
+ this.rendercanvas = true;
142
+ });
164
143
  // this.$refs.canvasEle.renderCanvas();
165
144
  },
166
145
  removeSelectArea() {
167
146
  this.$nextTick(() => {
168
147
  this.$refs.polylines.removeSelectArea();
169
- })
148
+ });
170
149
  }
171
150
  }
172
151
  });
173
152
  </script>
174
153
 
175
154
  <style lang="less" scoped>
176
- .c-fabric-chart {
177
- position: relative;
178
- }
155
+ .c-fabric-chart {
156
+ position: relative;
157
+ }
179
158
  </style>
@@ -1,117 +1,117 @@
1
- <template>
2
- <div v-show="isShow" class="c-time-scalevalue" :style="{ '--left': popupStyle.left, '--top': popupStyle.top, '--height': popupStyle.height, '--width': popupStyle.width }">
3
- <span
4
- class="c-time-scalevalue-list"
5
- v-show="index % 2 == 0"
6
- v-for="(item, index) in times"
7
- :key="item.left"
8
- :style="{ left: `${item.left - item.width / 2}px`, '--font-size': popupStyle.fontSize }"
9
- >
10
- {{ item.time }}
11
- </span>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- // import Vue from 'vue';
17
- // import DomPortal from 'vue-dom-portal';
18
- import vexutils from '@/utils/vexutils';
19
- import fabricCommon from '../mixins/fabricCommon';
20
-
21
- export default {
22
- mixins: [fabricCommon],
23
- props: {
24
- times: {
25
- type: Array,
26
- required: true
27
- }
28
- // to: {
29
- // type: String,
30
- // default: 'body'
31
- // }
32
- },
33
- // beforeCreate() {
34
- // Vue.use(DomPortal);
35
- // },
36
- data() {
37
- return {
38
- cFabricChart: null,
39
- scrollEvent: null,
40
- top: 0,
41
- popupStyle: {
42
- width: '1000px',
43
- height: '80px',
44
- left: 0,
45
- top: 0,
46
- fontSize: '12px'
47
- },
48
- isShow: false
49
- };
50
- },
51
- mounted() {
52
- this.$nextTick(() => {
53
- setTimeout(() => {
54
- this.init();
55
- }, 0);
56
- });
57
- },
58
- methods: {
59
- init() {
60
- // this.to = this.templateData.top?.xScalevalue?.to || 'body';
61
- const { xScalevalue } = this.$attrs.templateData.top || {};
62
- const { canvasWidth, spaceHeight, xCellWidth } = this.propItems;
63
- this.cFabricChart = document.querySelector('.c-fabric-chart');
64
- // this.bodyHeight = document.body.getBoundingClientRect().height;
65
- this.top = this.cFabricChart.getBoundingClientRect().top;
66
- this.popupStyle = {
67
- left: `${this.cFabricChart.getBoundingClientRect().left}px`,
68
- top: `${xScalevalue?.popupTop || 0}px`,
69
- width: `${canvasWidth}px`,
70
- height: `${spaceHeight}px`,
71
- fontSize: `${xScalevalue.style?.fontSize || 12}px`
72
- };
73
- // const spaceGridNumber = xScalevalue.spaceGridNumber || 3;
74
- // this.marginLeft = `${xCellWidth * spaceGridNumber}px`;
75
- // 节流的间隔时间不宜太大,因为实际top值不准,会造成判断条件不准确
76
- this.scrollEvent = vexutils.throttle(this.scroll, 100);
77
- window.addEventListener('scroll', this.scrollEvent, true);
78
- },
79
- scroll() {
80
- if (this.cFabricChart) {
81
- const { originY, spaceHeight } = this.propItems;
82
- const top = this.cFabricChart.getBoundingClientRect().top;
83
- const newOriginY = originY - spaceHeight;
84
- const { xScalevalue } = this.$attrs.templateData.top || {};
85
- const popupTop = xScalevalue?.popupTop || 0;
86
- if (top + newOriginY < popupTop) {
87
- this.isShow = true;
88
- } else {
89
- this.isShow = false;
90
- }
91
- }
92
- }
93
- },
94
- beforeDestroy() {
95
- window.removeEventListener('scroll', this.scroll, true);
96
- }
97
- };
98
- </script>
99
-
100
- <style lang="less" scoped>
101
- .c-time-scalevalue {
102
- position: fixed;
103
- z-index: 999;
104
- left: var(--left);
105
- top: var(--top);
106
- width: var(--width);
107
- height: var(--height);
108
- background: rgba(0, 0, 0, 0.6);
109
- color: #fff;
110
- &-list {
111
- position: absolute;
112
- line-height: var(--height);
113
- transform-origin: center;
114
- font-size: var(--font-size);
115
- }
116
- }
117
- </style>
1
+ <template>
2
+ <div v-show="isShow" class="c-time-scalevalue" :style="{ '--left': popupStyle.left, '--top': popupStyle.top, '--height': popupStyle.height, '--width': popupStyle.width }">
3
+ <span
4
+ class="c-time-scalevalue-list"
5
+ v-show="index % 2 == 0"
6
+ v-for="(item, index) in times"
7
+ :key="item.left"
8
+ :style="{ left: `${item.left - item.width / 2}px`, '--font-size': popupStyle.fontSize }"
9
+ >
10
+ {{ item.time }}
11
+ </span>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ // import Vue from 'vue';
17
+ // import DomPortal from 'vue-dom-portal';
18
+ import vexutils from '@/utils/vexutils';
19
+ import fabricCommon from '../mixins/fabricCommon';
20
+
21
+ export default {
22
+ mixins: [fabricCommon],
23
+ props: {
24
+ times: {
25
+ type: Array,
26
+ required: true
27
+ }
28
+ // to: {
29
+ // type: String,
30
+ // default: 'body'
31
+ // }
32
+ },
33
+ // beforeCreate() {
34
+ // Vue.use(DomPortal);
35
+ // },
36
+ data() {
37
+ return {
38
+ cFabricChart: null,
39
+ scrollEvent: null,
40
+ top: 0,
41
+ popupStyle: {
42
+ width: '1000px',
43
+ height: '80px',
44
+ left: 0,
45
+ top: 0,
46
+ fontSize: '12px'
47
+ },
48
+ isShow: false
49
+ };
50
+ },
51
+ mounted() {
52
+ this.$nextTick(() => {
53
+ setTimeout(() => {
54
+ this.init();
55
+ }, 0);
56
+ });
57
+ },
58
+ methods: {
59
+ init() {
60
+ // this.to = this.templateData.top?.xScalevalue?.to || 'body';
61
+ const { xScalevalue } = this.$attrs.templateData.top || {};
62
+ const { canvasWidth, spaceHeight, xCellWidth } = this.propItems;
63
+ this.cFabricChart = document.querySelector('.c-fabric-chart');
64
+ // this.bodyHeight = document.body.getBoundingClientRect().height;
65
+ this.top = this.cFabricChart.getBoundingClientRect().top;
66
+ this.popupStyle = {
67
+ left: `${this.cFabricChart.getBoundingClientRect().left}px`,
68
+ top: `${xScalevalue?.popupTop || 0}px`,
69
+ width: `${canvasWidth}px`,
70
+ height: `${spaceHeight}px`,
71
+ fontSize: `${xScalevalue.style?.fontSize || 12}px`
72
+ };
73
+ // const spaceGridNumber = xScalevalue.spaceGridNumber || 3;
74
+ // this.marginLeft = `${xCellWidth * spaceGridNumber}px`;
75
+ // 节流的间隔时间不宜太大,因为实际top值不准,会造成判断条件不准确
76
+ this.scrollEvent = vexutils.throttle(this.scroll, 100);
77
+ window.addEventListener('scroll', this.scrollEvent, true);
78
+ },
79
+ scroll() {
80
+ if (this.cFabricChart) {
81
+ const { originY, spaceHeight } = this.propItems;
82
+ const top = this.cFabricChart.getBoundingClientRect().top;
83
+ const newOriginY = originY - spaceHeight;
84
+ const { xScalevalue } = this.$attrs.templateData.top || {};
85
+ const popupTop = xScalevalue?.popupTop || 0;
86
+ if (top + newOriginY < popupTop) {
87
+ this.isShow = true;
88
+ } else {
89
+ this.isShow = false;
90
+ }
91
+ }
92
+ }
93
+ },
94
+ beforeDestroy() {
95
+ window.removeEventListener('scroll', this.scroll, true);
96
+ }
97
+ };
98
+ </script>
99
+
100
+ <style lang="less" scoped>
101
+ .c-time-scalevalue {
102
+ position: fixed;
103
+ z-index: 999;
104
+ left: var(--left);
105
+ top: var(--top);
106
+ width: var(--width);
107
+ height: var(--height);
108
+ background: rgba(0, 0, 0, 0.6);
109
+ color: #fff;
110
+ &-list {
111
+ position: absolute;
112
+ line-height: var(--height);
113
+ transform-origin: center;
114
+ font-size: var(--font-size);
115
+ }
116
+ }
117
+ </style>
@@ -1,59 +1,59 @@
1
- const data = {
2
- style: {
3
- evented: false,
4
- selectable: false
5
- },
6
- rectStyle: {
7
- fill: 'transparent',
8
- stroke: '#999',
9
- strokeWidth: 1
10
- },
11
- textStyle: {
12
- fontFamily: '微软雅黑',
13
- fontSize: 12,
14
- fill: '#000',
15
- lineHeight: 1
16
- },
17
- borderStyle: {
18
- stroke: '#999',
19
- strokeWidth: 1,
20
- selectable: false,
21
- evented: false
22
- },
23
- // 折线图中的点
24
- pointStyle: {
25
- fill: '#ffffff', // 填充色
26
- stroke: '#000000', // 描边色
27
- originX: 'center',
28
- originY: 'center'
29
- },
30
- // 折线图中的线
31
- lineStyle: {
32
- stroke: '#000', // 描边色
33
- strokeWidth: 1, // 描边宽度
34
- originX: 'center',
35
- originY: 'center'
36
- },
37
- topSpaceHeight: 10, // templateData.top.spaceHeight
38
- topSpaceGridNumber: 3, // templateData.top.xScalevalue.spaceGridNumber
39
- leftSpaceGridNumber: 2, // templateData.left.leftYScalevalue.spaceGridNumber
40
- rightSpaceGridNumber: 2, // templateData.right.rightYScalevalue.spaceGridNumber
41
- topTotal: {
42
- title: '总量',
43
- width: 0,
44
- style: {
45
- fontFamily: '微软雅黑',
46
- fontSize: 12,
47
- fill: '#000',
48
- lineHeight: 1
49
- }
50
- },
51
- criticalStyle: { // 危急值样式
52
- stroke: 'purple', // 颜色 默认 #999
53
- strokeWidth: 1, // 线宽 默认 1
54
- strokeDashArray: [0, 0] // 实线设置 默认[0, 0]
55
- },
56
- bottomNumberLeftSpace: 10 // 底部标记的序号与标记之间的距离
57
- };
58
-
59
- export default data;
1
+ const data = {
2
+ style: {
3
+ evented: false,
4
+ selectable: false
5
+ },
6
+ rectStyle: {
7
+ fill: 'transparent',
8
+ stroke: '#999',
9
+ strokeWidth: 1
10
+ },
11
+ textStyle: {
12
+ fontFamily: '微软雅黑',
13
+ fontSize: 12,
14
+ fill: '#000',
15
+ lineHeight: 1
16
+ },
17
+ borderStyle: {
18
+ stroke: '#999',
19
+ strokeWidth: 1,
20
+ selectable: false,
21
+ evented: false
22
+ },
23
+ // 折线图中的点
24
+ pointStyle: {
25
+ fill: '#ffffff', // 填充色
26
+ stroke: '#000000', // 描边色
27
+ originX: 'center',
28
+ originY: 'center'
29
+ },
30
+ // 折线图中的线
31
+ lineStyle: {
32
+ stroke: '#000', // 描边色
33
+ strokeWidth: 1, // 描边宽度
34
+ originX: 'center',
35
+ originY: 'center'
36
+ },
37
+ topSpaceHeight: 10, // templateData.top.spaceHeight
38
+ topSpaceGridNumber: 3, // templateData.top.xScalevalue.spaceGridNumber
39
+ leftSpaceGridNumber: 2, // templateData.left.leftYScalevalue.spaceGridNumber
40
+ rightSpaceGridNumber: 2, // templateData.right.rightYScalevalue.spaceGridNumber
41
+ topTotal: {
42
+ title: '总量',
43
+ width: 0,
44
+ style: {
45
+ fontFamily: '微软雅黑',
46
+ fontSize: 12,
47
+ fill: '#000',
48
+ lineHeight: 1
49
+ }
50
+ },
51
+ criticalStyle: { // 危急值样式
52
+ stroke: 'purple', // 颜色 默认 #999
53
+ strokeWidth: 1, // 线宽 默认 1
54
+ strokeDashArray: [0, 0] // 实线设置 默认[0, 0]
55
+ },
56
+ bottomNumberLeftSpace: 10 // 底部标记的序号与标记之间的距离
57
+ };
58
+
59
+ export default data;
@@ -82,9 +82,10 @@ export default {
82
82
  console.warn(error);
83
83
  }
84
84
  }
85
- if (!this.templateData.left || !this.templateData.right) {
85
+ // if (!this.templateData.left || !this.templateData.right) {
86
+ if (!this.templateData.left) {
86
87
  try {
87
- throw new Error('缺少左/右侧数据对象, 无法生成垂直方向刻度');
88
+ throw new Error('缺少左侧数据对象, 无法生成垂直方向刻度');
88
89
  } catch (error) {
89
90
  console.warn(error);
90
91
  }
@@ -133,7 +134,7 @@ export default {
133
134
  endX() {
134
135
  // 网格区域水平方向最大坐标值, 也是整个画布右侧列表坐标起始值,网格右下角x轴坐标值
135
136
  if (!this.templateData.right && !this.topTotal) return this.templateData.canvasWidth;
136
- return this.templateData.canvasWidth - (this.templateData.right?.width || 20) - this.topTotal.width;
137
+ return this.templateData.canvasWidth - (this.templateData.right?.width ?? 20) - this.topTotal.width;
137
138
  },
138
139
  endY() {
139
140
  // 画布高度 - 底部列表高度 ,网格右下角y轴坐标值