@94ai/nf-table 6.1.9 → 6.1.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 +2075 -2061
- package/lib/nf-column-check-dialog.vue.d.ts +154 -154
- package/lib/nf-column-check-drawer.vue.d.ts +110 -110
- package/lib/nf-render-component.vue.d.ts +20 -20
- package/lib/nf-table.cjs.js +14 -14
- package/lib/nf-table.esm-bundler.js +14 -14
- package/lib/nf-table.vue.d.ts +483 -476
- package/lib/style/css.d.ts +1 -1
- package/lib/style/index.d.ts +1 -1
- package/lib/types.d.ts +279 -278
- package/package/nf-table.vue +8 -5
- package/package/types.ts +4 -0
- package/package.json +9 -9
- package/components.d.ts +0 -8
package/lib/style/css.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/lib/style/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/lib/types.d.ts
CHANGED
|
@@ -1,278 +1,279 @@
|
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
'
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'inactive-
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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
|
+
labelTooltip?: string;
|
|
190
|
+
labelTooltipPlacement?: string;
|
|
191
|
+
unit?: string;
|
|
192
|
+
options: {
|
|
193
|
+
label: string;
|
|
194
|
+
value: string | number;
|
|
195
|
+
tagType?: any;
|
|
196
|
+
}[];
|
|
197
|
+
getOptions?: Function;
|
|
198
|
+
singleHeadMutiColSlot?: any;
|
|
199
|
+
attr?: ElTableColumnAttributes;
|
|
200
|
+
}
|
|
201
|
+
export interface NfTableActionBtnAttributes {
|
|
202
|
+
value?: string | number | boolean | (string | number | boolean)[];
|
|
203
|
+
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';
|
|
204
|
+
size?: 'medium' | 'small' | 'mini' | 'large';
|
|
205
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
|
|
206
|
+
disabled?: boolean;
|
|
207
|
+
loading?: boolean;
|
|
208
|
+
class?: string;
|
|
209
|
+
plain?: boolean;
|
|
210
|
+
icon?: string;
|
|
211
|
+
round?: boolean;
|
|
212
|
+
circle?: boolean;
|
|
213
|
+
style?: string;
|
|
214
|
+
key?: number | string;
|
|
215
|
+
text?: string;
|
|
216
|
+
min?: number;
|
|
217
|
+
max?: number;
|
|
218
|
+
step?: number;
|
|
219
|
+
'step-strictly'?: boolean;
|
|
220
|
+
precision?: number;
|
|
221
|
+
controls?: boolean;
|
|
222
|
+
'controls-position': 'right';
|
|
223
|
+
name?: string;
|
|
224
|
+
label?: string;
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
'true-label'?: string | number;
|
|
227
|
+
'false-label'?: string | number;
|
|
228
|
+
border?: boolean;
|
|
229
|
+
checked?: boolean;
|
|
230
|
+
indeterminate?: boolean;
|
|
231
|
+
width?: number;
|
|
232
|
+
'active-icon-class'?: string;
|
|
233
|
+
'inactive-icon-class'?: string;
|
|
234
|
+
'active-text'?: string;
|
|
235
|
+
'inactive-text'?: string;
|
|
236
|
+
'inactive-value'?: string | boolean | number;
|
|
237
|
+
'active-color'?: string;
|
|
238
|
+
'inactive-color'?: string;
|
|
239
|
+
'validate-event'?: boolean;
|
|
240
|
+
maxlength?: number;
|
|
241
|
+
minlength?: number;
|
|
242
|
+
clearable?: boolean;
|
|
243
|
+
'show-word-limit'?: boolean;
|
|
244
|
+
'prefix-icon'?: string;
|
|
245
|
+
'suffix-icon'?: string;
|
|
246
|
+
'show-password'?: boolean;
|
|
247
|
+
rows?: number;
|
|
248
|
+
autosize?: boolean | {
|
|
249
|
+
minRows?: number;
|
|
250
|
+
maxRows?: number;
|
|
251
|
+
};
|
|
252
|
+
autocomplete?: 'on' | 'off';
|
|
253
|
+
readonly?: boolean;
|
|
254
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
255
|
+
autofocus?: boolean;
|
|
256
|
+
form?: string;
|
|
257
|
+
tabindex?: string;
|
|
258
|
+
debounce?: number;
|
|
259
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
260
|
+
'value-key'?: string;
|
|
261
|
+
'fetch-suggestions'?: Function;
|
|
262
|
+
'popper-class'?: string;
|
|
263
|
+
'trigger-on-focus'?: boolean;
|
|
264
|
+
'select-when-unmatched'?: boolean;
|
|
265
|
+
'hide-loading'?: boolean;
|
|
266
|
+
'popper-append-to-body'?: boolean;
|
|
267
|
+
'highlight-first-item'?: boolean;
|
|
268
|
+
'text-color'?: string;
|
|
269
|
+
'fill'?: string;
|
|
270
|
+
attr?: Record<string, any>;
|
|
271
|
+
events?: Record<string, Function>;
|
|
272
|
+
slot?: {
|
|
273
|
+
prefix?: string;
|
|
274
|
+
suffix?: string;
|
|
275
|
+
prepend?: string;
|
|
276
|
+
append?: string;
|
|
277
|
+
};
|
|
278
|
+
children?: NfTableActionBtnAttributes[];
|
|
279
|
+
}
|
package/package/nf-table.vue
CHANGED
|
@@ -102,10 +102,9 @@
|
|
|
102
102
|
</slot>
|
|
103
103
|
<!-- labelTooltip -->
|
|
104
104
|
<template v-else-if="column.labelTooltip">
|
|
105
|
-
<
|
|
106
|
-
<el-tooltip placement="right" effect="light">
|
|
105
|
+
<el-tooltip :placement="column.labelTooltipPlacement || 'right'" effect="dark">
|
|
107
106
|
<div slot="content">{{ column.labelTooltip }}</div>
|
|
108
|
-
<
|
|
107
|
+
<span class="bottom-line" style="white-space:nowrap"> {{ column.label }} </span>
|
|
109
108
|
</el-tooltip>
|
|
110
109
|
</template>
|
|
111
110
|
<!-- 头部插槽 -->
|
|
@@ -1143,7 +1142,6 @@ onBeforeMount(() => {
|
|
|
1143
1142
|
}, {
|
|
1144
1143
|
deep: true
|
|
1145
1144
|
})
|
|
1146
|
-
if (cInitSearchApi.value) onNfSearchFormSearch()
|
|
1147
1145
|
})
|
|
1148
1146
|
|
|
1149
1147
|
const searchFormAttrer = computed(() => {
|
|
@@ -1397,6 +1395,7 @@ onMounted(() => {
|
|
|
1397
1395
|
console.log('🔅 ~ onMounted ~ props.columns:', props.columns)
|
|
1398
1396
|
}
|
|
1399
1397
|
})
|
|
1398
|
+
if (cInitSearchApi.value) onNfSearchFormSearch()
|
|
1400
1399
|
})
|
|
1401
1400
|
|
|
1402
1401
|
const nfTableBorder = (window as any).nfTableBorder
|
|
@@ -1536,7 +1535,11 @@ defineExpose({
|
|
|
1536
1535
|
syncCookiesToTableColumn,
|
|
1537
1536
|
elTableRefKey,
|
|
1538
1537
|
clearDragCached,
|
|
1539
|
-
clearColumnEditCached
|
|
1538
|
+
clearColumnEditCached,
|
|
1539
|
+
/** 切换页码 */
|
|
1540
|
+
handleCurrentChange,
|
|
1541
|
+
/** 当前页码 */
|
|
1542
|
+
pageAttrs: computed(() => cPageAttrs)
|
|
1540
1543
|
})
|
|
1541
1544
|
|
|
1542
1545
|
</script>
|
package/package/types.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.12",
|
|
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": "^6.1.
|
|
18
|
-
"@94ai/nf-button": "^6.1.
|
|
19
|
-
"@94ai/nf-drawer": "^6.1.
|
|
20
|
-
"@94ai/nf-message": "^6.1.
|
|
21
|
-
"@94ai/nf-search-form": "^6.1.
|
|
22
|
-
"@94ai/nf-tag": "^6.1.
|
|
23
|
-
"@94ai/nf-theme-chalk": "^6.1.
|
|
17
|
+
"@94ai/common-utils": "^6.1.12",
|
|
18
|
+
"@94ai/nf-button": "^6.1.12",
|
|
19
|
+
"@94ai/nf-drawer": "^6.1.12",
|
|
20
|
+
"@94ai/nf-message": "^6.1.12",
|
|
21
|
+
"@94ai/nf-search-form": "^6.1.12",
|
|
22
|
+
"@94ai/nf-tag": "^6.1.12",
|
|
23
|
+
"@94ai/nf-theme-chalk": "^6.1.12",
|
|
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": "c170847f6493387bf69985e7661c5d44e0a1decd"
|
|
43
43
|
}
|