@94ai/nf-table 5.0.38 → 6.1.1

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/types.d.ts CHANGED
@@ -1,270 +1,278 @@
1
- import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
- export declare type ElTableEventKey = 'select' | 'select-all' | 'selection-change ' | 'cell-mouse-enter' | 'cell-mouse-leave' | 'cell-click' | 'cell-dblclick' | 'row-click' | 'row-contextmenu' | 'row-dblclick' | 'header-click' | 'header-contextmenu' | 'sort-change' | 'filter-change' | 'current-change' | 'header-dragend' | 'expand-change';
3
- export declare type ElPaginationEventKey = 'size-change' | 'current-change' | 'prev-click' | 'next-click';
4
- export declare type NfSearchFormEventKey = 'open' | 'opened' | 'close' | 'closed' | 'on-change' | 'itemsChange' | 'onSearch' | 'onExport' | 'onResetFields';
5
- export interface NfSearchFormAttributes {
6
- upIcon?: string;
7
- downIcon?: string;
8
- columns?: number;
9
- showBtn?: boolean;
10
- isCollapse?: boolean;
11
- labelPosition?: 'top' | 'right' | 'left';
12
- inline?: boolean;
13
- rules?: Record<string, any>;
14
- labelSuffix?: string;
15
- hideRequiredAsterisk?: boolean;
16
- showMessage?: boolean;
17
- inlineMessage?: boolean;
18
- statusIcon?: boolean;
19
- validateOnRuleChange?: boolean;
20
- size?: 'medium' | 'small' | 'mini';
21
- disabled?: boolean;
22
- labelWidth?: number;
23
- formOptions?: NfSearchFormItemOption[];
24
- showItems?: string[];
25
- closable?: boolean;
26
- itemWidth?: number;
27
- btnItems?: string[] | 'search' | 'export' | 'reset' | '';
28
- isShowAdd?: boolean;
29
- btnBoxLabel?: string;
30
- btnModel?: 'inline' | 'flex';
31
- checkBtnIcon?: string;
32
- checkBtnType?: string;
33
- checkBtnPlain?: boolean;
34
- checkBtnSize?: string;
35
- checkBtnRound?: boolean;
36
- checkBtnCircle?: boolean;
37
- checkBtnLoading?: boolean;
38
- checkBtnDisabled?: boolean;
39
- checkBtnText?: string;
40
- checkBtnClass?: string;
41
- exportBtnIcon?: string;
42
- exportBtnType?: string;
43
- exportBtnPlain?: boolean;
44
- exportBtnSize?: string;
45
- exportBtnRound?: boolean;
46
- exportBtnCircle?: boolean;
47
- exportBtnLoading?: boolean;
48
- exportBtnDisabled?: boolean;
49
- exportBtnText?: string;
50
- exportBtnClass?: string;
51
- queryBtnIcon?: string;
52
- queryBtnType?: string;
53
- queryBtnPlain?: boolean;
54
- queryBtnSize?: string;
55
- queryBtnRound?: boolean;
56
- queryBtnCircle?: boolean;
57
- queryBtnLoading?: boolean;
58
- queryBtnDisabled?: boolean;
59
- queryBtnText?: string;
60
- queryBtnClass?: string;
61
- resetBtnIcon?: string;
62
- resetBtnType?: string;
63
- resetBtnPlain?: boolean;
64
- resetBtnSize?: string;
65
- resetBtnRound?: boolean;
66
- resetBtnCircle?: boolean;
67
- resetBtnLoading?: boolean;
68
- resetBtnDisabled?: boolean;
69
- resetBtnText?: string;
70
- resetBtnClass?: string;
71
- reverseBtnSlot?: boolean;
72
- moreDialogWidth?: string;
73
- moreDialogTitle?: string;
74
- modalAppendToBody?: boolean;
75
- modal?: boolean;
76
- fullscreen?: boolean;
77
- top?: string;
78
- appendToBody?: boolean;
79
- lockScroll?: boolean;
80
- customClass?: string;
81
- closeOnlickModal?: boolean;
82
- closeOnPressEscape?: boolean;
83
- showClose?: boolean;
84
- beforeClose?: Function;
85
- center?: boolean;
86
- destroyOnClose?: boolean;
87
- }
88
- export interface ElTableAttributes {
89
- 'data'?: Record<string, any>[];
90
- 'height'?: string | number;
91
- 'max-height'?: string | number;
92
- 'stripe'?: boolean;
93
- 'border'?: boolean;
94
- 'size'?: 'medium' | 'small' | 'mini';
95
- 'fit'?: boolean;
96
- 'show-header'?: boolean;
97
- 'highlight-current-row'?: boolean;
98
- 'highlight-selection-row'?: boolean;
99
- 'current-row-key'?: string | number;
100
- 'row-class-name'?: Function | string;
101
- 'row-style'?: Function | Record<string, string>;
102
- 'cell-class-name'?: Function | string;
103
- 'cell-style'?: Function | Record<string, string>;
104
- 'header-row-class-name'?: Function | string;
105
- 'header-row-style'?: Function | Record<string, string>;
106
- 'header-cell-class-name'?: Function | string;
107
- 'header-cell-style'?: Function | Record<string, string>;
108
- 'row-key'?: Function | string;
109
- 'empty-text'?: string;
110
- 'default-expand-all'?: boolean;
111
- 'expand-row-keys'?: string[];
112
- 'default-sort'?: {
113
- prop?: string;
114
- order?: 'descending' | 'ascending';
115
- };
116
- 'tooltip-effect'?: 'dark' | 'light';
117
- 'show-summary'?: boolean;
118
- 'sum-text'?: string;
119
- 'summary-method'?: Function;
120
- 'span-method'?: Function;
121
- 'select-on-indeterminate'?: boolean;
122
- 'indent'?: number;
123
- 'lazy'?: boolean;
124
- 'load'?: Function;
125
- 'tree-props'?: {
126
- hasChildren: string;
127
- children: string;
128
- };
129
- }
130
- export interface ElTableColumnAttributes {
131
- type?: 'selection' | 'index' | 'expand';
132
- label?: string;
133
- prop?: string;
134
- index?: number | ((index: number) => number);
135
- 'column-key'?: string;
136
- width?: string;
137
- 'min-width'?: string;
138
- fixed?: 'left' | 'right' | boolean;
139
- 'render-header'?: Function;
140
- sortable?: boolean | 'custom';
141
- 'sort-method'?: Function;
142
- 'sort-by'?: string | string[] | Function;
143
- 'sort-orders'?: ['ascending' | 'descending' | null, 'ascending' | 'descending' | null, 'ascending' | 'descending' | null];
144
- resizable?: boolean;
145
- formatter?: Function;
146
- 'show-overflow-tooltip'?: boolean;
147
- align?: 'left' | 'center' | 'right';
148
- 'class-name'?: string;
149
- 'label-class-name'?: string;
150
- selectable?: Function;
151
- 'reserve-selection'?: boolean;
152
- filters?: {
153
- text?: string | number;
154
- value?: string | number;
155
- }[];
156
- 'filter-placement'?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
157
- 'filter-multiple'?: boolean;
158
- 'filter-method'?: Function;
159
- 'filtered-value'?: string[];
160
- }
161
- export interface ElPaginationAttributes {
162
- small?: boolean;
163
- background?: boolean;
164
- 'page-size'?: number;
165
- total?: number;
166
- 'page-count'?: number;
167
- 'pager-count'?: number;
168
- 'current-page'?: number;
169
- layout?: 'prev' | 'pager' | 'next' | 'jumper' | '->' | 'total';
170
- 'page-sizes'?: number[];
171
- 'popper-class'?: string;
172
- 'prev-text'?: string;
173
- 'next-text'?: string;
174
- 'disabled'?: boolean;
175
- 'hide-on-single-page'?: boolean;
176
- }
177
- export interface NfTableColumnAttributes {
178
- _index?: number;
179
- __index?: number;
180
- initHidden?: boolean;
181
- destory?: boolean;
182
- type?: 'selection' | 'index' | 'expand';
183
- label?: string;
184
- addLabel?: string;
185
- prop?: string;
186
- render?: Function;
187
- slot?: any;
188
- headerSlot?: any;
189
- singleHeadMutiColSlot?: any;
190
- attr?: ElTableColumnAttributes;
191
- }
192
- export interface NfTableActionBtnAttributes {
193
- value?: string | number | boolean | (string | number | boolean)[];
194
- element?: 'el-button' | 'el-checkbox' | 'el-radio' | 'el-input' | 'el-switch' | 'el-input-number' | 'el-autocomplete' | 'el-checkbox-group' | 'el-checkbox-button' | 'el-radio-group' | 'el-radio-button' | 'text';
195
- size?: 'medium' | 'small' | 'mini' | 'large';
196
- type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
197
- disabled?: boolean;
198
- loading?: boolean;
199
- class?: string;
200
- plain?: boolean;
201
- icon?: string;
202
- round?: boolean;
203
- circle?: boolean;
204
- style?: string;
205
- key?: number | string;
206
- text?: string;
207
- min?: number;
208
- max?: number;
209
- step?: number;
210
- 'step-strictly'?: boolean;
211
- precision?: number;
212
- controls?: boolean;
213
- 'controls-position': 'right';
214
- name?: string;
215
- label?: string;
216
- placeholder?: string;
217
- 'true-label'?: string | number;
218
- 'false-label'?: string | number;
219
- border?: boolean;
220
- checked?: boolean;
221
- indeterminate?: boolean;
222
- width?: number;
223
- 'active-icon-class'?: string;
224
- 'inactive-icon-class'?: string;
225
- 'active-text'?: string;
226
- 'inactive-text'?: string;
227
- 'inactive-value'?: string | boolean | number;
228
- 'active-color'?: string;
229
- 'inactive-color'?: string;
230
- 'validate-event'?: boolean;
231
- maxlength?: number;
232
- minlength?: number;
233
- clearable?: boolean;
234
- 'show-word-limit'?: boolean;
235
- 'prefix-icon'?: string;
236
- 'suffix-icon'?: string;
237
- 'show-password'?: boolean;
238
- rows?: number;
239
- autosize?: boolean | {
240
- minRows?: number;
241
- maxRows?: number;
242
- };
243
- autocomplete?: 'on' | 'off';
244
- readonly?: boolean;
245
- resize?: 'none' | 'both' | 'horizontal' | 'vertical';
246
- autofocus?: boolean;
247
- form?: string;
248
- tabindex?: string;
249
- debounce?: number;
250
- placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
251
- 'value-key'?: string;
252
- 'fetch-suggestions'?: Function;
253
- 'popper-class'?: string;
254
- 'trigger-on-focus'?: boolean;
255
- 'select-when-unmatched'?: boolean;
256
- 'hide-loading'?: boolean;
257
- 'popper-append-to-body'?: boolean;
258
- 'highlight-first-item'?: boolean;
259
- 'text-color'?: string;
260
- 'fill'?: string;
261
- attr?: Record<string, any>;
262
- events?: Record<string, Function>;
263
- slot?: {
264
- prefix?: string;
265
- suffix?: string;
266
- prepend?: string;
267
- append?: string;
268
- };
269
- children?: NfTableActionBtnAttributes[];
270
- }
1
+ import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
+ export declare type ElTableEventKey = 'select' | 'select-all' | 'selection-change ' | 'cell-mouse-enter' | 'cell-mouse-leave' | 'cell-click' | 'cell-dblclick' | 'row-click' | 'row-contextmenu' | 'row-dblclick' | 'header-click' | 'header-contextmenu' | 'sort-change' | 'filter-change' | 'current-change' | 'header-dragend' | 'expand-change';
3
+ export declare type ElPaginationEventKey = 'size-change' | 'current-change' | 'prev-click' | 'next-click';
4
+ export declare type NfSearchFormEventKey = 'open' | 'opened' | 'close' | 'closed' | 'on-change' | 'itemsChange' | 'onSearch' | 'onExport' | 'onResetFields';
5
+ export interface NfSearchFormAttributes {
6
+ upIcon?: string;
7
+ downIcon?: string;
8
+ columns?: number;
9
+ showBtn?: boolean;
10
+ isCollapse?: boolean;
11
+ labelPosition?: 'top' | 'right' | 'left';
12
+ inline?: boolean;
13
+ rules?: Record<string, any>;
14
+ labelSuffix?: string;
15
+ hideRequiredAsterisk?: boolean;
16
+ showMessage?: boolean;
17
+ inlineMessage?: boolean;
18
+ statusIcon?: boolean;
19
+ validateOnRuleChange?: boolean;
20
+ size?: 'medium' | 'small' | 'mini';
21
+ disabled?: boolean;
22
+ labelWidth?: number;
23
+ formOptions?: NfSearchFormItemOption[];
24
+ showItems?: string[];
25
+ closable?: boolean;
26
+ itemWidth?: number;
27
+ btnItems?: string[] | 'search' | 'export' | 'reset' | '';
28
+ isShowAdd?: boolean;
29
+ btnBoxLabel?: string;
30
+ btnModel?: 'inline' | 'flex';
31
+ checkBtnIcon?: string;
32
+ checkBtnType?: string;
33
+ checkBtnPlain?: boolean;
34
+ checkBtnSize?: string;
35
+ checkBtnRound?: boolean;
36
+ checkBtnCircle?: boolean;
37
+ checkBtnLoading?: boolean;
38
+ checkBtnDisabled?: boolean;
39
+ checkBtnText?: string;
40
+ checkBtnClass?: string;
41
+ exportBtnIcon?: string;
42
+ exportBtnType?: string;
43
+ exportBtnPlain?: boolean;
44
+ exportBtnSize?: string;
45
+ exportBtnRound?: boolean;
46
+ exportBtnCircle?: boolean;
47
+ exportBtnLoading?: boolean;
48
+ exportBtnDisabled?: boolean;
49
+ exportBtnText?: string;
50
+ exportBtnClass?: string;
51
+ queryBtnIcon?: string;
52
+ queryBtnType?: string;
53
+ queryBtnPlain?: boolean;
54
+ queryBtnSize?: string;
55
+ queryBtnRound?: boolean;
56
+ queryBtnCircle?: boolean;
57
+ queryBtnLoading?: boolean;
58
+ queryBtnDisabled?: boolean;
59
+ queryBtnText?: string;
60
+ queryBtnClass?: string;
61
+ resetBtnIcon?: string;
62
+ resetBtnType?: string;
63
+ resetBtnPlain?: boolean;
64
+ resetBtnSize?: string;
65
+ resetBtnRound?: boolean;
66
+ resetBtnCircle?: boolean;
67
+ resetBtnLoading?: boolean;
68
+ resetBtnDisabled?: boolean;
69
+ resetBtnText?: string;
70
+ resetBtnClass?: string;
71
+ reverseBtnSlot?: boolean;
72
+ moreDialogWidth?: string;
73
+ moreDialogTitle?: string;
74
+ modalAppendToBody?: boolean;
75
+ modal?: boolean;
76
+ fullscreen?: boolean;
77
+ top?: string;
78
+ appendToBody?: boolean;
79
+ lockScroll?: boolean;
80
+ customClass?: string;
81
+ closeOnlickModal?: boolean;
82
+ closeOnPressEscape?: boolean;
83
+ showClose?: boolean;
84
+ beforeClose?: Function;
85
+ center?: boolean;
86
+ destroyOnClose?: boolean;
87
+ }
88
+ export interface ElTableAttributes {
89
+ 'data'?: Record<string, any>[];
90
+ 'height'?: string | number;
91
+ 'max-height'?: string | number;
92
+ 'stripe'?: boolean;
93
+ 'border'?: boolean;
94
+ 'size'?: 'medium' | 'small' | 'mini';
95
+ 'fit'?: boolean;
96
+ 'show-header'?: boolean;
97
+ 'highlight-current-row'?: boolean;
98
+ 'highlight-selection-row'?: boolean;
99
+ 'current-row-key'?: string | number;
100
+ 'row-class-name'?: Function | string;
101
+ 'row-style'?: Function | Record<string, string>;
102
+ 'cell-class-name'?: Function | string;
103
+ 'cell-style'?: Function | Record<string, string>;
104
+ 'header-row-class-name'?: Function | string;
105
+ 'header-row-style'?: Function | Record<string, string>;
106
+ 'header-cell-class-name'?: Function | string;
107
+ 'header-cell-style'?: Function | Record<string, string>;
108
+ 'row-key'?: Function | string;
109
+ 'empty-text'?: string;
110
+ 'default-expand-all'?: boolean;
111
+ 'expand-row-keys'?: string[];
112
+ 'default-sort'?: {
113
+ prop?: string;
114
+ order?: 'descending' | 'ascending';
115
+ };
116
+ 'tooltip-effect'?: 'dark' | 'light';
117
+ 'show-summary'?: boolean;
118
+ 'sum-text'?: string;
119
+ 'summary-method'?: Function;
120
+ 'span-method'?: Function;
121
+ 'select-on-indeterminate'?: boolean;
122
+ 'indent'?: number;
123
+ 'lazy'?: boolean;
124
+ 'load'?: Function;
125
+ 'tree-props'?: {
126
+ hasChildren: string;
127
+ children: string;
128
+ };
129
+ }
130
+ export interface ElTableColumnAttributes {
131
+ type?: 'selection' | 'index' | 'expand';
132
+ label?: string;
133
+ prop?: string;
134
+ index?: number | ((index: number) => number);
135
+ 'column-key'?: string;
136
+ width?: string;
137
+ 'min-width'?: string;
138
+ fixed?: 'left' | 'right' | boolean;
139
+ 'render-header'?: Function;
140
+ sortable?: boolean | 'custom';
141
+ 'sort-method'?: Function;
142
+ 'sort-by'?: string | string[] | Function;
143
+ 'sort-orders'?: ['ascending' | 'descending' | null, 'ascending' | 'descending' | null, 'ascending' | 'descending' | null];
144
+ resizable?: boolean;
145
+ formatter?: Function;
146
+ 'show-overflow-tooltip'?: boolean;
147
+ align?: 'left' | 'center' | 'right';
148
+ 'class-name'?: string;
149
+ 'label-class-name'?: string;
150
+ selectable?: Function;
151
+ 'reserve-selection'?: boolean;
152
+ filters?: {
153
+ text?: string | number;
154
+ value?: string | number;
155
+ }[];
156
+ 'filter-placement'?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
157
+ 'filter-multiple'?: boolean;
158
+ 'filter-method'?: Function;
159
+ 'filtered-value'?: string[];
160
+ }
161
+ export interface ElPaginationAttributes {
162
+ small?: boolean;
163
+ background?: boolean;
164
+ 'page-size'?: number;
165
+ total?: number;
166
+ 'page-count'?: number;
167
+ 'pager-count'?: number;
168
+ 'current-page'?: number;
169
+ layout?: 'prev' | 'pager' | 'next' | 'jumper' | '->' | 'total';
170
+ 'page-sizes'?: number[];
171
+ 'popper-class'?: string;
172
+ 'prev-text'?: string;
173
+ 'next-text'?: string;
174
+ 'disabled'?: boolean;
175
+ 'hide-on-single-page'?: boolean;
176
+ }
177
+ export interface NfTableColumnAttributes {
178
+ _index?: number;
179
+ __index?: number;
180
+ initHidden?: boolean;
181
+ destory?: boolean;
182
+ type?: 'selection' | 'index' | 'expand';
183
+ label?: string;
184
+ addLabel?: string;
185
+ prop?: string;
186
+ render?: Function;
187
+ slot?: any;
188
+ headerSlot?: any;
189
+ labelTooltip?: string;
190
+ unit?: string;
191
+ options: {
192
+ label: string;
193
+ value: string | number;
194
+ tagType?: any;
195
+ }[];
196
+ getOptions?: Function;
197
+ singleHeadMutiColSlot?: any;
198
+ attr?: ElTableColumnAttributes;
199
+ }
200
+ export interface NfTableActionBtnAttributes {
201
+ value?: string | number | boolean | (string | number | boolean)[];
202
+ element?: 'el-button' | 'el-checkbox' | 'el-radio' | 'el-input' | 'el-switch' | 'el-input-number' | 'el-autocomplete' | 'el-checkbox-group' | 'el-checkbox-button' | 'el-radio-group' | 'el-radio-button' | 'text';
203
+ size?: 'medium' | 'small' | 'mini' | 'large';
204
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
205
+ disabled?: boolean;
206
+ loading?: boolean;
207
+ class?: string;
208
+ plain?: boolean;
209
+ icon?: string;
210
+ round?: boolean;
211
+ circle?: boolean;
212
+ style?: string;
213
+ key?: number | string;
214
+ text?: string;
215
+ min?: number;
216
+ max?: number;
217
+ step?: number;
218
+ 'step-strictly'?: boolean;
219
+ precision?: number;
220
+ controls?: boolean;
221
+ 'controls-position': 'right';
222
+ name?: string;
223
+ label?: string;
224
+ placeholder?: string;
225
+ 'true-label'?: string | number;
226
+ 'false-label'?: string | number;
227
+ border?: boolean;
228
+ checked?: boolean;
229
+ indeterminate?: boolean;
230
+ width?: number;
231
+ 'active-icon-class'?: string;
232
+ 'inactive-icon-class'?: string;
233
+ 'active-text'?: string;
234
+ 'inactive-text'?: string;
235
+ 'inactive-value'?: string | boolean | number;
236
+ 'active-color'?: string;
237
+ 'inactive-color'?: string;
238
+ 'validate-event'?: boolean;
239
+ maxlength?: number;
240
+ minlength?: number;
241
+ clearable?: boolean;
242
+ 'show-word-limit'?: boolean;
243
+ 'prefix-icon'?: string;
244
+ 'suffix-icon'?: string;
245
+ 'show-password'?: boolean;
246
+ rows?: number;
247
+ autosize?: boolean | {
248
+ minRows?: number;
249
+ maxRows?: number;
250
+ };
251
+ autocomplete?: 'on' | 'off';
252
+ readonly?: boolean;
253
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical';
254
+ autofocus?: boolean;
255
+ form?: string;
256
+ tabindex?: string;
257
+ debounce?: number;
258
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
259
+ 'value-key'?: string;
260
+ 'fetch-suggestions'?: Function;
261
+ 'popper-class'?: string;
262
+ 'trigger-on-focus'?: boolean;
263
+ 'select-when-unmatched'?: boolean;
264
+ 'hide-loading'?: boolean;
265
+ 'popper-append-to-body'?: boolean;
266
+ 'highlight-first-item'?: boolean;
267
+ 'text-color'?: string;
268
+ 'fill'?: string;
269
+ attr?: Record<string, any>;
270
+ events?: Record<string, Function>;
271
+ slot?: {
272
+ prefix?: string;
273
+ suffix?: string;
274
+ prepend?: string;
275
+ append?: string;
276
+ };
277
+ children?: NfTableActionBtnAttributes[];
278
+ }