evui 3.3.21 → 3.3.22
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.
- package/dist/evui.common.js +148 -135
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +148 -135
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/model/model.store.js +10 -0
- package/src/components/grid/Grid.vue +2 -2
- package/src/components/grid/uses.js +1 -1
- package/src/components/treeGrid/TreeGrid.vue +2 -2
- package/src/components/treeGrid/uses.js +1 -1
package/package.json
CHANGED
|
@@ -698,9 +698,15 @@ const modules = {
|
|
|
698
698
|
vector: { start: position[dataIndex - 1], end: position[dataIndex] },
|
|
699
699
|
}));
|
|
700
700
|
|
|
701
|
+
const isEmptyVector = (arr => !arr || !Array.isArray(arr) || arr?.length !== 2);
|
|
702
|
+
|
|
701
703
|
// canvas 의 클릭 위치값은 제 4 사분면의 위치이므로 clickedY, y1, y2 의 값은 음수를 취한다.
|
|
702
704
|
if (isStackChart) {
|
|
703
705
|
hitSeries = vectorList.find(({ vector }) => {
|
|
706
|
+
if (isEmptyVector(vector?.start) && isEmptyVector(vector?.end)) {
|
|
707
|
+
return false;
|
|
708
|
+
}
|
|
709
|
+
|
|
704
710
|
const [x1, y1] = vector.start;
|
|
705
711
|
const [x2, y2] = vector.end;
|
|
706
712
|
const v1 = [x2 - x1, y1 - y2];
|
|
@@ -713,6 +719,10 @@ const modules = {
|
|
|
713
719
|
})?.sId;
|
|
714
720
|
} else {
|
|
715
721
|
hitSeries = vectorList.find(({ vector }) => {
|
|
722
|
+
if (isEmptyVector(vector?.start) && isEmptyVector(vector?.end)) {
|
|
723
|
+
return false;
|
|
724
|
+
}
|
|
725
|
+
|
|
716
726
|
const [x1, y1] = vector.start;
|
|
717
727
|
const [x2, y2] = vector.end;
|
|
718
728
|
const a = (y1 - y2) / (x2 - x1);
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
<grid-pagination
|
|
264
264
|
v-if="usePage && !isInfinite"
|
|
265
265
|
v-model="currentPage"
|
|
266
|
-
:total="
|
|
266
|
+
:total="pageTotal"
|
|
267
267
|
:per-page="perPage"
|
|
268
268
|
:visible-page="visiblePage"
|
|
269
269
|
:show-page-info="showPageInfo"
|
|
@@ -392,7 +392,7 @@ export default {
|
|
|
392
392
|
startIndex: 0,
|
|
393
393
|
prevPage: 0,
|
|
394
394
|
currentPage: 0,
|
|
395
|
-
|
|
395
|
+
pageTotal: computed(() => (props.option.page?.total || 0)),
|
|
396
396
|
perPage: computed(() => (props.option.page?.perPage || 20)),
|
|
397
397
|
visiblePage: computed(() => (props.option.page?.visiblePage || 8)),
|
|
398
398
|
order: computed(() => (props.option.page?.order || 'center')),
|
|
@@ -963,7 +963,7 @@ export const pagingEvent = (params) => {
|
|
|
963
963
|
currentPage: pageInfo.currentPage,
|
|
964
964
|
prevPage: pageInfo.prevPage,
|
|
965
965
|
startIndex: pageInfo.startIndex,
|
|
966
|
-
total: pageInfo.
|
|
966
|
+
total: pageInfo.pageTotal,
|
|
967
967
|
perPage: pageInfo.perPage,
|
|
968
968
|
},
|
|
969
969
|
sortInfo: {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
<grid-pagination
|
|
179
179
|
v-if="usePage && !isInfinite"
|
|
180
180
|
v-model="currentPage"
|
|
181
|
-
:total="
|
|
181
|
+
:total="pageTotal"
|
|
182
182
|
:per-page="perPage"
|
|
183
183
|
:visible-page="visiblePage"
|
|
184
184
|
:show-page-info="showPageInfo"
|
|
@@ -290,7 +290,7 @@ export default {
|
|
|
290
290
|
startIndex: 0,
|
|
291
291
|
prevPage: 0,
|
|
292
292
|
currentPage: 0,
|
|
293
|
-
|
|
293
|
+
pageTotal: computed(() => (props.option.page?.total || 0)),
|
|
294
294
|
perPage: computed(() => (props.option.page?.perPage || 20)),
|
|
295
295
|
visiblePage: computed(() => (props.option.page?.visiblePage || 8)),
|
|
296
296
|
order: computed(() => (props.option.page?.order || 'center')),
|
|
@@ -841,7 +841,7 @@ export const pagingEvent = (params) => {
|
|
|
841
841
|
currentPage: pageInfo.currentPage,
|
|
842
842
|
prevPage: pageInfo.prevPage,
|
|
843
843
|
startIndex: pageInfo.startIndex,
|
|
844
|
-
total: pageInfo.
|
|
844
|
+
total: pageInfo.pageTotal,
|
|
845
845
|
perPage: pageInfo.perPage,
|
|
846
846
|
},
|
|
847
847
|
searchInfo: {
|