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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evui",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -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
- searchWord: '',
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.searchWord);
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,
@@ -710,7 +710,6 @@ export const filterEvent = (params) => {
710
710
  }
711
711
  timer = setTimeout(() => {
712
712
  filterInfo.isSearch = false;
713
- filterInfo.searchWord = searchWord;
714
713
  if (searchWord) {
715
714
  stores.searchStore = stores.store.filter((row) => {
716
715
  let isShow = false;
@@ -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,