evui 3.2.3 → 3.3.0
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 +151 -129
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +151 -129
- 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/plugins/plugins.interaction.js +5 -5
- package/src/components/grid/Grid.vue +8 -2
- package/src/components/grid/uses.js +0 -1
- package/src/components/treeGrid/TreeGrid.vue +7 -0
package/package.json
CHANGED
|
@@ -260,7 +260,7 @@ const modules = {
|
|
|
260
260
|
const dragEnd = (e) => {
|
|
261
261
|
const dragInfo = this.dragInfo;
|
|
262
262
|
|
|
263
|
-
if (dragInfo?.isMove) {
|
|
263
|
+
if (dragInfo?.isMove && dragInfo?.width > 1 && dragInfo?.height > 1) {
|
|
264
264
|
const args = {
|
|
265
265
|
e,
|
|
266
266
|
data: this.findSelectedItems(dragInfo),
|
|
@@ -581,10 +581,10 @@ const modules = {
|
|
|
581
581
|
const yMax = dataRangeY.graphMin + graphHeight * (1 - yMaxRatio);
|
|
582
582
|
|
|
583
583
|
return {
|
|
584
|
-
xMin: +parseFloat(xMin).toFixed(3),
|
|
585
|
-
xMax: +parseFloat(xMax).toFixed(3),
|
|
586
|
-
yMin: +parseFloat(yMin).toFixed(3),
|
|
587
|
-
yMax: +parseFloat(yMax).toFixed(3),
|
|
584
|
+
xMin: Math.max(+parseFloat(xMin).toFixed(3), dataRangeX.graphMin),
|
|
585
|
+
xMax: Math.min(+parseFloat(xMax).toFixed(3), dataRangeX.graphMax),
|
|
586
|
+
yMin: Math.max(+parseFloat(yMin).toFixed(3), dataRangeY.graphMin),
|
|
587
|
+
yMax: Math.min(+parseFloat(yMax).toFixed(3), dataRangeY.graphMax),
|
|
588
588
|
};
|
|
589
589
|
},
|
|
590
590
|
|
|
@@ -341,7 +341,7 @@ export default {
|
|
|
341
341
|
items: [],
|
|
342
342
|
},
|
|
343
343
|
isSearch: false,
|
|
344
|
-
|
|
344
|
+
searchValue: computed(() => (props.option.searchValue || '')),
|
|
345
345
|
});
|
|
346
346
|
const stores = reactive({
|
|
347
347
|
viewStore: [],
|
|
@@ -512,7 +512,7 @@ export default {
|
|
|
512
512
|
(value) => {
|
|
513
513
|
setStore(value);
|
|
514
514
|
if (filterInfo.isSearch) {
|
|
515
|
-
onSearch(filterInfo.
|
|
515
|
+
onSearch(filterInfo.searchValue);
|
|
516
516
|
}
|
|
517
517
|
},
|
|
518
518
|
);
|
|
@@ -581,6 +581,12 @@ export default {
|
|
|
581
581
|
setStore([], false);
|
|
582
582
|
},
|
|
583
583
|
);
|
|
584
|
+
watch(
|
|
585
|
+
() => filterInfo.searchValue,
|
|
586
|
+
(value) => {
|
|
587
|
+
onSearch(value?.value ?? value);
|
|
588
|
+
}, { immediate: true },
|
|
589
|
+
);
|
|
584
590
|
const isFilterButton = field => filterInfo.isFiltering && field !== 'db-icon' && field !== 'user-icon';
|
|
585
591
|
return {
|
|
586
592
|
showHeader,
|
|
@@ -242,6 +242,7 @@ export default {
|
|
|
242
242
|
resizeLine: null,
|
|
243
243
|
'grid-wrapper': null,
|
|
244
244
|
});
|
|
245
|
+
const searchValue = computed(() => (props.option.searchValue || ''));
|
|
245
246
|
const stores = reactive({
|
|
246
247
|
treeStore: [],
|
|
247
248
|
viewStore: [],
|
|
@@ -396,6 +397,12 @@ export default {
|
|
|
396
397
|
onResize();
|
|
397
398
|
},
|
|
398
399
|
);
|
|
400
|
+
watch(
|
|
401
|
+
() => searchValue.value,
|
|
402
|
+
(value) => {
|
|
403
|
+
onSearch(value?.value ?? value);
|
|
404
|
+
}, { immediate: true },
|
|
405
|
+
);
|
|
399
406
|
const gridStyle = computed(() => ({
|
|
400
407
|
width: resizeInfo.gridWidth,
|
|
401
408
|
height: resizeInfo.gridHeight,
|