@94ai/nf-search-form 9.0.0 → 10.0.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.
@@ -1,100 +1,100 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- value?: number[] | undefined;
3
- tag?: string | undefined;
4
- slotText?: {
5
- prepend?: [string, string] | undefined;
6
- append?: [string, string] | undefined;
7
- suffix?: [string, string] | undefined;
8
- prefix?: [string, string] | undefined;
9
- } | undefined;
10
- }>, {
11
- value: () => never[];
12
- tag: string;
13
- slotText: () => {};
14
- }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
15
- change: (event: [number | undefined, number | undefined]) => void;
16
- input: (event: [number | undefined, number | undefined]) => void;
17
- }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
- value?: number[] | undefined;
19
- tag?: string | undefined;
20
- slotText?: {
21
- prepend?: [string, string] | undefined;
22
- append?: [string, string] | undefined;
23
- suffix?: [string, string] | undefined;
24
- prefix?: [string, string] | undefined;
25
- } | undefined;
26
- }>, {
27
- value: () => never[];
28
- tag: string;
29
- slotText: () => {};
30
- }>>>, {
31
- value: number[];
32
- tag: string;
33
- slotText: {
34
- prepend?: [
35
- string,
36
- string
37
- ];
38
- append?: [
39
- string,
40
- string
41
- ];
42
- suffix?: [
43
- string,
44
- string
45
- ];
46
- prefix?: [
47
- string,
48
- string
49
- ];
50
- };
51
- }>, {
52
- "pre-prepend"?(_: {
53
- slot: string;
54
- }): any;
55
- "pre-append"?(_: {
56
- slot: string;
57
- }): any;
58
- "pre-suffix"?(_: {
59
- slot: string;
60
- }): any;
61
- "pre-prefix"?(_: {
62
- slot: string;
63
- }): any;
64
- symbol?(_: {}): any;
65
- "after-prepend"?(_: {
66
- slot: string;
67
- }): any;
68
- "after-append"?(_: {
69
- slot: string;
70
- }): any;
71
- "after-suffix"?(_: {
72
- slot: string;
73
- }): any;
74
- "after-prefix"?(_: {
75
- slot: string;
76
- }): any;
77
- }>;
78
- export default _default;
79
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
80
- declare type __VLS_TypePropsToRuntimeProps<T> = {
81
- [K in keyof T]-?: {} extends Pick<T, K> ? {
82
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
83
- } : {
84
- type: import('vue').PropType<T[K]>;
85
- required: true;
86
- };
87
- };
88
- declare type __VLS_WithDefaults<P, D> = {
89
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
90
- default: D[K];
91
- }> : P[K];
92
- };
93
- declare type __VLS_Prettify<T> = {
94
- [K in keyof T]: T[K];
95
- } & {};
96
- declare type __VLS_WithTemplateSlots<T, S> = T & {
97
- new (): {
98
- $scopedSlots: S;
99
- };
100
- };
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ value?: number[] | undefined;
3
+ tag?: string | undefined;
4
+ slotText?: {
5
+ prepend?: [string, string] | undefined;
6
+ append?: [string, string] | undefined;
7
+ suffix?: [string, string] | undefined;
8
+ prefix?: [string, string] | undefined;
9
+ } | undefined;
10
+ }>, {
11
+ value: () => never[];
12
+ tag: string;
13
+ slotText: () => {};
14
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
15
+ change: (event: [number | undefined, number | undefined]) => void;
16
+ input: (event: [number | undefined, number | undefined]) => void;
17
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ value?: number[] | undefined;
19
+ tag?: string | undefined;
20
+ slotText?: {
21
+ prepend?: [string, string] | undefined;
22
+ append?: [string, string] | undefined;
23
+ suffix?: [string, string] | undefined;
24
+ prefix?: [string, string] | undefined;
25
+ } | undefined;
26
+ }>, {
27
+ value: () => never[];
28
+ tag: string;
29
+ slotText: () => {};
30
+ }>>>, {
31
+ value: number[];
32
+ tag: string;
33
+ slotText: {
34
+ prepend?: [
35
+ string,
36
+ string
37
+ ];
38
+ append?: [
39
+ string,
40
+ string
41
+ ];
42
+ suffix?: [
43
+ string,
44
+ string
45
+ ];
46
+ prefix?: [
47
+ string,
48
+ string
49
+ ];
50
+ };
51
+ }>, {
52
+ "pre-prepend"?(_: {
53
+ slot: string;
54
+ }): any;
55
+ "pre-append"?(_: {
56
+ slot: string;
57
+ }): any;
58
+ "pre-suffix"?(_: {
59
+ slot: string;
60
+ }): any;
61
+ "pre-prefix"?(_: {
62
+ slot: string;
63
+ }): any;
64
+ symbol?(_: {}): any;
65
+ "after-prepend"?(_: {
66
+ slot: string;
67
+ }): any;
68
+ "after-append"?(_: {
69
+ slot: string;
70
+ }): any;
71
+ "after-suffix"?(_: {
72
+ slot: string;
73
+ }): any;
74
+ "after-prefix"?(_: {
75
+ slot: string;
76
+ }): any;
77
+ }>;
78
+ export default _default;
79
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
80
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
81
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
82
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
83
+ } : {
84
+ type: import('vue').PropType<T[K]>;
85
+ required: true;
86
+ };
87
+ };
88
+ declare type __VLS_WithDefaults<P, D> = {
89
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
90
+ default: D[K];
91
+ }> : P[K];
92
+ };
93
+ declare type __VLS_Prettify<T> = {
94
+ [K in keyof T]: T[K];
95
+ } & {};
96
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
97
+ new (): {
98
+ $scopedSlots: S;
99
+ };
100
+ };
@@ -1,112 +1,112 @@
1
- import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- value?: any;
4
- itemOptions?: NfSearchFormItemOption | undefined;
5
- itemWidth?: number | undefined;
6
- nfSearchFormModel?: Record<string, any> | undefined;
7
- }>, {
8
- value: undefined;
9
- itemOptions: () => {};
10
- itemWidth: number;
11
- nfSearchFormModel: () => {};
12
- }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
13
- input: (event: any) => void;
14
- "update:value": (event: any) => void;
15
- handleChangeProps: (event: string[]) => void;
16
- }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- value?: any;
18
- itemOptions?: NfSearchFormItemOption | undefined;
19
- itemWidth?: number | undefined;
20
- nfSearchFormModel?: Record<string, any> | undefined;
21
- }>, {
22
- value: undefined;
23
- itemOptions: () => {};
24
- itemWidth: number;
25
- nfSearchFormModel: () => {};
26
- }>>>, {
27
- value: any;
28
- itemOptions: NfSearchFormItemOption;
29
- itemWidth: number;
30
- nfSearchFormModel: Record<string, any>;
31
- }>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
32
- slot: string;
33
- }) => any>> & Partial<Record<string, (_: {
34
- slot: string;
35
- }) => any>> & Partial<Record<string, (_: {
36
- slot: string;
37
- }) => any>> & Partial<Record<string, (_: {
38
- slot: string;
39
- }) => any>> & Partial<Record<string, (_: {
40
- slot: string;
41
- }) => any>> & Partial<Record<string, (_: {
42
- slot: string;
43
- }) => any>> & Partial<Record<string, (_: {
44
- slot: string;
45
- }) => any>> & Partial<Record<string, (_: {
46
- slot: string;
47
- }) => any>> & Partial<Record<string, (_: {
48
- slot: string;
49
- }) => any>> & Partial<Record<string, (_: {
50
- slot: string;
51
- }) => any>> & Partial<Record<string, (_: {
52
- slot: string;
53
- }) => any>> & Partial<Record<string, (_: {
54
- slot: string;
55
- }) => any>> & Partial<Record<string, (_: {
56
- slot: string;
57
- }) => any>> & Partial<Record<string, (_: {
58
- slot: string;
59
- }) => any>> & Partial<Record<string, (_: {
60
- slot: string;
61
- }) => any>> & Partial<Record<string, (_: {
62
- slot: string;
63
- }) => any>> & Partial<Record<string, (_: {
64
- slot: string;
65
- }) => any>> & Partial<Record<string, (_: {
66
- slot: string;
67
- }) => any>> & Partial<Record<string, (_: {
68
- slot: string;
69
- }) => any>> & Partial<Record<string, (_: {
70
- slot: string;
71
- }) => any>> & Partial<Record<string, (_: {
72
- slot: string;
73
- }) => any>> & Partial<Record<string, (_: {
74
- slot: string;
75
- }) => any>> & Partial<Record<string, (_: {
76
- slot: string;
77
- }) => any>> & Partial<Record<string, (_: {
78
- slot: string;
79
- }) => any>> & Partial<Record<string, (_: {
80
- slot: string;
81
- }) => any>> & Partial<Record<string, (_: {
82
- slot: string;
83
- }) => any>> & Partial<Record<string, (_: {
84
- slot: string;
85
- }) => any>> & Partial<Record<string, (_: {
86
- slot: string;
87
- }) => any>> & Partial<Record<string, (_: {
88
- slot: string;
89
- }) => any>> & Partial<Record<string, (_: {}) => any>>>;
90
- export default _default;
91
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
- declare type __VLS_TypePropsToRuntimeProps<T> = {
93
- [K in keyof T]-?: {} extends Pick<T, K> ? {
94
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
- } : {
96
- type: import('vue').PropType<T[K]>;
97
- required: true;
98
- };
99
- };
100
- declare type __VLS_WithDefaults<P, D> = {
101
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
102
- default: D[K];
103
- }> : P[K];
104
- };
105
- declare type __VLS_Prettify<T> = {
106
- [K in keyof T]: T[K];
107
- } & {};
108
- declare type __VLS_WithTemplateSlots<T, S> = T & {
109
- new (): {
110
- $scopedSlots: S;
111
- };
112
- };
1
+ import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ value?: any;
4
+ itemOptions?: NfSearchFormItemOption | undefined;
5
+ itemWidth?: number | undefined;
6
+ nfSearchFormModel?: Record<string, any> | undefined;
7
+ }>, {
8
+ value: undefined;
9
+ itemOptions: () => {};
10
+ itemWidth: number;
11
+ nfSearchFormModel: () => {};
12
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
13
+ input: (event: any) => void;
14
+ "update:value": (event: any) => void;
15
+ handleChangeProps: (event: string[]) => void;
16
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ value?: any;
18
+ itemOptions?: NfSearchFormItemOption | undefined;
19
+ itemWidth?: number | undefined;
20
+ nfSearchFormModel?: Record<string, any> | undefined;
21
+ }>, {
22
+ value: undefined;
23
+ itemOptions: () => {};
24
+ itemWidth: number;
25
+ nfSearchFormModel: () => {};
26
+ }>>>, {
27
+ value: any;
28
+ itemOptions: NfSearchFormItemOption;
29
+ itemWidth: number;
30
+ nfSearchFormModel: Record<string, any>;
31
+ }>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
32
+ slot: string;
33
+ }) => any>> & Partial<Record<string, (_: {
34
+ slot: string;
35
+ }) => any>> & Partial<Record<string, (_: {
36
+ slot: string;
37
+ }) => any>> & Partial<Record<string, (_: {
38
+ slot: string;
39
+ }) => any>> & Partial<Record<string, (_: {
40
+ slot: string;
41
+ }) => any>> & Partial<Record<string, (_: {
42
+ slot: string;
43
+ }) => any>> & Partial<Record<string, (_: {
44
+ slot: string;
45
+ }) => any>> & Partial<Record<string, (_: {
46
+ slot: string;
47
+ }) => any>> & Partial<Record<string, (_: {
48
+ slot: string;
49
+ }) => any>> & Partial<Record<string, (_: {
50
+ slot: string;
51
+ }) => any>> & Partial<Record<string, (_: {
52
+ slot: string;
53
+ }) => any>> & Partial<Record<string, (_: {
54
+ slot: string;
55
+ }) => any>> & Partial<Record<string, (_: {
56
+ slot: string;
57
+ }) => any>> & Partial<Record<string, (_: {
58
+ slot: string;
59
+ }) => any>> & Partial<Record<string, (_: {
60
+ slot: string;
61
+ }) => any>> & Partial<Record<string, (_: {
62
+ slot: string;
63
+ }) => any>> & Partial<Record<string, (_: {
64
+ slot: string;
65
+ }) => any>> & Partial<Record<string, (_: {
66
+ slot: string;
67
+ }) => any>> & Partial<Record<string, (_: {
68
+ slot: string;
69
+ }) => any>> & Partial<Record<string, (_: {
70
+ slot: string;
71
+ }) => any>> & Partial<Record<string, (_: {
72
+ slot: string;
73
+ }) => any>> & Partial<Record<string, (_: {
74
+ slot: string;
75
+ }) => any>> & Partial<Record<string, (_: {
76
+ slot: string;
77
+ }) => any>> & Partial<Record<string, (_: {
78
+ slot: string;
79
+ }) => any>> & Partial<Record<string, (_: {
80
+ slot: string;
81
+ }) => any>> & Partial<Record<string, (_: {
82
+ slot: string;
83
+ }) => any>> & Partial<Record<string, (_: {
84
+ slot: string;
85
+ }) => any>> & Partial<Record<string, (_: {
86
+ slot: string;
87
+ }) => any>> & Partial<Record<string, (_: {
88
+ slot: string;
89
+ }) => any>> & Partial<Record<string, (_: {}) => any>>>;
90
+ export default _default;
91
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
93
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
94
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
+ } : {
96
+ type: import('vue').PropType<T[K]>;
97
+ required: true;
98
+ };
99
+ };
100
+ declare type __VLS_WithDefaults<P, D> = {
101
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
102
+ default: D[K];
103
+ }> : P[K];
104
+ };
105
+ declare type __VLS_Prettify<T> = {
106
+ [K in keyof T]: T[K];
107
+ } & {};
108
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
109
+ new (): {
110
+ $scopedSlots: S;
111
+ };
112
+ };
@@ -5,7 +5,6 @@ const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
5
5
  const commonUtils = require("@94ai/common-utils");
6
6
  const ResizeObserver = require("resize-observer-polyfill");
7
7
  const vue = require("vue");
8
- const lodashEs = require("lodash-es");
9
8
  const commonConstants = require("@94ai/common-constants");
10
9
  const NfMessage = require("@94ai/nf-message");
11
10
  const __sfc_main$5 = vueDemi.defineComponent({
@@ -40,7 +39,7 @@ __sfc_main$5.setup = (__props, __ctx) => {
40
39
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
41
40
  const emit = __ctx.emit;
42
41
  const inputlistens = vueDemi.computed(() => {
43
- const list = Object.assign({}, (instance == null ? void 0 : instance.$listeners) || {}, {
42
+ const list = Object.assign({}, instance == null ? void 0 : instance.$listeners, {
44
43
  change: function() {
45
44
  emit("change", [minNumber.value, maxNumber.value]);
46
45
  }
@@ -244,7 +243,7 @@ __sfc_main$4.setup = (__props, __ctx) => {
244
243
  attrs == null ? true : delete attrs.type;
245
244
  const pickerOptions = (attrs == null ? void 0 : attrs["picker-options"]) || {};
246
245
  return {
247
- ...attrs || {},
246
+ ...attrs,
248
247
  "picker-options": {
249
248
  ...pickerOptions
250
249
  }
@@ -469,7 +468,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
469
468
  if (events == null ? void 0 : events.change) {
470
469
  delete events.change;
471
470
  }
472
- return events || {};
471
+ return events;
473
472
  });
474
473
  const tooltip = vueDemi.computed(() => {
475
474
  return props.itemOptions.tooltip;
@@ -6449,15 +6448,11 @@ __sfc_main$1.setup = (__props, __ctx) => {
6449
6448
  fixedColumn.value.splice(fixedIndex, 1);
6450
6449
  }
6451
6450
  };
6452
- const insertColumn = (column, append = false) => {
6451
+ const insertColumn = (column) => {
6453
6452
  const unFixedIndex = unFixedColumn.value.findIndex((item) => item.prop === column.prop);
6454
6453
  const fixedIndex = fixedColumn.value.findIndex((item) => item.prop === column.prop);
6455
6454
  if (unFixedIndex === -1 && fixedIndex === -1) {
6456
- if (append) {
6457
- (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).push(column);
6458
- } else {
6459
- (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).unshift(column);
6460
- }
6455
+ (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).push(column);
6461
6456
  }
6462
6457
  };
6463
6458
  const updateCheckStatus = () => {
@@ -6507,13 +6502,14 @@ __sfc_main$1.setup = (__props, __ctx) => {
6507
6502
  if (item) {
6508
6503
  item.initHidden = false;
6509
6504
  const cloneItem = commonUtils.deepClone(item);
6510
- if (!cloneItem.attr) {
6511
- cloneItem.attr = {};
6512
- }
6513
6505
  newColumns.push(cloneItem);
6514
6506
  }
6515
6507
  });
6516
6508
  currentTable.value = newColumns;
6509
+ if (columnName.value) {
6510
+ searchValue = currentTable.value.filter((item) => (item.addLabel || item.label).includes(columnName.value));
6511
+ setFields(searchValue);
6512
+ }
6517
6513
  currentTable.value.map((item) => {
6518
6514
  if (item.attr.fixed) {
6519
6515
  fixedColumn.value.push(item);
@@ -6530,7 +6526,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6530
6526
  searchValue.map((item) => {
6531
6527
  if (!unChangedColumn.value.includes(item.prop)) {
6532
6528
  if (v) {
6533
- insertColumn(item, true);
6529
+ insertColumn(item);
6534
6530
  } else {
6535
6531
  pullAwayColumn(item);
6536
6532
  }
@@ -6542,7 +6538,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6542
6538
  currentTable.value.map((item) => {
6543
6539
  if (!unChangedColumn.value.includes(item.prop)) {
6544
6540
  if (v) {
6545
- insertColumn(item, true);
6541
+ insertColumn(item);
6546
6542
  } else {
6547
6543
  pullAwayColumn(item);
6548
6544
  }
@@ -6559,7 +6555,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6559
6555
  if (item.prop === prop) {
6560
6556
  item.initHidden = !v;
6561
6557
  v ? "" : item.attr.fixed = false;
6562
- v ? insertColumn(item, true) : pullAwayColumn(item);
6558
+ v ? insertColumn(item) : pullAwayColumn(item);
6563
6559
  }
6564
6560
  });
6565
6561
  updateCheckStatus();
@@ -7546,9 +7542,6 @@ __sfc_main.setup = (__props, __ctx) => {
7546
7542
  }
7547
7543
  return key;
7548
7544
  });
7549
- vueDemi.computed(() => {
7550
- return "nf-search-form-view-identity";
7551
- });
7552
7545
  const processedColumns = vueDemi.computed(() => {
7553
7546
  var _a2;
7554
7547
  const viewField = window.viewField;
@@ -7612,9 +7605,9 @@ __sfc_main.setup = (__props, __ctx) => {
7612
7605
  return;
7613
7606
  let list = commonUtils.deepClone(props.btnItems);
7614
7607
  if (commonUtils.validate.isString(props.btnItems)) {
7615
- list = [...props.btnItems ? [{
7608
+ list = [{
7616
7609
  btnType: props.btnItems
7617
- }] : []];
7610
+ }];
7618
7611
  }
7619
7612
  list = list.map((item) => {
7620
7613
  if (commonUtils.validate.isString(item)) {
@@ -7866,15 +7859,15 @@ __sfc_main.setup = (__props, __ctx) => {
7866
7859
  btnItemsInit();
7867
7860
  formsInit();
7868
7861
  });
7869
- const refreshNfSearchFormModel = () => {
7862
+ function refreshNfSearchFormModel() {
7870
7863
  processedColumns.value.filter((item) => !commonUtils.resolveValue(item.destory, nfSearchFormModel.value)).forEach((v) => {
7871
7864
  if (!localShowItems.value.includes(v.prop)) {
7872
- commonUtils.mapDispose.setValue(nfSearchFormModel.value, v.key, void 0);
7865
+ commonUtils.mapDispose.setValue(nfSearchFormModel.value, v.prop, void 0);
7873
7866
  } else if (nfSearchFormModel.value[v.prop] === void 0) {
7874
7867
  setDefaultVal(v);
7875
7868
  }
7876
7869
  });
7877
- };
7870
+ }
7878
7871
  const formsInit = () => {
7879
7872
  getChangePropKeys();
7880
7873
  processedColumns.value.forEach((item) => {
@@ -7889,7 +7882,6 @@ __sfc_main.setup = (__props, __ctx) => {
7889
7882
  await vueDemi.nextTick();
7890
7883
  refreshLabel();
7891
7884
  };
7892
- const domWidth = vueDemi.ref();
7893
7885
  const topDom = vueDemi.ref();
7894
7886
  const refreshLabel = () => {
7895
7887
  if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
@@ -7921,24 +7913,14 @@ __sfc_main.setup = (__props, __ctx) => {
7921
7913
  }, 0);
7922
7914
  newColumns.value = count;
7923
7915
  };
7924
- lodashEs.throttle(calcColumns, 100);
7925
- const onResize = async (params = {}) => {
7926
- var _a2;
7927
- const {
7928
- width
7929
- } = ((_a2 = params == null ? void 0 : params[0]) == null ? void 0 : _a2.contentRect) || {};
7930
- if (width && domWidth.value && width === domWidth.value) {
7931
- return;
7932
- }
7933
- if (domWidth.value) {
7934
- await vueDemi.nextTick();
7935
- domWidth.value = topDom.value.offsetWidth;
7936
- }
7916
+ const onResize = async (_params) => {
7937
7917
  refreshLabel();
7938
7918
  };
7939
7919
  const observer = vueDemi.ref();
7940
7920
  vueDemi.onMounted(async () => {
7941
7921
  await vueDemi.nextTick();
7922
+ if (!topDom.value)
7923
+ return;
7942
7924
  observer.value = new ResizeObserver(onResize);
7943
7925
  observer.value.observe(topDom.value, {
7944
7926
  box: "border-box"
@@ -7983,7 +7965,7 @@ __sfc_main.setup = (__props, __ctx) => {
7983
7965
  }
7984
7966
  };
7985
7967
  const hiddenNfSearchFormItemOptionField = async (prop) => {
7986
- prop.formOptions._skip = true;
7968
+ props.formOptions._skip = true;
7987
7969
  processedColumns.value.every((item) => {
7988
7970
  if (item.prop === prop) {
7989
7971
  item.initHidden = true;
@@ -8001,22 +7983,10 @@ __sfc_main.setup = (__props, __ctx) => {
8001
7983
  await vueDemi.nextTick();
8002
7984
  refreshLabel();
8003
7985
  };
8004
- const columnCheckConfirmFeedback = (value) => {
8005
- if (!props.columnEdit) {
8006
- const itemsList = [];
8007
- for (const key in value) {
8008
- if (value[key]) {
8009
- itemsList.push(key);
8010
- }
8011
- }
8012
- setLocalShowItems(itemsList, true);
8013
- }
8014
- };
8015
7986
  const columnCheckConfirm = async (cb, error) => {
8016
7987
  var _a2;
8017
7988
  try {
8018
- const value = columnCheckDrawer.value.syncTableColumnsToCookies();
8019
- columnCheckConfirmFeedback(value);
7989
+ columnCheckDrawer.value.syncTableColumnsToCookies();
8020
7990
  await syncCookiesToLocalShowColumn(true);
8021
7991
  await syncCookiesToSearchFormItemOptions();
8022
7992
  await vueDemi.nextTick();
@@ -8034,8 +8004,7 @@ __sfc_main.setup = (__props, __ctx) => {
8034
8004
  async function clearColumnEditCached() {
8035
8005
  await commonUtils.CachedManager.asyncCachedSet(cStorageKey.value, null);
8036
8006
  }
8037
- const nfSearchFormItemOptionFieldsSave = async (value) => {
8038
- columnCheckConfirmFeedback(value);
8007
+ const nfSearchFormItemOptionFieldsSave = async () => {
8039
8008
  await syncCookiesToLocalShowColumn(true);
8040
8009
  await syncCookiesToSearchFormItemOptions();
8041
8010
  await vueDemi.nextTick();