@94ai/nf-table 8.0.23 → 8.0.26
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 +1 -0
- package/lib/nf-table.cjs.js +14 -3
- package/lib/nf-table.esm-bundler.js +14 -3
- package/lib/nf-table.vue.d.ts +1 -0
- package/package/nf-table.vue +7 -2
- package/package.json +9 -9
package/lib/index.d.ts
CHANGED
|
@@ -2134,6 +2134,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2134
2134
|
slot: any;
|
|
2135
2135
|
}) => any>> & Partial<Record<any, (_: {
|
|
2136
2136
|
slot: any;
|
|
2137
|
+
formData: any;
|
|
2137
2138
|
}) => any>> & Partial<Record<any, (_: {
|
|
2138
2139
|
slot: any;
|
|
2139
2140
|
}) => any>> & Partial<Record<any, (_: {
|
package/lib/nf-table.cjs.js
CHANGED
|
@@ -6705,7 +6705,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6705
6705
|
const obj = {
|
|
6706
6706
|
...props.setEasyConf ? {
|
|
6707
6707
|
labelWidth: 80,
|
|
6708
|
-
columns: 4,
|
|
6709
6708
|
btnModel: "inline",
|
|
6710
6709
|
columnEdit: true
|
|
6711
6710
|
} : {},
|
|
@@ -6970,6 +6969,16 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6970
6969
|
onNfSearchFormSearch();
|
|
6971
6970
|
});
|
|
6972
6971
|
const nfTableBorder = window.nfTableBorder;
|
|
6972
|
+
const nfSearchFormModel = vueDemi.computed({
|
|
6973
|
+
get: () => {
|
|
6974
|
+
var _a2;
|
|
6975
|
+
return ((_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.nfSearchFormModel) || {};
|
|
6976
|
+
},
|
|
6977
|
+
set: (formData) => {
|
|
6978
|
+
var _a2, _b;
|
|
6979
|
+
return (_b = (_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.setNfSearchFormModel) == null ? void 0 : _b.call(_a2, formData);
|
|
6980
|
+
}
|
|
6981
|
+
});
|
|
6973
6982
|
return Object.assign({
|
|
6974
6983
|
resolveValue: commonUtils.resolveValue,
|
|
6975
6984
|
getOperationListLocal,
|
|
@@ -7005,7 +7014,8 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7005
7014
|
fieldsConfirm,
|
|
7006
7015
|
columnCheckConfirm,
|
|
7007
7016
|
searchApi,
|
|
7008
|
-
nfTableBorder
|
|
7017
|
+
nfTableBorder,
|
|
7018
|
+
nfSearchFormModel
|
|
7009
7019
|
}, {
|
|
7010
7020
|
/**
|
|
7011
7021
|
* 表格clearFilter
|
|
@@ -7173,7 +7183,8 @@ var _sfc_render = function render3() {
|
|
|
7173
7183
|
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ? _vm._t(item.tooltip.slot, null, {
|
|
7174
7184
|
"slot": item.tooltip.slot
|
|
7175
7185
|
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7176
|
-
"slot": item.slot
|
|
7186
|
+
"slot": item.slot,
|
|
7187
|
+
"formData": _vm.nfSearchFormModel
|
|
7177
7188
|
}) : _vm._e(), ((_b2 = item.inputSlot) == null ? void 0 : _b2.prepend) ? _vm._t((_c2 = item.inputSlot) == null ? void 0 : _c2.prepend, null, {
|
|
7178
7189
|
"slot": (_d = item.inputSlot) == null ? void 0 : _d.prepend
|
|
7179
7190
|
}) : _vm._e(), ((_e = item.inputSlot) == null ? void 0 : _e.append) ? _vm._t((_f = item.inputSlot) == null ? void 0 : _f.append, null, {
|
|
@@ -6703,7 +6703,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6703
6703
|
const obj = {
|
|
6704
6704
|
...props.setEasyConf ? {
|
|
6705
6705
|
labelWidth: 80,
|
|
6706
|
-
columns: 4,
|
|
6707
6706
|
btnModel: "inline",
|
|
6708
6707
|
columnEdit: true
|
|
6709
6708
|
} : {},
|
|
@@ -6968,6 +6967,16 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6968
6967
|
onNfSearchFormSearch();
|
|
6969
6968
|
});
|
|
6970
6969
|
const nfTableBorder = window.nfTableBorder;
|
|
6970
|
+
const nfSearchFormModel = computed({
|
|
6971
|
+
get: () => {
|
|
6972
|
+
var _a2;
|
|
6973
|
+
return ((_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.nfSearchFormModel) || {};
|
|
6974
|
+
},
|
|
6975
|
+
set: (formData) => {
|
|
6976
|
+
var _a2, _b;
|
|
6977
|
+
return (_b = (_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.setNfSearchFormModel) == null ? void 0 : _b.call(_a2, formData);
|
|
6978
|
+
}
|
|
6979
|
+
});
|
|
6971
6980
|
return Object.assign({
|
|
6972
6981
|
resolveValue,
|
|
6973
6982
|
getOperationListLocal,
|
|
@@ -7003,7 +7012,8 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7003
7012
|
fieldsConfirm,
|
|
7004
7013
|
columnCheckConfirm,
|
|
7005
7014
|
searchApi,
|
|
7006
|
-
nfTableBorder
|
|
7015
|
+
nfTableBorder,
|
|
7016
|
+
nfSearchFormModel
|
|
7007
7017
|
}, {
|
|
7008
7018
|
/**
|
|
7009
7019
|
* 表格clearFilter
|
|
@@ -7171,7 +7181,8 @@ var _sfc_render = function render3() {
|
|
|
7171
7181
|
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ? _vm._t(item.tooltip.slot, null, {
|
|
7172
7182
|
"slot": item.tooltip.slot
|
|
7173
7183
|
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7174
|
-
"slot": item.slot
|
|
7184
|
+
"slot": item.slot,
|
|
7185
|
+
"formData": _vm.nfSearchFormModel
|
|
7175
7186
|
}) : _vm._e(), ((_b2 = item.inputSlot) == null ? void 0 : _b2.prepend) ? _vm._t((_c2 = item.inputSlot) == null ? void 0 : _c2.prepend, null, {
|
|
7176
7187
|
"slot": (_d = item.inputSlot) == null ? void 0 : _d.prepend
|
|
7177
7188
|
}) : _vm._e(), ((_e = item.inputSlot) == null ? void 0 : _e.append) ? _vm._t((_f = item.inputSlot) == null ? void 0 : _f.append, null, {
|
package/lib/nf-table.vue.d.ts
CHANGED
|
@@ -479,6 +479,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
479
479
|
slot: any;
|
|
480
480
|
}) => any>> & Partial<Record<any, (_: {
|
|
481
481
|
slot: any;
|
|
482
|
+
formData: any;
|
|
482
483
|
}) => any>> & Partial<Record<any, (_: {
|
|
483
484
|
slot: any;
|
|
484
485
|
}) => any>> & Partial<Record<any, (_: {
|
package/package/nf-table.vue
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<!-- 定制化SearchItem?提示-->
|
|
12
12
|
<slot :name="item.tooltip.slot" :slot="item.tooltip.slot" v-if="item.tooltip?.slot" />
|
|
13
13
|
<!-- 定制化SearchItem插槽-->
|
|
14
|
-
<slot :name="item.slot" :slot="item.slot" v-if="item.slot" />
|
|
14
|
+
<slot :name="item.slot" :slot="item.slot" v-if="item.slot" :formData="nfSearchFormModel" />
|
|
15
15
|
<slot :name="item.inputSlot?.prepend" v-if="item.inputSlot?.prepend" :slot="item.inputSlot?.prepend" />
|
|
16
16
|
<slot :name="item.inputSlot?.append" v-if="item.inputSlot?.append" :slot="item.inputSlot?.append" />
|
|
17
17
|
<slot :name="item.inputSlot?.suffix" v-if="item.inputSlot?.suffix" :slot="item.inputSlot?.suffix" />
|
|
@@ -1185,7 +1185,6 @@ const searchFormAttrer = computed(() => {
|
|
|
1185
1185
|
const obj: Record<string, any> = {
|
|
1186
1186
|
...(props.setEasyConf ? {
|
|
1187
1187
|
labelWidth: 80,
|
|
1188
|
-
columns: 4,
|
|
1189
1188
|
btnModel: 'inline',
|
|
1190
1189
|
columnEdit: true
|
|
1191
1190
|
} : {}),
|
|
@@ -1476,6 +1475,12 @@ onMounted(() => {
|
|
|
1476
1475
|
|
|
1477
1476
|
const nfTableBorder = (window as any).nfTableBorder
|
|
1478
1477
|
|
|
1478
|
+
/** nfSearchForm表单数据(如果存在<nf-search-form>) */
|
|
1479
|
+
const nfSearchFormModel = computed({
|
|
1480
|
+
get: () => nfSearchFormRef.value?.nfSearchFormModel || {},
|
|
1481
|
+
set: formData => nfSearchFormRef.value?.setNfSearchFormModel?.(formData)
|
|
1482
|
+
})
|
|
1483
|
+
|
|
1479
1484
|
defineExpose({
|
|
1480
1485
|
/**
|
|
1481
1486
|
* 表格clearFilter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.26",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^8.0.
|
|
18
|
-
"@94ai/nf-button": "^8.0.
|
|
19
|
-
"@94ai/nf-drawer": "^8.0.
|
|
20
|
-
"@94ai/nf-message": "^8.0.
|
|
21
|
-
"@94ai/nf-search-form": "^8.0.
|
|
22
|
-
"@94ai/nf-tag": "^8.0.
|
|
23
|
-
"@94ai/nf-theme-chalk": "^8.0.
|
|
17
|
+
"@94ai/common-utils": "^8.0.26",
|
|
18
|
+
"@94ai/nf-button": "^8.0.26",
|
|
19
|
+
"@94ai/nf-drawer": "^8.0.26",
|
|
20
|
+
"@94ai/nf-message": "^8.0.26",
|
|
21
|
+
"@94ai/nf-search-form": "^8.0.26",
|
|
22
|
+
"@94ai/nf-tag": "^8.0.26",
|
|
23
|
+
"@94ai/nf-theme-chalk": "^8.0.26",
|
|
24
24
|
"idb-keyval": "^6.2.1",
|
|
25
25
|
"vue-demi": "^0.14.5",
|
|
26
26
|
"vue-router": "3.6.4",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"types": "lib/index.d.ts",
|
|
40
40
|
"main": "lib/nf-table.cjs.js",
|
|
41
41
|
"module": "lib/nf-table.esm-bundler.js",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "dda2dd703950f91e3422378c9882e58266c30a9a"
|
|
43
43
|
}
|