@94ai/nf-table 100.1.35 → 100.1.37
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 +26 -0
- package/lib/nf-table.cjs.js +7 -4
- package/lib/nf-table.esm-bundler.js +7 -4
- package/lib/nf-table.vue.d.ts +9 -0
- package/package/nf-table.vue +3 -1
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -48,6 +48,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
48
48
|
type: import("vue-demi").PropType<string[]>;
|
|
49
49
|
default: undefined;
|
|
50
50
|
};
|
|
51
|
+
emptyImageSize: {
|
|
52
|
+
type: import("vue-demi").PropType<number>;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
51
55
|
searchFormAttrs: {
|
|
52
56
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
53
57
|
default: () => {};
|
|
@@ -315,6 +319,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
315
319
|
type: import("vue-demi").PropType<string[]>;
|
|
316
320
|
default: undefined;
|
|
317
321
|
};
|
|
322
|
+
emptyImageSize: {
|
|
323
|
+
type: import("vue-demi").PropType<number>;
|
|
324
|
+
default: number;
|
|
325
|
+
};
|
|
318
326
|
searchFormAttrs: {
|
|
319
327
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
320
328
|
default: () => {};
|
|
@@ -549,6 +557,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
549
557
|
text: string;
|
|
550
558
|
selectEmptyWarningTips: string;
|
|
551
559
|
showColumn: string[];
|
|
560
|
+
emptyImageSize: number;
|
|
552
561
|
searchFormAttrs: import("./types").NfSearchFormAttributes;
|
|
553
562
|
searchFormEvents: Partial<Record<import("./types").NfSearchFormEventKey, Function>>;
|
|
554
563
|
tableAttrs: import("./types").ElTableAttributes;
|
|
@@ -651,6 +660,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
651
660
|
type: import("vue-demi").PropType<string[]>;
|
|
652
661
|
default: undefined;
|
|
653
662
|
};
|
|
663
|
+
emptyImageSize: {
|
|
664
|
+
type: import("vue-demi").PropType<number>;
|
|
665
|
+
default: number;
|
|
666
|
+
};
|
|
654
667
|
searchFormAttrs: {
|
|
655
668
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
656
669
|
default: () => {};
|
|
@@ -995,6 +1008,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
995
1008
|
type: import("vue-demi").PropType<string[]>;
|
|
996
1009
|
default: undefined;
|
|
997
1010
|
};
|
|
1011
|
+
emptyImageSize: {
|
|
1012
|
+
type: import("vue-demi").PropType<number>;
|
|
1013
|
+
default: number;
|
|
1014
|
+
};
|
|
998
1015
|
searchFormAttrs: {
|
|
999
1016
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
1000
1017
|
default: () => {};
|
|
@@ -1262,6 +1279,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1262
1279
|
type: import("vue-demi").PropType<string[]>;
|
|
1263
1280
|
default: undefined;
|
|
1264
1281
|
};
|
|
1282
|
+
emptyImageSize: {
|
|
1283
|
+
type: import("vue-demi").PropType<number>;
|
|
1284
|
+
default: number;
|
|
1285
|
+
};
|
|
1265
1286
|
searchFormAttrs: {
|
|
1266
1287
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
1267
1288
|
default: () => {};
|
|
@@ -1573,6 +1594,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1573
1594
|
text: string;
|
|
1574
1595
|
selectEmptyWarningTips: string;
|
|
1575
1596
|
showColumn: string[];
|
|
1597
|
+
emptyImageSize: number;
|
|
1576
1598
|
searchFormAttrs: import("./types").NfSearchFormAttributes;
|
|
1577
1599
|
searchFormEvents: Partial<Record<import("./types").NfSearchFormEventKey, Function>>;
|
|
1578
1600
|
tableAttrs: import("./types").ElTableAttributes;
|
|
@@ -1676,6 +1698,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1676
1698
|
type: import("vue-demi").PropType<string[]>;
|
|
1677
1699
|
default: undefined;
|
|
1678
1700
|
};
|
|
1701
|
+
emptyImageSize: {
|
|
1702
|
+
type: import("vue-demi").PropType<number>;
|
|
1703
|
+
default: number;
|
|
1704
|
+
};
|
|
1679
1705
|
searchFormAttrs: {
|
|
1680
1706
|
type: import("vue-demi").PropType<import("./types").NfSearchFormAttributes>;
|
|
1681
1707
|
default: () => {};
|
package/lib/nf-table.cjs.js
CHANGED
|
@@ -5771,6 +5771,12 @@ const __sfc_main = vueDemi.defineComponent({
|
|
|
5771
5771
|
name: "nf-table"
|
|
5772
5772
|
});
|
|
5773
5773
|
__sfc_main.props = {
|
|
5774
|
+
emptyImageSize: {
|
|
5775
|
+
key: "emptyImageSize",
|
|
5776
|
+
required: false,
|
|
5777
|
+
type: Number,
|
|
5778
|
+
default: 145
|
|
5779
|
+
},
|
|
5774
5780
|
data: {
|
|
5775
5781
|
key: "data",
|
|
5776
5782
|
required: false,
|
|
@@ -6935,12 +6941,9 @@ var _sfc_render = function render3() {
|
|
|
6935
6941
|
"slot": "append"
|
|
6936
6942
|
}), _vm._t("empty", function() {
|
|
6937
6943
|
return [_c("nf-empty", {
|
|
6938
|
-
staticStyle: {
|
|
6939
|
-
"margin-top": "20px"
|
|
6940
|
-
},
|
|
6941
6944
|
attrs: {
|
|
6942
6945
|
"slot": "empty",
|
|
6943
|
-
"image-size":
|
|
6946
|
+
"image-size": _vm.emptyImageSize
|
|
6944
6947
|
},
|
|
6945
6948
|
slot: "empty"
|
|
6946
6949
|
})];
|
|
@@ -5769,6 +5769,12 @@ const __sfc_main = defineComponent({
|
|
|
5769
5769
|
name: "nf-table"
|
|
5770
5770
|
});
|
|
5771
5771
|
__sfc_main.props = {
|
|
5772
|
+
emptyImageSize: {
|
|
5773
|
+
key: "emptyImageSize",
|
|
5774
|
+
required: false,
|
|
5775
|
+
type: Number,
|
|
5776
|
+
default: 145
|
|
5777
|
+
},
|
|
5772
5778
|
data: {
|
|
5773
5779
|
key: "data",
|
|
5774
5780
|
required: false,
|
|
@@ -6933,12 +6939,9 @@ var _sfc_render = function render3() {
|
|
|
6933
6939
|
"slot": "append"
|
|
6934
6940
|
}), _vm._t("empty", function() {
|
|
6935
6941
|
return [_c("nf-empty", {
|
|
6936
|
-
staticStyle: {
|
|
6937
|
-
"margin-top": "20px"
|
|
6938
|
-
},
|
|
6939
6942
|
attrs: {
|
|
6940
6943
|
"slot": "empty",
|
|
6941
|
-
"image-size":
|
|
6944
|
+
"image-size": _vm.emptyImageSize
|
|
6942
6945
|
},
|
|
6943
6946
|
slot: "empty"
|
|
6944
6947
|
})];
|
package/lib/nf-table.vue.d.ts
CHANGED
|
@@ -49,6 +49,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
49
49
|
type: import("vue-demi").PropType<string[]>;
|
|
50
50
|
default: undefined;
|
|
51
51
|
};
|
|
52
|
+
emptyImageSize: {
|
|
53
|
+
type: import("vue-demi").PropType<number>;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
52
56
|
searchFormAttrs: {
|
|
53
57
|
type: import("vue-demi").PropType<NfSearchFormAttributes>;
|
|
54
58
|
default: () => {};
|
|
@@ -396,6 +400,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
396
400
|
type: import("vue-demi").PropType<string[]>;
|
|
397
401
|
default: undefined;
|
|
398
402
|
};
|
|
403
|
+
emptyImageSize: {
|
|
404
|
+
type: import("vue-demi").PropType<number>;
|
|
405
|
+
default: number;
|
|
406
|
+
};
|
|
399
407
|
searchFormAttrs: {
|
|
400
408
|
type: import("vue-demi").PropType<NfSearchFormAttributes>;
|
|
401
409
|
default: () => {};
|
|
@@ -627,6 +635,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
627
635
|
text: string;
|
|
628
636
|
selectEmptyWarningTips: string;
|
|
629
637
|
showColumn: string[];
|
|
638
|
+
emptyImageSize: number;
|
|
630
639
|
searchFormAttrs: NfSearchFormAttributes;
|
|
631
640
|
searchFormEvents: Partial<Record<NfSearchFormEventKey, Function>>;
|
|
632
641
|
tableAttrs: ElTableAttributes;
|
package/package/nf-table.vue
CHANGED
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
</template>
|
|
144
144
|
<slot name="append" slot="append"></slot>
|
|
145
145
|
<slot name="empty" slot="empty">
|
|
146
|
-
<nf-empty
|
|
146
|
+
<nf-empty slot="empty" :image-size="emptyImageSize"></nf-empty>
|
|
147
147
|
</slot>
|
|
148
148
|
</el-table>
|
|
149
149
|
<div ref="nfTableActionContainerRef" class="nf-action-box nf-clearfix">
|
|
@@ -568,6 +568,7 @@ import { ITabItem } from '@94ai/nf-drawer/lib/types'
|
|
|
568
568
|
import { CachedManager } from '@94ai/common-utils'
|
|
569
569
|
|
|
570
570
|
const props = withDefaults(defineProps<{
|
|
571
|
+
emptyImageSize?: number,
|
|
571
572
|
data?: Record<string, any>[],
|
|
572
573
|
columns?: NfTableColumnAttributes[] | any,
|
|
573
574
|
searchFormAttrs?: NfSearchFormAttributes,
|
|
@@ -668,6 +669,7 @@ const props = withDefaults(defineProps<{
|
|
|
668
669
|
*/
|
|
669
670
|
operationPropKey?: string
|
|
670
671
|
}>(), {
|
|
672
|
+
emptyImageSize: 145,
|
|
671
673
|
selectEmptyWarningTips: '请选择至少一个选项',
|
|
672
674
|
priority: 'cached',
|
|
673
675
|
storageKey: 'nf-table-columns-cached-key',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "100.1.
|
|
3
|
+
"version": "100.1.37",
|
|
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": "^100.1.
|
|
18
|
-
"@94ai/nf-button": "^100.1.
|
|
19
|
-
"@94ai/nf-drawer": "^100.1.
|
|
20
|
-
"@94ai/nf-message": "^100.1.
|
|
21
|
-
"@94ai/nf-search-form": "^100.1.
|
|
22
|
-
"@94ai/nf-theme-chalk": "^100.1.
|
|
17
|
+
"@94ai/common-utils": "^100.1.37",
|
|
18
|
+
"@94ai/nf-button": "^100.1.37",
|
|
19
|
+
"@94ai/nf-drawer": "^100.1.37",
|
|
20
|
+
"@94ai/nf-message": "^100.1.37",
|
|
21
|
+
"@94ai/nf-search-form": "^100.1.37",
|
|
22
|
+
"@94ai/nf-theme-chalk": "^100.1.37",
|
|
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": "ad05ed1496a2495824391a570eaf277bd50d8b86"
|
|
41
41
|
}
|