@94ai/nf-search-form 3.2.44 → 3.2.47
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/lib/index.d.ts +36 -36
- package/lib/nf-search-form.cjs.js +6365 -1663
- package/lib/nf-search-form.esm-bundler.js +6365 -1663
- package/lib/nf-search-form.vue.d.ts +12 -12
- package/package/nf-search-form.vue +10 -5
- package/package.json +16 -16
|
@@ -77,10 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
77
77
|
type: import("vue-demi").PropType<Record<string, any>>;
|
|
78
78
|
default: undefined;
|
|
79
79
|
};
|
|
80
|
-
inline: {
|
|
81
|
-
type: import("vue-demi").PropType<boolean>;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
80
|
upIcon: {
|
|
85
81
|
type: import("vue-demi").PropType<string>;
|
|
86
82
|
default: string;
|
|
@@ -159,12 +155,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
159
155
|
type: import("vue-demi").PropType<"right" | "left" | "top">;
|
|
160
156
|
default: string;
|
|
161
157
|
};
|
|
158
|
+
inline: {
|
|
159
|
+
type: import("vue-demi").PropType<boolean>;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
162
|
btnBoxLabel: {
|
|
163
163
|
type: import("vue-demi").PropType<string>;
|
|
164
164
|
default: string;
|
|
165
165
|
};
|
|
166
166
|
btnModel: {
|
|
167
|
-
type: import("vue-demi").PropType<"
|
|
167
|
+
type: import("vue-demi").PropType<"block" | "inline">;
|
|
168
168
|
default: string;
|
|
169
169
|
};
|
|
170
170
|
labelWidth: {
|
|
@@ -472,7 +472,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
472
472
|
columnCheckDrawer: import("vue-demi").Ref<any>;
|
|
473
473
|
configNfSearchItemVisibleDialog: import("vue-demi").Ref<boolean>;
|
|
474
474
|
syncCookiesToSearchFormItemOptions: (readCached?: boolean) => void;
|
|
475
|
-
onResize: (params?: Record<string, any>) => void
|
|
475
|
+
onResize: (params?: Record<string, any>) => Promise<void>;
|
|
476
476
|
visibleChange: () => void;
|
|
477
477
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
478
478
|
onChange: (event: Record<string, any>) => void;
|
|
@@ -559,10 +559,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
559
559
|
type: import("vue-demi").PropType<Record<string, any>>;
|
|
560
560
|
default: undefined;
|
|
561
561
|
};
|
|
562
|
-
inline: {
|
|
563
|
-
type: import("vue-demi").PropType<boolean>;
|
|
564
|
-
default: boolean;
|
|
565
|
-
};
|
|
566
562
|
upIcon: {
|
|
567
563
|
type: import("vue-demi").PropType<string>;
|
|
568
564
|
default: string;
|
|
@@ -641,12 +637,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
641
637
|
type: import("vue-demi").PropType<"right" | "left" | "top">;
|
|
642
638
|
default: string;
|
|
643
639
|
};
|
|
640
|
+
inline: {
|
|
641
|
+
type: import("vue-demi").PropType<boolean>;
|
|
642
|
+
default: boolean;
|
|
643
|
+
};
|
|
644
644
|
btnBoxLabel: {
|
|
645
645
|
type: import("vue-demi").PropType<string>;
|
|
646
646
|
default: string;
|
|
647
647
|
};
|
|
648
648
|
btnModel: {
|
|
649
|
-
type: import("vue-demi").PropType<"
|
|
649
|
+
type: import("vue-demi").PropType<"block" | "inline">;
|
|
650
650
|
default: string;
|
|
651
651
|
};
|
|
652
652
|
labelWidth: {
|
|
@@ -907,7 +907,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
907
907
|
disabled: boolean;
|
|
908
908
|
itemWidth: number;
|
|
909
909
|
rules: Record<string, any>;
|
|
910
|
-
inline: boolean;
|
|
911
910
|
upIcon: string;
|
|
912
911
|
downIcon: string;
|
|
913
912
|
columns: number;
|
|
@@ -926,6 +925,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
926
925
|
statusIcon: boolean;
|
|
927
926
|
validateOnRuleChange: boolean;
|
|
928
927
|
labelPosition: 'top' | 'right' | 'left';
|
|
928
|
+
inline: boolean;
|
|
929
929
|
btnBoxLabel: string;
|
|
930
930
|
btnModel: 'inline' | 'block';
|
|
931
931
|
labelWidth: number;
|
|
@@ -830,12 +830,18 @@ const refreshLabel = () => {
|
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
const onResize = (params: Record<string, any> = {}) => {
|
|
834
|
-
const {
|
|
833
|
+
const onResize = async (params: Record<string, any> = {}) => {
|
|
834
|
+
const {
|
|
835
|
+
width
|
|
836
|
+
} = (params?.[0]?.contentRect) || {};
|
|
835
837
|
if (width && domWidth.value && width === domWidth.value) {
|
|
836
|
-
return
|
|
838
|
+
return;
|
|
837
839
|
}
|
|
838
|
-
|
|
840
|
+
if (domWidth.value) {
|
|
841
|
+
await nextTick();
|
|
842
|
+
domWidth.value = topDom.value.offsetWidth;
|
|
843
|
+
}
|
|
844
|
+
refreshLabel();
|
|
839
845
|
}
|
|
840
846
|
|
|
841
847
|
const calcColumns = () => {
|
|
@@ -863,7 +869,6 @@ onMounted(async () => {
|
|
|
863
869
|
await nextTick()
|
|
864
870
|
observer.value = new ResizeObserver(onResize)
|
|
865
871
|
observer.value.observe(topDom.value, { box: "border-box" });
|
|
866
|
-
domWidth.value = topDom.value.offsetWidth;
|
|
867
872
|
})
|
|
868
873
|
|
|
869
874
|
onBeforeUnmount(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.47",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-action": "^3.2.
|
|
18
|
-
"@94ai/nf-double-half-year": "^3.2.
|
|
19
|
-
"@94ai/nf-double-quarter": "^3.2.
|
|
20
|
-
"@94ai/nf-double-week": "^3.2.
|
|
21
|
-
"@94ai/nf-double-year": "^3.2.
|
|
22
|
-
"@94ai/nf-drawer": "^3.2.
|
|
23
|
-
"@94ai/nf-form": "^3.2.
|
|
24
|
-
"@94ai/nf-form-item": "^3.2.
|
|
25
|
-
"@94ai/nf-half-year-picker": "^3.2.
|
|
26
|
-
"@94ai/nf-message": "^3.2.
|
|
27
|
-
"@94ai/nf-quarter-picker": "^3.2.
|
|
28
|
-
"@94ai/nf-select-transfer": "^3.2.
|
|
29
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
30
|
-
"@94ai/nf-virtual-select": "^3.2.
|
|
17
|
+
"@94ai/nf-action": "^3.2.47",
|
|
18
|
+
"@94ai/nf-double-half-year": "^3.2.47",
|
|
19
|
+
"@94ai/nf-double-quarter": "^3.2.47",
|
|
20
|
+
"@94ai/nf-double-week": "^3.2.47",
|
|
21
|
+
"@94ai/nf-double-year": "^3.2.47",
|
|
22
|
+
"@94ai/nf-drawer": "^3.2.47",
|
|
23
|
+
"@94ai/nf-form": "^3.2.47",
|
|
24
|
+
"@94ai/nf-form-item": "^3.2.47",
|
|
25
|
+
"@94ai/nf-half-year-picker": "^3.2.47",
|
|
26
|
+
"@94ai/nf-message": "^3.2.47",
|
|
27
|
+
"@94ai/nf-quarter-picker": "^3.2.47",
|
|
28
|
+
"@94ai/nf-select-transfer": "^3.2.47",
|
|
29
|
+
"@94ai/nf-theme-chalk": "^3.2.47",
|
|
30
|
+
"@94ai/nf-virtual-select": "^3.2.47",
|
|
31
31
|
"resize-observer-polyfill": "^1.5.1",
|
|
32
32
|
"vue-cookies": "^1.8.3",
|
|
33
33
|
"vue-demi": "^0.14.5",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"types": "lib/index.d.ts",
|
|
47
47
|
"main": "lib/nf-search-form.cjs.js",
|
|
48
48
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "91145bb7df8dad2c0cb3eefb101c6158ec854269"
|
|
50
50
|
}
|