@94ai/nf-table 4.0.5 → 4.0.12
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 +46 -0
- package/lib/nf-table.cjs.js +32 -5
- package/lib/nf-table.esm-bundler.js +32 -5
- package/lib/nf-table.vue.d.ts +25 -0
- package/package/nf-table.vue +18 -7
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
84
84
|
type: import("vue-demi").PropType<number>;
|
|
85
85
|
default: number;
|
|
86
86
|
};
|
|
87
|
+
emptyText: {
|
|
88
|
+
type: import("vue-demi").PropType<string>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
87
91
|
calHeight: {
|
|
88
92
|
type: import("vue-demi").PropType<boolean>;
|
|
89
93
|
default: boolean;
|
|
@@ -351,6 +355,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
351
355
|
type: import("vue-demi").PropType<number>;
|
|
352
356
|
default: number;
|
|
353
357
|
};
|
|
358
|
+
emptyText: {
|
|
359
|
+
type: import("vue-demi").PropType<string>;
|
|
360
|
+
default: string;
|
|
361
|
+
};
|
|
354
362
|
calHeight: {
|
|
355
363
|
type: import("vue-demi").PropType<boolean>;
|
|
356
364
|
default: boolean;
|
|
@@ -558,6 +566,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
558
566
|
actionBarOptList: import("./types").NfTableActionBtnAttributes[];
|
|
559
567
|
dragCached: boolean;
|
|
560
568
|
emptyImageSize: number;
|
|
569
|
+
emptyText: string;
|
|
561
570
|
calHeight: boolean;
|
|
562
571
|
columnPosition: "embed" | "free";
|
|
563
572
|
checkMode: "dialog" | "drawer";
|
|
@@ -687,6 +696,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
687
696
|
type: import("vue-demi").PropType<number>;
|
|
688
697
|
default: number;
|
|
689
698
|
};
|
|
699
|
+
emptyText: {
|
|
700
|
+
type: import("vue-demi").PropType<string>;
|
|
701
|
+
default: string;
|
|
702
|
+
};
|
|
690
703
|
calHeight: {
|
|
691
704
|
type: import("vue-demi").PropType<boolean>;
|
|
692
705
|
default: boolean;
|
|
@@ -1034,6 +1047,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1034
1047
|
type: import("vue-demi").PropType<number>;
|
|
1035
1048
|
default: number;
|
|
1036
1049
|
};
|
|
1050
|
+
emptyText: {
|
|
1051
|
+
type: import("vue-demi").PropType<string>;
|
|
1052
|
+
default: string;
|
|
1053
|
+
};
|
|
1037
1054
|
calHeight: {
|
|
1038
1055
|
type: import("vue-demi").PropType<boolean>;
|
|
1039
1056
|
default: boolean;
|
|
@@ -1301,6 +1318,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1301
1318
|
type: import("vue-demi").PropType<number>;
|
|
1302
1319
|
default: number;
|
|
1303
1320
|
};
|
|
1321
|
+
emptyText: {
|
|
1322
|
+
type: import("vue-demi").PropType<string>;
|
|
1323
|
+
default: string;
|
|
1324
|
+
};
|
|
1304
1325
|
calHeight: {
|
|
1305
1326
|
type: import("vue-demi").PropType<boolean>;
|
|
1306
1327
|
default: boolean;
|
|
@@ -1588,6 +1609,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1588
1609
|
actionBarOptList: import("./types").NfTableActionBtnAttributes[];
|
|
1589
1610
|
dragCached: boolean;
|
|
1590
1611
|
emptyImageSize: number;
|
|
1612
|
+
emptyText: string;
|
|
1591
1613
|
calHeight: boolean;
|
|
1592
1614
|
columnPosition: "embed" | "free";
|
|
1593
1615
|
checkMode: "dialog" | "drawer";
|
|
@@ -1718,6 +1740,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1718
1740
|
type: import("vue-demi").PropType<number>;
|
|
1719
1741
|
default: number;
|
|
1720
1742
|
};
|
|
1743
|
+
emptyText: {
|
|
1744
|
+
type: import("vue-demi").PropType<string>;
|
|
1745
|
+
default: string;
|
|
1746
|
+
};
|
|
1721
1747
|
calHeight: {
|
|
1722
1748
|
type: import("vue-demi").PropType<boolean>;
|
|
1723
1749
|
default: boolean;
|
|
@@ -1906,6 +1932,26 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1906
1932
|
slot: any;
|
|
1907
1933
|
}) => any>> & Partial<Record<any, (_: {
|
|
1908
1934
|
slot: any;
|
|
1935
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1936
|
+
slot: any;
|
|
1937
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1938
|
+
slot: any;
|
|
1939
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1940
|
+
slot: any;
|
|
1941
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1942
|
+
slot: any;
|
|
1943
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1944
|
+
slot: any;
|
|
1945
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1946
|
+
slot: any;
|
|
1947
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1948
|
+
slot: any;
|
|
1949
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1950
|
+
slot: any;
|
|
1951
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1952
|
+
slot: any;
|
|
1953
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
1954
|
+
slot: any;
|
|
1909
1955
|
}) => any>> & Partial<Record<any, (_: {
|
|
1910
1956
|
row: any;
|
|
1911
1957
|
index: any;
|
package/lib/nf-table.cjs.js
CHANGED
|
@@ -5843,6 +5843,12 @@ __sfc_main.props = {
|
|
|
5843
5843
|
type: Number,
|
|
5844
5844
|
default: 145
|
|
5845
5845
|
},
|
|
5846
|
+
emptyText: {
|
|
5847
|
+
key: "emptyText",
|
|
5848
|
+
required: false,
|
|
5849
|
+
type: String,
|
|
5850
|
+
default: ""
|
|
5851
|
+
},
|
|
5846
5852
|
calHeight: {
|
|
5847
5853
|
key: "calHeight",
|
|
5848
5854
|
required: false,
|
|
@@ -6822,12 +6828,32 @@ var _sfc_render = function render3() {
|
|
|
6822
6828
|
return [_c("nf-search-form", _vm._g(_vm._b({
|
|
6823
6829
|
ref: "nfSearchFormRef"
|
|
6824
6830
|
}, "nf-search-form", _vm.searchFormAttrs, false), _vm.searchFormEvents), [_vm._l(((_a2 = _vm.nfSearchFormRef) == null ? void 0 : _a2.renderSearchFormItemOptions) || [], function(item) {
|
|
6825
|
-
var _a3;
|
|
6826
|
-
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ?
|
|
6831
|
+
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
6832
|
+
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ? _vm._t(item.tooltip.slot, null, {
|
|
6827
6833
|
"slot": item.tooltip.slot
|
|
6828
|
-
})
|
|
6834
|
+
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
6829
6835
|
"slot": item.slot
|
|
6830
|
-
})
|
|
6836
|
+
}) : _vm._e(), ((_b2 = item.inputSlot) == null ? void 0 : _b2.prepend) ? _vm._t((_c2 = item.inputSlot) == null ? void 0 : _c2.prepend, null, {
|
|
6837
|
+
"slot": (_d = item.inputSlot) == null ? void 0 : _d.prepend
|
|
6838
|
+
}) : _vm._e(), ((_e = item.inputSlot) == null ? void 0 : _e.append) ? _vm._t((_f = item.inputSlot) == null ? void 0 : _f.append, null, {
|
|
6839
|
+
"slot": (_g = item.inputSlot) == null ? void 0 : _g.append
|
|
6840
|
+
}) : _vm._e(), ((_h = item.inputSlot) == null ? void 0 : _h.suffix) ? _vm._t((_i = item.inputSlot) == null ? void 0 : _i.suffix, null, {
|
|
6841
|
+
"slot": (_j = item.inputSlot) == null ? void 0 : _j.suffix
|
|
6842
|
+
}) : _vm._e(), ((_k = item.inputSlot) == null ? void 0 : _k.prefix) ? _vm._t((_l = item.inputSlot) == null ? void 0 : _l.prefix, null, {
|
|
6843
|
+
"slot": (_m = item.inputSlot) == null ? void 0 : _m.prefix
|
|
6844
|
+
}) : _vm._e(), ((_n = item.inputSlot) == null ? void 0 : _n.doublePrepend) ? _vm._t((_o = item.inputSlot) == null ? void 0 : _o.doublePrepend, null, {
|
|
6845
|
+
"slot": (_p = item.inputSlot) == null ? void 0 : _p.doublePrepend
|
|
6846
|
+
}) : _vm._e(), ((_q = item.inputSlot) == null ? void 0 : _q.doubleAppend) ? _vm._t((_r = item.inputSlot) == null ? void 0 : _r.doubleAppend, null, {
|
|
6847
|
+
"slot": (_s = item.inputSlot) == null ? void 0 : _s.doubleAppend
|
|
6848
|
+
}) : _vm._e(), ((_t = item.inputSlot) == null ? void 0 : _t.doubleSuffix) ? _vm._t((_u = item.inputSlot) == null ? void 0 : _u.doubleSuffix, null, {
|
|
6849
|
+
"slot": (_v = item.inputSlot) == null ? void 0 : _v.doubleSuffix
|
|
6850
|
+
}) : _vm._e(), ((_w = item.inputSlot) == null ? void 0 : _w.doublePrefix) ? _vm._t((_x = item.inputSlot) == null ? void 0 : _x.doublePrefix, null, {
|
|
6851
|
+
"slot": (_y = item.inputSlot) == null ? void 0 : _y.doublePrefix
|
|
6852
|
+
}) : _vm._e(), ((_z = item.inputSlot) == null ? void 0 : _z.doubleSegment) ? _vm._t((_A = item.inputSlot) == null ? void 0 : _A.doubleSegment, null, {
|
|
6853
|
+
"slot": (_B = item.inputSlot) == null ? void 0 : _B.doubleSegment
|
|
6854
|
+
}) : _vm._e(), item.labelSlot ? _vm._t(item.labelSlot, null, {
|
|
6855
|
+
"slot": item.labelSlot
|
|
6856
|
+
}) : _vm._e()];
|
|
6831
6857
|
}), _vm._t("btnBox", null, {
|
|
6832
6858
|
"slot": "btnBox"
|
|
6833
6859
|
}), _vm._t("searchFormColumnEditDialogTitle", null, {
|
|
@@ -6975,7 +7001,8 @@ var _sfc_render = function render3() {
|
|
|
6975
7001
|
return [_c("nf-empty", {
|
|
6976
7002
|
attrs: {
|
|
6977
7003
|
"slot": "empty",
|
|
6978
|
-
"image-size": _vm.emptyImageSize
|
|
7004
|
+
"image-size": _vm.emptyImageSize,
|
|
7005
|
+
"description": _vm.emptyText
|
|
6979
7006
|
},
|
|
6980
7007
|
slot: "empty"
|
|
6981
7008
|
})];
|
|
@@ -5841,6 +5841,12 @@ __sfc_main.props = {
|
|
|
5841
5841
|
type: Number,
|
|
5842
5842
|
default: 145
|
|
5843
5843
|
},
|
|
5844
|
+
emptyText: {
|
|
5845
|
+
key: "emptyText",
|
|
5846
|
+
required: false,
|
|
5847
|
+
type: String,
|
|
5848
|
+
default: ""
|
|
5849
|
+
},
|
|
5844
5850
|
calHeight: {
|
|
5845
5851
|
key: "calHeight",
|
|
5846
5852
|
required: false,
|
|
@@ -6820,12 +6826,32 @@ var _sfc_render = function render3() {
|
|
|
6820
6826
|
return [_c("nf-search-form", _vm._g(_vm._b({
|
|
6821
6827
|
ref: "nfSearchFormRef"
|
|
6822
6828
|
}, "nf-search-form", _vm.searchFormAttrs, false), _vm.searchFormEvents), [_vm._l(((_a2 = _vm.nfSearchFormRef) == null ? void 0 : _a2.renderSearchFormItemOptions) || [], function(item) {
|
|
6823
|
-
var _a3;
|
|
6824
|
-
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ?
|
|
6829
|
+
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
6830
|
+
return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ? _vm._t(item.tooltip.slot, null, {
|
|
6825
6831
|
"slot": item.tooltip.slot
|
|
6826
|
-
})
|
|
6832
|
+
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
6827
6833
|
"slot": item.slot
|
|
6828
|
-
})
|
|
6834
|
+
}) : _vm._e(), ((_b2 = item.inputSlot) == null ? void 0 : _b2.prepend) ? _vm._t((_c2 = item.inputSlot) == null ? void 0 : _c2.prepend, null, {
|
|
6835
|
+
"slot": (_d = item.inputSlot) == null ? void 0 : _d.prepend
|
|
6836
|
+
}) : _vm._e(), ((_e = item.inputSlot) == null ? void 0 : _e.append) ? _vm._t((_f = item.inputSlot) == null ? void 0 : _f.append, null, {
|
|
6837
|
+
"slot": (_g = item.inputSlot) == null ? void 0 : _g.append
|
|
6838
|
+
}) : _vm._e(), ((_h = item.inputSlot) == null ? void 0 : _h.suffix) ? _vm._t((_i = item.inputSlot) == null ? void 0 : _i.suffix, null, {
|
|
6839
|
+
"slot": (_j = item.inputSlot) == null ? void 0 : _j.suffix
|
|
6840
|
+
}) : _vm._e(), ((_k = item.inputSlot) == null ? void 0 : _k.prefix) ? _vm._t((_l = item.inputSlot) == null ? void 0 : _l.prefix, null, {
|
|
6841
|
+
"slot": (_m = item.inputSlot) == null ? void 0 : _m.prefix
|
|
6842
|
+
}) : _vm._e(), ((_n = item.inputSlot) == null ? void 0 : _n.doublePrepend) ? _vm._t((_o = item.inputSlot) == null ? void 0 : _o.doublePrepend, null, {
|
|
6843
|
+
"slot": (_p = item.inputSlot) == null ? void 0 : _p.doublePrepend
|
|
6844
|
+
}) : _vm._e(), ((_q = item.inputSlot) == null ? void 0 : _q.doubleAppend) ? _vm._t((_r = item.inputSlot) == null ? void 0 : _r.doubleAppend, null, {
|
|
6845
|
+
"slot": (_s = item.inputSlot) == null ? void 0 : _s.doubleAppend
|
|
6846
|
+
}) : _vm._e(), ((_t = item.inputSlot) == null ? void 0 : _t.doubleSuffix) ? _vm._t((_u = item.inputSlot) == null ? void 0 : _u.doubleSuffix, null, {
|
|
6847
|
+
"slot": (_v = item.inputSlot) == null ? void 0 : _v.doubleSuffix
|
|
6848
|
+
}) : _vm._e(), ((_w = item.inputSlot) == null ? void 0 : _w.doublePrefix) ? _vm._t((_x = item.inputSlot) == null ? void 0 : _x.doublePrefix, null, {
|
|
6849
|
+
"slot": (_y = item.inputSlot) == null ? void 0 : _y.doublePrefix
|
|
6850
|
+
}) : _vm._e(), ((_z = item.inputSlot) == null ? void 0 : _z.doubleSegment) ? _vm._t((_A = item.inputSlot) == null ? void 0 : _A.doubleSegment, null, {
|
|
6851
|
+
"slot": (_B = item.inputSlot) == null ? void 0 : _B.doubleSegment
|
|
6852
|
+
}) : _vm._e(), item.labelSlot ? _vm._t(item.labelSlot, null, {
|
|
6853
|
+
"slot": item.labelSlot
|
|
6854
|
+
}) : _vm._e()];
|
|
6829
6855
|
}), _vm._t("btnBox", null, {
|
|
6830
6856
|
"slot": "btnBox"
|
|
6831
6857
|
}), _vm._t("searchFormColumnEditDialogTitle", null, {
|
|
@@ -6973,7 +6999,8 @@ var _sfc_render = function render3() {
|
|
|
6973
6999
|
return [_c("nf-empty", {
|
|
6974
7000
|
attrs: {
|
|
6975
7001
|
"slot": "empty",
|
|
6976
|
-
"image-size": _vm.emptyImageSize
|
|
7002
|
+
"image-size": _vm.emptyImageSize,
|
|
7003
|
+
"description": _vm.emptyText
|
|
6977
7004
|
},
|
|
6978
7005
|
slot: "empty"
|
|
6979
7006
|
})];
|
package/lib/nf-table.vue.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
12
12
|
actionBarOptList?: NfTableActionBtnAttributes[] | undefined;
|
|
13
13
|
dragCached?: boolean | undefined;
|
|
14
14
|
emptyImageSize?: number | undefined;
|
|
15
|
+
emptyText?: string | undefined;
|
|
15
16
|
calHeight?: boolean | undefined;
|
|
16
17
|
columnEdit?: boolean | undefined;
|
|
17
18
|
columnPosition?: "embed" | "free" | undefined;
|
|
@@ -71,6 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
71
72
|
}>, {
|
|
72
73
|
dragCached: boolean;
|
|
73
74
|
emptyImageSize: number;
|
|
75
|
+
emptyText: string;
|
|
74
76
|
priority: string;
|
|
75
77
|
storageKey: string;
|
|
76
78
|
searchFormStorageKey: string;
|
|
@@ -229,6 +231,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
229
231
|
actionBarOptList?: NfTableActionBtnAttributes[] | undefined;
|
|
230
232
|
dragCached?: boolean | undefined;
|
|
231
233
|
emptyImageSize?: number | undefined;
|
|
234
|
+
emptyText?: string | undefined;
|
|
232
235
|
calHeight?: boolean | undefined;
|
|
233
236
|
columnEdit?: boolean | undefined;
|
|
234
237
|
columnPosition?: "embed" | "free" | undefined;
|
|
@@ -288,6 +291,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
288
291
|
}>, {
|
|
289
292
|
dragCached: boolean;
|
|
290
293
|
emptyImageSize: number;
|
|
294
|
+
emptyText: string;
|
|
291
295
|
priority: string;
|
|
292
296
|
storageKey: string;
|
|
293
297
|
searchFormStorageKey: string;
|
|
@@ -373,6 +377,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
373
377
|
actionBarOptList: NfTableActionBtnAttributes[];
|
|
374
378
|
dragCached: boolean;
|
|
375
379
|
emptyImageSize: number;
|
|
380
|
+
emptyText: string;
|
|
376
381
|
calHeight: boolean;
|
|
377
382
|
columnPosition: 'free' | 'embed';
|
|
378
383
|
checkMode: 'dialog' | 'drawer';
|
|
@@ -421,6 +426,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
421
426
|
slot: any;
|
|
422
427
|
}) => any>> & Partial<Record<any, (_: {
|
|
423
428
|
slot: any;
|
|
429
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
430
|
+
slot: any;
|
|
431
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
432
|
+
slot: any;
|
|
433
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
434
|
+
slot: any;
|
|
435
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
436
|
+
slot: any;
|
|
437
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
438
|
+
slot: any;
|
|
439
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
440
|
+
slot: any;
|
|
441
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
442
|
+
slot: any;
|
|
443
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
444
|
+
slot: any;
|
|
445
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
446
|
+
slot: any;
|
|
447
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
448
|
+
slot: any;
|
|
424
449
|
}) => any>> & Partial<Record<any, (_: {
|
|
425
450
|
row: any;
|
|
426
451
|
index: any;
|
package/package/nf-table.vue
CHANGED
|
@@ -8,13 +8,19 @@
|
|
|
8
8
|
>
|
|
9
9
|
<template v-for="item in (nfSearchFormRef?.renderSearchFormItemOptions || [])">
|
|
10
10
|
<!-- 定制化SearchItem?提示-->
|
|
11
|
-
<
|
|
12
|
-
<slot :name="item.tooltip.slot" :slot="item.tooltip.slot" />
|
|
13
|
-
</template>
|
|
11
|
+
<slot :name="item.tooltip.slot" :slot="item.tooltip.slot" v-if="item.tooltip?.slot" />
|
|
14
12
|
<!-- 定制化SearchItem插槽-->
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
<slot :name="item.slot" :slot="item.slot" v-if="item.slot" />
|
|
14
|
+
<slot :name="item.inputSlot?.prepend" v-if="item.inputSlot?.prepend" :slot="item.inputSlot?.prepend" />
|
|
15
|
+
<slot :name="item.inputSlot?.append" v-if="item.inputSlot?.append" :slot="item.inputSlot?.append" />
|
|
16
|
+
<slot :name="item.inputSlot?.suffix" v-if="item.inputSlot?.suffix" :slot="item.inputSlot?.suffix" />
|
|
17
|
+
<slot :name="item.inputSlot?.prefix" v-if="item.inputSlot?.prefix" :slot="item.inputSlot?.prefix" />
|
|
18
|
+
<slot :name="item.inputSlot?.doublePrepend" v-if="item.inputSlot?.doublePrepend" :slot="item.inputSlot?.doublePrepend" />
|
|
19
|
+
<slot :name="item.inputSlot?.doubleAppend" v-if="item.inputSlot?.doubleAppend" :slot="item.inputSlot?.doubleAppend" />
|
|
20
|
+
<slot :name="item.inputSlot?.doubleSuffix" v-if="item.inputSlot?.doubleSuffix" :slot="item.inputSlot?.doubleSuffix" />
|
|
21
|
+
<slot :name="item.inputSlot?.doublePrefix" v-if="item.inputSlot?.doublePrefix" :slot="item.inputSlot?.doublePrefix" />
|
|
22
|
+
<slot :name="item.inputSlot?.doubleSegment" v-if="item.inputSlot?.doubleSegment" :slot="item.inputSlot?.doubleSegment" />
|
|
23
|
+
<slot :name="item.labelSlot" :slot="item.labelSlot" v-if="item.labelSlot" />
|
|
18
24
|
</template>
|
|
19
25
|
<slot name="btnBox" slot="btnBox" />
|
|
20
26
|
<slot name="searchFormColumnEditDialogTitle" slot="dialogTitle" />
|
|
@@ -146,7 +152,7 @@
|
|
|
146
152
|
</template>
|
|
147
153
|
<slot name="append" slot="append"></slot>
|
|
148
154
|
<slot name="empty" slot="empty">
|
|
149
|
-
<nf-empty slot="empty" :image-size="emptyImageSize"></nf-empty>
|
|
155
|
+
<nf-empty slot="empty" :image-size="emptyImageSize" :description="emptyText"></nf-empty>
|
|
150
156
|
</slot>
|
|
151
157
|
</el-table>
|
|
152
158
|
<div ref="nfTableActionContainerRef" class="nf-action-box nf-clearfix">
|
|
@@ -594,6 +600,10 @@ const props = withDefaults(defineProps<{
|
|
|
594
600
|
* 表格空数据时空组件size
|
|
595
601
|
*/
|
|
596
602
|
emptyImageSize?: number,
|
|
603
|
+
/**
|
|
604
|
+
* 表格空数据时空组件描述文字
|
|
605
|
+
*/
|
|
606
|
+
emptyText?: string,
|
|
597
607
|
/**
|
|
598
608
|
* 固定窗口满屏table自动计算table高度
|
|
599
609
|
*/
|
|
@@ -686,6 +696,7 @@ const props = withDefaults(defineProps<{
|
|
|
686
696
|
}>(), {
|
|
687
697
|
dragCached: true,
|
|
688
698
|
emptyImageSize: 145,
|
|
699
|
+
emptyText: '',
|
|
689
700
|
priority: 'cached',
|
|
690
701
|
storageKey: 'nf-table-columns-cached-key',
|
|
691
702
|
searchFormStorageKey: 'nf-search-form-columns-cached-key',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^4.0.
|
|
18
|
-
"@94ai/nf-button": "^4.0.
|
|
19
|
-
"@94ai/nf-drawer": "^4.0.
|
|
20
|
-
"@94ai/nf-message": "^4.0.
|
|
21
|
-
"@94ai/nf-search-form": "^4.0.
|
|
22
|
-
"@94ai/nf-theme-chalk": "^4.0.
|
|
17
|
+
"@94ai/common-utils": "^4.0.12",
|
|
18
|
+
"@94ai/nf-button": "^4.0.12",
|
|
19
|
+
"@94ai/nf-drawer": "^4.0.12",
|
|
20
|
+
"@94ai/nf-message": "^4.0.12",
|
|
21
|
+
"@94ai/nf-search-form": "^4.0.12",
|
|
22
|
+
"@94ai/nf-theme-chalk": "^4.0.12",
|
|
23
23
|
"idb-keyval": "^6.2.1",
|
|
24
24
|
"vue-demi": "^0.14.5",
|
|
25
25
|
"vuedraggable": "^2.24.3"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"types": "lib/index.d.ts",
|
|
38
38
|
"main": "lib/nf-table.cjs.js",
|
|
39
39
|
"module": "lib/nf-table.esm-bundler.js",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "059753d03ac31a8c6fab87499ecc96ef4d683739"
|
|
41
41
|
}
|