@94ai/nf-search-form 3.2.29 → 3.2.32
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 +2 -0
- package/lib/nf-search-form.cjs.js +9 -8
- package/lib/nf-search-form.esm-bundler.js +9 -8
- package/lib/nf-search-form.vue.d.ts +1 -0
- package/lib/types.d.ts +1 -0
- package/package/nf-column-check-drawer.vue +4 -4
- package/package/nf-search-form.vue +5 -5
- package/package/types.ts +1 -0
- package/package.json +16 -16
package/lib/index.d.ts
CHANGED
|
@@ -1317,6 +1317,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1317
1317
|
_index?: number | undefined;
|
|
1318
1318
|
__index?: number | undefined;
|
|
1319
1319
|
initHidden?: boolean | undefined;
|
|
1320
|
+
destory?: boolean | undefined;
|
|
1320
1321
|
label?: string | undefined;
|
|
1321
1322
|
addLabel?: string | undefined;
|
|
1322
1323
|
prop?: string | undefined;
|
|
@@ -2187,6 +2188,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2187
2188
|
_index?: number | undefined;
|
|
2188
2189
|
__index?: number | undefined;
|
|
2189
2190
|
initHidden?: boolean | undefined;
|
|
2191
|
+
destory?: boolean | undefined;
|
|
2190
2192
|
label?: string | undefined;
|
|
2191
2193
|
addLabel?: string | undefined;
|
|
2192
2194
|
prop?: string | undefined;
|
|
@@ -6063,17 +6063,18 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6063
6063
|
const fixedColumn = vueDemi.ref([]);
|
|
6064
6064
|
const unFixedColumn = vueDemi.ref([]);
|
|
6065
6065
|
vueDemi.onBeforeMount(() => {
|
|
6066
|
-
currentTable.value = deepClone(props.tableColumns).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
6066
|
+
currentTable.value = deepClone(props.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
6067
6067
|
currentTable.value.map((i) => {
|
|
6068
6068
|
if (!i.attr) {
|
|
6069
6069
|
i.attr = {};
|
|
6070
6070
|
}
|
|
6071
6071
|
});
|
|
6072
|
-
|
|
6072
|
+
const list = props.tableColumns.filter((item) => !item.destory);
|
|
6073
|
+
setFields(list);
|
|
6073
6074
|
updateColumn();
|
|
6074
6075
|
if (currentTable.value.every((i) => !i.initHidden)) {
|
|
6075
6076
|
showColumn.value = currentTable.value.map((i) => i.prop);
|
|
6076
|
-
checkedCount.value =
|
|
6077
|
+
checkedCount.value = list.length;
|
|
6077
6078
|
checkAll.value = true;
|
|
6078
6079
|
isIndeterminate.value = false;
|
|
6079
6080
|
}
|
|
@@ -6459,7 +6460,7 @@ __sfc_main.props = {
|
|
|
6459
6460
|
key: "expandBtnType",
|
|
6460
6461
|
required: false,
|
|
6461
6462
|
type: String,
|
|
6462
|
-
default: "
|
|
6463
|
+
default: ""
|
|
6463
6464
|
},
|
|
6464
6465
|
expandBtnIcon: {
|
|
6465
6466
|
key: "expandBtnIcon",
|
|
@@ -6470,7 +6471,7 @@ __sfc_main.props = {
|
|
|
6470
6471
|
key: "expandBtnPlain",
|
|
6471
6472
|
required: false,
|
|
6472
6473
|
type: Boolean,
|
|
6473
|
-
default:
|
|
6474
|
+
default: true
|
|
6474
6475
|
},
|
|
6475
6476
|
expandBtnSize: {
|
|
6476
6477
|
key: "expandBtnSize",
|
|
@@ -7161,9 +7162,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7161
7162
|
const itemIsShow = (item) => {
|
|
7162
7163
|
var _a2;
|
|
7163
7164
|
if (!((_a2 = localShowItems.value) == null ? void 0 : _a2.length)) {
|
|
7164
|
-
return
|
|
7165
|
+
return !item.initHidden && !item.destory;
|
|
7165
7166
|
}
|
|
7166
|
-
return localShowItems.value.includes(item.prop) && !item.initHidden;
|
|
7167
|
+
return localShowItems.value.includes(item.prop) && !item.initHidden && !item.destory;
|
|
7167
7168
|
};
|
|
7168
7169
|
vueDemi.watch(() => nfSearchFormModel.value, () => {
|
|
7169
7170
|
emit("onChange", nfSearchFormModel.value);
|
|
@@ -7185,7 +7186,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7185
7186
|
if (props.formOptions._skip) {
|
|
7186
7187
|
return;
|
|
7187
7188
|
}
|
|
7188
|
-
syncCookiesToSearchFormItemOptions();
|
|
7189
|
+
syncCookiesToSearchFormItemOptions(false);
|
|
7189
7190
|
}, {
|
|
7190
7191
|
deep: true
|
|
7191
7192
|
});
|
|
@@ -6061,17 +6061,18 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6061
6061
|
const fixedColumn = ref([]);
|
|
6062
6062
|
const unFixedColumn = ref([]);
|
|
6063
6063
|
onBeforeMount(() => {
|
|
6064
|
-
currentTable.value = deepClone(props.tableColumns).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
6064
|
+
currentTable.value = deepClone(props.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
6065
6065
|
currentTable.value.map((i) => {
|
|
6066
6066
|
if (!i.attr) {
|
|
6067
6067
|
i.attr = {};
|
|
6068
6068
|
}
|
|
6069
6069
|
});
|
|
6070
|
-
|
|
6070
|
+
const list = props.tableColumns.filter((item) => !item.destory);
|
|
6071
|
+
setFields(list);
|
|
6071
6072
|
updateColumn();
|
|
6072
6073
|
if (currentTable.value.every((i) => !i.initHidden)) {
|
|
6073
6074
|
showColumn.value = currentTable.value.map((i) => i.prop);
|
|
6074
|
-
checkedCount.value =
|
|
6075
|
+
checkedCount.value = list.length;
|
|
6075
6076
|
checkAll.value = true;
|
|
6076
6077
|
isIndeterminate.value = false;
|
|
6077
6078
|
}
|
|
@@ -6457,7 +6458,7 @@ __sfc_main.props = {
|
|
|
6457
6458
|
key: "expandBtnType",
|
|
6458
6459
|
required: false,
|
|
6459
6460
|
type: String,
|
|
6460
|
-
default: "
|
|
6461
|
+
default: ""
|
|
6461
6462
|
},
|
|
6462
6463
|
expandBtnIcon: {
|
|
6463
6464
|
key: "expandBtnIcon",
|
|
@@ -6468,7 +6469,7 @@ __sfc_main.props = {
|
|
|
6468
6469
|
key: "expandBtnPlain",
|
|
6469
6470
|
required: false,
|
|
6470
6471
|
type: Boolean,
|
|
6471
|
-
default:
|
|
6472
|
+
default: true
|
|
6472
6473
|
},
|
|
6473
6474
|
expandBtnSize: {
|
|
6474
6475
|
key: "expandBtnSize",
|
|
@@ -7159,9 +7160,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7159
7160
|
const itemIsShow = (item) => {
|
|
7160
7161
|
var _a2;
|
|
7161
7162
|
if (!((_a2 = localShowItems.value) == null ? void 0 : _a2.length)) {
|
|
7162
|
-
return
|
|
7163
|
+
return !item.initHidden && !item.destory;
|
|
7163
7164
|
}
|
|
7164
|
-
return localShowItems.value.includes(item.prop) && !item.initHidden;
|
|
7165
|
+
return localShowItems.value.includes(item.prop) && !item.initHidden && !item.destory;
|
|
7165
7166
|
};
|
|
7166
7167
|
watch(() => nfSearchFormModel.value, () => {
|
|
7167
7168
|
emit("onChange", nfSearchFormModel.value);
|
|
@@ -7183,7 +7184,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7183
7184
|
if (props.formOptions._skip) {
|
|
7184
7185
|
return;
|
|
7185
7186
|
}
|
|
7186
|
-
syncCookiesToSearchFormItemOptions();
|
|
7187
|
+
syncCookiesToSearchFormItemOptions(false);
|
|
7187
7188
|
}, {
|
|
7188
7189
|
deep: true
|
|
7189
7190
|
});
|
|
@@ -413,6 +413,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
413
413
|
_index?: number | undefined;
|
|
414
414
|
__index?: number | undefined;
|
|
415
415
|
initHidden?: boolean | undefined;
|
|
416
|
+
destory?: boolean | undefined;
|
|
416
417
|
label?: string | undefined;
|
|
417
418
|
addLabel?: string | undefined;
|
|
418
419
|
prop?: string | undefined;
|
package/lib/types.d.ts
CHANGED
|
@@ -182,21 +182,21 @@ const unFixedColumn = ref<Record<string, any>[]>([])
|
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
onBeforeMount(() => {
|
|
185
|
-
currentTable.value = deepClone(props.tableColumns).sort((a,b) => a._index! - b._index! < 0 ? -1 : a._index! - b._index! > 0 ? 1 : 0) as Record<string, any>[]
|
|
185
|
+
currentTable.value = deepClone(props.tableColumns.filter(item => !item.destory)).sort((a,b) => a._index! - b._index! < 0 ? -1 : a._index! - b._index! > 0 ? 1 : 0) as Record<string, any>[]
|
|
186
186
|
// 兼容处理
|
|
187
187
|
currentTable.value.map(i => {
|
|
188
188
|
if (!i.attr) {
|
|
189
189
|
i.attr = {}
|
|
190
190
|
}
|
|
191
191
|
})
|
|
192
|
-
|
|
192
|
+
const list = props.tableColumns.filter(item => !item.destory)
|
|
193
193
|
// 可选列表 → 字段区分
|
|
194
|
-
setFields(
|
|
194
|
+
setFields(list)
|
|
195
195
|
// 已选列表
|
|
196
196
|
updateColumn()
|
|
197
197
|
if (currentTable.value.every(i => !i.initHidden)) {
|
|
198
198
|
showColumn.value = currentTable.value.map(i => i.prop)
|
|
199
|
-
checkedCount.value =
|
|
199
|
+
checkedCount.value = list.length
|
|
200
200
|
checkAll.value = true
|
|
201
201
|
isIndeterminate.value = false
|
|
202
202
|
}
|
|
@@ -456,8 +456,8 @@ const props = withDefaults(defineProps<{
|
|
|
456
456
|
downIcon: 'icon-xiangxia2',
|
|
457
457
|
showBtn: true,
|
|
458
458
|
isCollapse: false,
|
|
459
|
-
expandBtnType: '
|
|
460
|
-
expandBtnPlain:
|
|
459
|
+
expandBtnType: '',
|
|
460
|
+
expandBtnPlain: true,
|
|
461
461
|
expandBtnRound: false,
|
|
462
462
|
expandBtnCircle: false,
|
|
463
463
|
expandBtnLoading: false,
|
|
@@ -739,9 +739,9 @@ syncCookiesToSearchFormItemOptions()
|
|
|
739
739
|
*/
|
|
740
740
|
const itemIsShow = (item: NfSearchFormItemOption) => {
|
|
741
741
|
if (!localShowItems.value?.length) {
|
|
742
|
-
return
|
|
742
|
+
return !item.initHidden && !item.destory
|
|
743
743
|
}
|
|
744
|
-
return localShowItems.value.includes(item.prop!) && !item.initHidden
|
|
744
|
+
return localShowItems.value.includes(item.prop!) && !item.initHidden && !item.destory
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
|
|
@@ -785,7 +785,7 @@ onBeforeMount(() => {
|
|
|
785
785
|
if (props.formOptions._skip) {
|
|
786
786
|
return
|
|
787
787
|
}
|
|
788
|
-
syncCookiesToSearchFormItemOptions()
|
|
788
|
+
syncCookiesToSearchFormItemOptions(false)
|
|
789
789
|
}, {
|
|
790
790
|
deep: true
|
|
791
791
|
})
|
package/package/types.ts
CHANGED
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.32",
|
|
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.32",
|
|
18
|
+
"@94ai/nf-double-half-year": "^3.2.32",
|
|
19
|
+
"@94ai/nf-double-quarter": "^3.2.32",
|
|
20
|
+
"@94ai/nf-double-week": "^3.2.32",
|
|
21
|
+
"@94ai/nf-double-year": "^3.2.32",
|
|
22
|
+
"@94ai/nf-drawer": "^3.2.32",
|
|
23
|
+
"@94ai/nf-form": "^3.2.32",
|
|
24
|
+
"@94ai/nf-form-item": "^3.2.32",
|
|
25
|
+
"@94ai/nf-half-year-picker": "^3.2.32",
|
|
26
|
+
"@94ai/nf-message": "^3.2.32",
|
|
27
|
+
"@94ai/nf-quarter-picker": "^3.2.32",
|
|
28
|
+
"@94ai/nf-select-transfer": "^3.2.32",
|
|
29
|
+
"@94ai/nf-theme-chalk": "^3.2.32",
|
|
30
|
+
"@94ai/nf-virtual-select": "^3.2.32",
|
|
31
31
|
"vue-cookies": "^1.8.3",
|
|
32
32
|
"vue-demi": "^0.14.5",
|
|
33
33
|
"vuedraggable": "^2.24.3"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"types": "lib/index.d.ts",
|
|
46
46
|
"main": "lib/nf-search-form.cjs.js",
|
|
47
47
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "10cdc1cc67171a0545ae2b2afd2794caff180e53"
|
|
49
49
|
}
|