@94ai/nf-search-form 100.1.20 → 100.1.22
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.
|
@@ -7048,14 +7048,14 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7048
7048
|
}
|
|
7049
7049
|
return props.formOptions.map((item) => item.prop);
|
|
7050
7050
|
};
|
|
7051
|
-
const localShowItems = vueDemi.ref(initLocalShow());
|
|
7051
|
+
const localShowItems = vueDemi.ref(initLocalShow(true));
|
|
7052
7052
|
vueDemi.watch(() => {
|
|
7053
7053
|
var _a2;
|
|
7054
7054
|
return (_a2 = localShowItems.value) == null ? void 0 : _a2.length;
|
|
7055
7055
|
}, async () => {
|
|
7056
7056
|
emit("update:showItems", localShowItems.value);
|
|
7057
7057
|
if (Object.keys(nfSearchFormModel.value).length) {
|
|
7058
|
-
|
|
7058
|
+
refreshNfSearchFormModel(false);
|
|
7059
7059
|
}
|
|
7060
7060
|
}, {
|
|
7061
7061
|
immediate: true
|
|
@@ -7176,7 +7176,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7176
7176
|
props.formOptions._skip = false;
|
|
7177
7177
|
});
|
|
7178
7178
|
};
|
|
7179
|
-
syncCookiesToSearchFormItemOptions(
|
|
7179
|
+
syncCookiesToSearchFormItemOptions();
|
|
7180
7180
|
const itemIsShow = (item) => {
|
|
7181
7181
|
return !item.initHidden && !item.destory;
|
|
7182
7182
|
};
|
|
@@ -7277,6 +7277,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7277
7277
|
}
|
|
7278
7278
|
if (!nfSearchFormRef.value)
|
|
7279
7279
|
return;
|
|
7280
|
+
if (!renderSearchFormItemOptions.value.length) {
|
|
7281
|
+
return;
|
|
7282
|
+
}
|
|
7280
7283
|
let count = 0;
|
|
7281
7284
|
const formWidth = nfSearchFormRef.value.$el.offsetWidth;
|
|
7282
7285
|
nfSearchFormRef.value.formItems.reduce((prev, cur) => {
|
|
@@ -7356,7 +7359,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7356
7359
|
};
|
|
7357
7360
|
const columnCheckConfirm = async (cb, error) => {
|
|
7358
7361
|
try {
|
|
7359
|
-
const value =
|
|
7362
|
+
const value = columnCheckDrawer.value.syncTableColumnsToCookies();
|
|
7360
7363
|
columnCheckConfirmFeedback(value);
|
|
7361
7364
|
await syncCookiesToLocalShowColumn();
|
|
7362
7365
|
await syncCookiesToSearchFormItemOptions();
|
|
@@ -7046,14 +7046,14 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7046
7046
|
}
|
|
7047
7047
|
return props.formOptions.map((item) => item.prop);
|
|
7048
7048
|
};
|
|
7049
|
-
const localShowItems = ref(initLocalShow());
|
|
7049
|
+
const localShowItems = ref(initLocalShow(true));
|
|
7050
7050
|
watch(() => {
|
|
7051
7051
|
var _a2;
|
|
7052
7052
|
return (_a2 = localShowItems.value) == null ? void 0 : _a2.length;
|
|
7053
7053
|
}, async () => {
|
|
7054
7054
|
emit("update:showItems", localShowItems.value);
|
|
7055
7055
|
if (Object.keys(nfSearchFormModel.value).length) {
|
|
7056
|
-
|
|
7056
|
+
refreshNfSearchFormModel(false);
|
|
7057
7057
|
}
|
|
7058
7058
|
}, {
|
|
7059
7059
|
immediate: true
|
|
@@ -7174,7 +7174,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7174
7174
|
props.formOptions._skip = false;
|
|
7175
7175
|
});
|
|
7176
7176
|
};
|
|
7177
|
-
syncCookiesToSearchFormItemOptions(
|
|
7177
|
+
syncCookiesToSearchFormItemOptions();
|
|
7178
7178
|
const itemIsShow = (item) => {
|
|
7179
7179
|
return !item.initHidden && !item.destory;
|
|
7180
7180
|
};
|
|
@@ -7275,6 +7275,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7275
7275
|
}
|
|
7276
7276
|
if (!nfSearchFormRef.value)
|
|
7277
7277
|
return;
|
|
7278
|
+
if (!renderSearchFormItemOptions.value.length) {
|
|
7279
|
+
return;
|
|
7280
|
+
}
|
|
7278
7281
|
let count = 0;
|
|
7279
7282
|
const formWidth = nfSearchFormRef.value.$el.offsetWidth;
|
|
7280
7283
|
nfSearchFormRef.value.formItems.reduce((prev, cur) => {
|
|
@@ -7354,7 +7357,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7354
7357
|
};
|
|
7355
7358
|
const columnCheckConfirm = async (cb, error) => {
|
|
7356
7359
|
try {
|
|
7357
|
-
const value =
|
|
7360
|
+
const value = columnCheckDrawer.value.syncTableColumnsToCookies();
|
|
7358
7361
|
columnCheckConfirmFeedback(value);
|
|
7359
7362
|
await syncCookiesToLocalShowColumn();
|
|
7360
7363
|
await syncCookiesToSearchFormItemOptions();
|
|
@@ -630,11 +630,11 @@ const initLocalShow = (init = false) => {
|
|
|
630
630
|
/**
|
|
631
631
|
* 表单显示的item集合
|
|
632
632
|
*/
|
|
633
|
-
const localShowItems = ref<string[]>(initLocalShow())
|
|
633
|
+
const localShowItems = ref<string[]>(initLocalShow(true))
|
|
634
634
|
watch(() => localShowItems.value?.length, async () => {
|
|
635
635
|
emit('update:showItems', localShowItems.value)
|
|
636
636
|
if (Object.keys(nfSearchFormModel.value).length) {
|
|
637
|
-
|
|
637
|
+
refreshNfSearchFormModel(false)
|
|
638
638
|
}
|
|
639
639
|
}, {
|
|
640
640
|
immediate: true
|
|
@@ -774,7 +774,7 @@ const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
|
774
774
|
props.formOptions._skip = false;
|
|
775
775
|
})
|
|
776
776
|
}
|
|
777
|
-
syncCookiesToSearchFormItemOptions(
|
|
777
|
+
syncCookiesToSearchFormItemOptions()
|
|
778
778
|
|
|
779
779
|
/**
|
|
780
780
|
* 判断SearchItem是否显示
|
|
@@ -905,6 +905,9 @@ const calcColumns = () => {
|
|
|
905
905
|
return
|
|
906
906
|
}
|
|
907
907
|
if (!nfSearchFormRef.value) return
|
|
908
|
+
if (!renderSearchFormItemOptions.value.length) {
|
|
909
|
+
return
|
|
910
|
+
}
|
|
908
911
|
let count = 0
|
|
909
912
|
const formWidth = nfSearchFormRef.value.$el.offsetWidth
|
|
910
913
|
nfSearchFormRef.value.formItems.reduce((prev, cur) => {
|
|
@@ -1005,7 +1008,7 @@ const columnCheckConfirmFeedback = (value: Record<string, any>) => {
|
|
|
1005
1008
|
// 抽屉确定
|
|
1006
1009
|
const columnCheckConfirm = async (cb, error) => {
|
|
1007
1010
|
try {
|
|
1008
|
-
const value =
|
|
1011
|
+
const value = columnCheckDrawer.value.syncTableColumnsToCookies()
|
|
1009
1012
|
columnCheckConfirmFeedback(value)
|
|
1010
1013
|
await syncCookiesToLocalShowColumn()
|
|
1011
1014
|
await syncCookiesToSearchFormItemOptions()
|
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.22",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,21 +14,21 @@
|
|
|
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-double-half-year": "^100.1.
|
|
20
|
-
"@94ai/nf-double-quarter": "^100.1.
|
|
21
|
-
"@94ai/nf-double-week": "^100.1.
|
|
22
|
-
"@94ai/nf-double-year": "^100.1.
|
|
23
|
-
"@94ai/nf-drawer": "^100.1.
|
|
24
|
-
"@94ai/nf-form": "^100.1.
|
|
25
|
-
"@94ai/nf-form-item": "^100.1.
|
|
26
|
-
"@94ai/nf-half-year-picker": "^100.1.
|
|
27
|
-
"@94ai/nf-message": "^100.1.
|
|
28
|
-
"@94ai/nf-quarter-picker": "^100.1.
|
|
29
|
-
"@94ai/nf-select-transfer": "^100.1.
|
|
30
|
-
"@94ai/nf-theme-chalk": "^100.1.
|
|
31
|
-
"@94ai/nf-virtual-select": "^100.1.
|
|
17
|
+
"@94ai/common-utils": "^100.1.22",
|
|
18
|
+
"@94ai/nf-action": "^100.1.22",
|
|
19
|
+
"@94ai/nf-double-half-year": "^100.1.22",
|
|
20
|
+
"@94ai/nf-double-quarter": "^100.1.22",
|
|
21
|
+
"@94ai/nf-double-week": "^100.1.22",
|
|
22
|
+
"@94ai/nf-double-year": "^100.1.22",
|
|
23
|
+
"@94ai/nf-drawer": "^100.1.22",
|
|
24
|
+
"@94ai/nf-form": "^100.1.22",
|
|
25
|
+
"@94ai/nf-form-item": "^100.1.22",
|
|
26
|
+
"@94ai/nf-half-year-picker": "^100.1.22",
|
|
27
|
+
"@94ai/nf-message": "^100.1.22",
|
|
28
|
+
"@94ai/nf-quarter-picker": "^100.1.22",
|
|
29
|
+
"@94ai/nf-select-transfer": "^100.1.22",
|
|
30
|
+
"@94ai/nf-theme-chalk": "^100.1.22",
|
|
31
|
+
"@94ai/nf-virtual-select": "^100.1.22",
|
|
32
32
|
"idb-keyval": "^6.2.1",
|
|
33
33
|
"resize-observer-polyfill": "^1.5.1",
|
|
34
34
|
"vue-demi": "^0.14.5",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"types": "lib/index.d.ts",
|
|
48
48
|
"main": "lib/nf-search-form.cjs.js",
|
|
49
49
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "afcd14101f617ec64d20d834d67d055c6e8dd548"
|
|
51
51
|
}
|