@94ai/nf-search-form 100.1.32 → 100.1.34
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.
|
@@ -7166,6 +7166,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7166
7166
|
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7167
7167
|
});
|
|
7168
7168
|
const renderSearchFormItemOptions = vueDemi.ref([]);
|
|
7169
|
+
let initSearchForm = true;
|
|
7169
7170
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
7170
7171
|
props.formOptions._skip = true;
|
|
7171
7172
|
const columns = props.formOptions.map((item, index2) => {
|
|
@@ -7205,6 +7206,10 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7205
7206
|
}
|
|
7206
7207
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
7207
7208
|
vueDemi.nextTick(() => {
|
|
7209
|
+
if (initSearchForm) {
|
|
7210
|
+
initSearchForm = false;
|
|
7211
|
+
calcColumns();
|
|
7212
|
+
}
|
|
7208
7213
|
props.formOptions._skip = false;
|
|
7209
7214
|
});
|
|
7210
7215
|
};
|
|
@@ -7317,8 +7322,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7317
7322
|
};
|
|
7318
7323
|
const observer = vueDemi.ref();
|
|
7319
7324
|
vueDemi.onMounted(async () => {
|
|
7320
|
-
await vueDemi.nextTick();
|
|
7321
|
-
calcColumns();
|
|
7322
7325
|
await vueDemi.nextTick();
|
|
7323
7326
|
observer.value = new ResizeObserver(onResize);
|
|
7324
7327
|
observer.value.observe(topDom.value, {
|
|
@@ -7164,6 +7164,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7164
7164
|
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7165
7165
|
});
|
|
7166
7166
|
const renderSearchFormItemOptions = ref([]);
|
|
7167
|
+
let initSearchForm = true;
|
|
7167
7168
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
7168
7169
|
props.formOptions._skip = true;
|
|
7169
7170
|
const columns = props.formOptions.map((item, index2) => {
|
|
@@ -7203,6 +7204,10 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7203
7204
|
}
|
|
7204
7205
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
7205
7206
|
nextTick(() => {
|
|
7207
|
+
if (initSearchForm) {
|
|
7208
|
+
initSearchForm = false;
|
|
7209
|
+
calcColumns();
|
|
7210
|
+
}
|
|
7206
7211
|
props.formOptions._skip = false;
|
|
7207
7212
|
});
|
|
7208
7213
|
};
|
|
@@ -7315,8 +7320,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7315
7320
|
};
|
|
7316
7321
|
const observer = ref();
|
|
7317
7322
|
onMounted(async () => {
|
|
7318
|
-
await nextTick();
|
|
7319
|
-
calcColumns();
|
|
7320
7323
|
await nextTick();
|
|
7321
7324
|
observer.value = new ResizeObserver(onResize);
|
|
7322
7325
|
observer.value.observe(topDom.value, {
|
|
@@ -750,6 +750,7 @@ const isShowBtnBoxSlot = computed(() => {
|
|
|
750
750
|
* 转换成最终的表单项渲染数据
|
|
751
751
|
*/
|
|
752
752
|
const renderSearchFormItemOptions = ref<NfSearchFormItemOption[]>([])
|
|
753
|
+
let initSearchForm = true
|
|
753
754
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
754
755
|
props.formOptions._skip = true
|
|
755
756
|
const columns = props.formOptions!.map((item, index) => {
|
|
@@ -791,6 +792,10 @@ const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
|
791
792
|
}
|
|
792
793
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
793
794
|
nextTick(() => {
|
|
795
|
+
if (initSearchForm) {
|
|
796
|
+
initSearchForm = false
|
|
797
|
+
calcColumns()
|
|
798
|
+
}
|
|
794
799
|
props.formOptions._skip = false;
|
|
795
800
|
})
|
|
796
801
|
}
|
|
@@ -934,8 +939,6 @@ const calcColumns = () => {
|
|
|
934
939
|
|
|
935
940
|
const observer = ref()
|
|
936
941
|
onMounted(async () => {
|
|
937
|
-
await nextTick()
|
|
938
|
-
calcColumns()
|
|
939
942
|
await nextTick()
|
|
940
943
|
observer.value = new ResizeObserver(onResize)
|
|
941
944
|
observer.value.observe(topDom.value, { box: 'border-box' })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "100.1.
|
|
3
|
+
"version": "100.1.34",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^100.1.
|
|
18
|
-
"@94ai/nf-action": "^100.1.
|
|
19
|
-
"@94ai/nf-button": "^100.1.
|
|
20
|
-
"@94ai/nf-double-half-year": "^100.1.
|
|
21
|
-
"@94ai/nf-double-quarter": "^100.1.
|
|
22
|
-
"@94ai/nf-double-week": "^100.1.
|
|
23
|
-
"@94ai/nf-double-year": "^100.1.
|
|
24
|
-
"@94ai/nf-drawer": "^100.1.
|
|
25
|
-
"@94ai/nf-form": "^100.1.
|
|
26
|
-
"@94ai/nf-form-item": "^100.1.
|
|
27
|
-
"@94ai/nf-half-year-picker": "^100.1.
|
|
28
|
-
"@94ai/nf-message": "^100.1.
|
|
29
|
-
"@94ai/nf-quarter-picker": "^100.1.
|
|
30
|
-
"@94ai/nf-select-transfer": "^100.1.
|
|
31
|
-
"@94ai/nf-theme-chalk": "^100.1.
|
|
32
|
-
"@94ai/nf-virtual-select": "^100.1.
|
|
17
|
+
"@94ai/common-utils": "^100.1.34",
|
|
18
|
+
"@94ai/nf-action": "^100.1.34",
|
|
19
|
+
"@94ai/nf-button": "^100.1.34",
|
|
20
|
+
"@94ai/nf-double-half-year": "^100.1.34",
|
|
21
|
+
"@94ai/nf-double-quarter": "^100.1.34",
|
|
22
|
+
"@94ai/nf-double-week": "^100.1.34",
|
|
23
|
+
"@94ai/nf-double-year": "^100.1.34",
|
|
24
|
+
"@94ai/nf-drawer": "^100.1.34",
|
|
25
|
+
"@94ai/nf-form": "^100.1.34",
|
|
26
|
+
"@94ai/nf-form-item": "^100.1.34",
|
|
27
|
+
"@94ai/nf-half-year-picker": "^100.1.34",
|
|
28
|
+
"@94ai/nf-message": "^100.1.34",
|
|
29
|
+
"@94ai/nf-quarter-picker": "^100.1.34",
|
|
30
|
+
"@94ai/nf-select-transfer": "^100.1.34",
|
|
31
|
+
"@94ai/nf-theme-chalk": "^100.1.34",
|
|
32
|
+
"@94ai/nf-virtual-select": "^100.1.34",
|
|
33
33
|
"idb-keyval": "^6.2.1",
|
|
34
34
|
"resize-observer-polyfill": "^1.5.1",
|
|
35
35
|
"vue-demi": "^0.14.5",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"types": "lib/index.d.ts",
|
|
49
49
|
"main": "lib/nf-search-form.cjs.js",
|
|
50
50
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "86c12d70eca3eb267c335e118a89ac2830f7e03f"
|
|
52
52
|
}
|