evui 3.3.47 → 3.3.49

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.
@@ -146,7 +146,7 @@ class TimeCategoryScale extends Scale {
146
146
  }
147
147
 
148
148
  ctx.fillStyle = this.labelStyle.color;
149
- ctx.lineWidth = 1;
149
+ ctx.lineWidth = this.axisLineWidth;
150
150
  const aliasPixel = Util.aliasPixel(ctx.lineWidth);
151
151
 
152
152
  ctx.beginPath();
@@ -127,6 +127,14 @@ const DEFAULT_OPTIONS = {
127
127
  fontWeight: 400,
128
128
  },
129
129
  useSeriesOpacity: false,
130
+ useDeselectItem: false,
131
+ showBorder: false,
132
+ borderStyle: {
133
+ color: '#FFFFFF',
134
+ lineWidth: 1,
135
+ opacity: 1,
136
+ radius: 0,
137
+ },
130
138
  },
131
139
  selectLabel: {
132
140
  use: false,
@@ -196,7 +204,8 @@ const DEFAULT_OPTIONS = {
196
204
  heatMapColor: {
197
205
  min: '#FFFFFF',
198
206
  max: '#0052FF',
199
- categoryCnt: 1,
207
+ rangeCount: 1,
208
+ colorsByRange: [],
200
209
  stroke: {
201
210
  show: false,
202
211
  color: '#FFFFFF',
@@ -247,7 +256,14 @@ export const useModel = (selectedLabel) => {
247
256
  click: async (e) => {
248
257
  await nextTick();
249
258
  if (e.label) {
250
- emit('update:selectedItem', { seriesID: e.seriesId, dataIndex: e.dataIndex });
259
+ let selectedItem = { seriesID: e.seriesId, dataIndex: e.dataIndex };
260
+ if ('deselect' in e) {
261
+ if (e.deselect) {
262
+ selectedItem = null;
263
+ }
264
+ delete e.deselect;
265
+ }
266
+ emit('update:selectedItem', selectedItem);
251
267
  }
252
268
  if (e.selected?.dataIndex) {
253
269
  if (selectedLabel?.value) {
@@ -33,13 +33,13 @@
33
33
  <div>
34
34
  <!--Level Depth-->
35
35
  <span
36
- v-if="cellIndex === 0"
36
+ v-if="cellIndex === expandColumnIdx"
37
37
  :style="getDepthStyle(node.level)"
38
38
  >
39
39
  </span>
40
40
  <!--Expand Icon-->
41
41
  <span
42
- v-if="cellIndex === 0"
42
+ v-if="cellIndex === expandColumnIdx"
43
43
  :class="{
44
44
  expand: node.expand,
45
45
  'ev-tree-toggle': true
@@ -63,7 +63,7 @@
63
63
  </span>
64
64
  <!--Data Icon-->
65
65
  <span
66
- v-if="cellIndex === 0 && isDataIcon"
66
+ v-if="cellIndex === expandColumnIdx && isDataIcon"
67
67
  :title="node[column.field]"
68
68
  :class="{
69
69
  expand: node.expand,
@@ -179,6 +179,10 @@ export default {
179
179
  const childIconMV = computed(() => (props.childIcon || 'tree-child-icon'));
180
180
  const isDataIcon = computed(() => ((parentIconMV.value !== 'none' || childIconMV.value !== 'none')));
181
181
 
182
+ const expandColumnIdx = computed(() => {
183
+ const expandColumnIndex = props.orderedColumns.findIndex(v => v.expandColumn);
184
+ return expandColumnIndex > 0 ? expandColumnIndex : 0;
185
+ });
182
186
  const getRowClass = nodeInfo => ({
183
187
  row: true,
184
188
  'tree-row': true,
@@ -217,6 +221,7 @@ export default {
217
221
  node,
218
222
  isDataIcon,
219
223
  checkboxClass,
224
+ expandColumnIdx,
220
225
  onCheck,
221
226
  onExpand,
222
227
  onClick,