@94ai/nf-table 3.1.31 → 3.1.32

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.
@@ -53,7 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
53
53
  type: import("vue-demi").PropType<Partial<Record<ElPaginationEventKey, Function>>>;
54
54
  default: () => {};
55
55
  };
56
- actionBarBtnList: {
56
+ actionBarOptList: {
57
57
  type: import("vue-demi").PropType<NfTableActionBtnAttributes[]>;
58
58
  default: () => never[];
59
59
  };
@@ -211,7 +211,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
211
211
  type: import("vue-demi").PropType<Partial<Record<ElPaginationEventKey, Function>>>;
212
212
  default: () => {};
213
213
  };
214
- actionBarBtnList: {
214
+ actionBarOptList: {
215
215
  type: import("vue-demi").PropType<NfTableActionBtnAttributes[]>;
216
216
  default: () => never[];
217
217
  };
@@ -305,7 +305,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
305
305
  tableEvents: Partial<Record<ElTableEventKey, Function>>;
306
306
  pageAttrs: ElPaginationAttributes;
307
307
  pageEvents: Partial<Record<ElPaginationEventKey, Function>>;
308
- actionBarBtnList: NfTableActionBtnAttributes[];
308
+ actionBarOptList: NfTableActionBtnAttributes[];
309
309
  calHeight: boolean;
310
310
  columnEdit: boolean;
311
311
  loading: boolean;
@@ -325,7 +325,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
325
325
  columnDisplayBtnText: string;
326
326
  alwaysShowPage: boolean;
327
327
  operationPropKey: string;
328
- }>, Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
328
+ }>, Partial<Record<any, (_: {
329
+ row: any;
330
+ index: any;
331
+ }) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
329
332
  $index: any;
330
333
  column: any;
331
334
  }) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
@@ -334,6 +337,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
334
337
  }) => any>> & Partial<Record<any, (_: {
335
338
  row: any;
336
339
  index: any;
340
+ }) => any>> & Partial<Record<string, (_: {
341
+ slot: string;
342
+ }) => any>> & Partial<Record<string, (_: {
343
+ slot: string;
344
+ }) => any>> & Partial<Record<string, (_: {
345
+ slot: string;
346
+ }) => any>> & Partial<Record<string, (_: {
347
+ slot: string;
348
+ }) => any>> & Partial<Record<string, (_: {
349
+ slot: string;
350
+ }) => any>> & Partial<Record<string, (_: {
351
+ slot: string;
352
+ }) => any>> & Partial<Record<string, (_: {
353
+ slot: string;
354
+ }) => any>> & Partial<Record<string, (_: {
355
+ slot: string;
337
356
  }) => any>> & {
338
357
  searchBox?(_: {
339
358
  ref: string;
package/lib/types.d.ts CHANGED
@@ -185,7 +185,9 @@ export interface NfTableColumnAttributes {
185
185
  attr?: ElTableColumnAttributes;
186
186
  }
187
187
  export interface NfTableActionBtnAttributes {
188
- size?: 'medium' | 'small' | 'mini';
188
+ value?: string | number | boolean | (string | number | boolean)[];
189
+ 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';
190
+ size?: 'medium' | 'small' | 'mini' | 'large';
189
191
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
190
192
  disabled?: boolean;
191
193
  loading?: boolean;
@@ -196,6 +198,68 @@ export interface NfTableActionBtnAttributes {
196
198
  circle?: boolean;
197
199
  style?: string;
198
200
  key?: number | string;
199
- events?: Record<string, Function>;
200
201
  text?: string;
202
+ min?: number;
203
+ max?: number;
204
+ step?: number;
205
+ 'step-strictly'?: boolean;
206
+ precision?: number;
207
+ controls?: boolean;
208
+ 'controls-position': 'right';
209
+ name?: string;
210
+ label?: string;
211
+ placeholder?: string;
212
+ 'true-label'?: string | number;
213
+ 'false-label'?: string | number;
214
+ border?: boolean;
215
+ checked?: boolean;
216
+ indeterminate?: boolean;
217
+ width?: number;
218
+ 'active-icon-class'?: string;
219
+ 'inactive-icon-class'?: string;
220
+ 'active-text'?: string;
221
+ 'inactive-text'?: string;
222
+ 'inactive-value'?: string | boolean | number;
223
+ 'active-color'?: string;
224
+ 'inactive-color'?: string;
225
+ 'validate-event'?: boolean;
226
+ maxlength?: number;
227
+ minlength?: number;
228
+ clearable?: boolean;
229
+ 'show-word-limit'?: boolean;
230
+ 'prefix-icon'?: string;
231
+ 'suffix-icon'?: string;
232
+ 'show-password'?: boolean;
233
+ rows?: number;
234
+ autosize?: boolean | {
235
+ minRows?: number;
236
+ maxRows?: number;
237
+ };
238
+ autocomplete?: 'on' | 'off';
239
+ readonly?: boolean;
240
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical';
241
+ autofocus?: boolean;
242
+ form?: string;
243
+ tabindex?: string;
244
+ debounce?: number;
245
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
246
+ 'value-key'?: string;
247
+ 'fetch-suggestions'?: Function;
248
+ 'popper-class'?: string;
249
+ 'trigger-on-focus'?: boolean;
250
+ 'select-when-unmatched'?: boolean;
251
+ 'hide-loading'?: boolean;
252
+ 'popper-append-to-body'?: boolean;
253
+ 'highlight-first-item'?: boolean;
254
+ 'text-color'?: string;
255
+ 'fill'?: string;
256
+ attr?: Record<string, any>;
257
+ events?: Record<string, Function>;
258
+ slot?: {
259
+ prefix?: string;
260
+ suffix?: string;
261
+ prepend?: string;
262
+ append?: string;
263
+ };
264
+ children?: NfTableActionBtnAttributes[];
201
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.1.31",
3
+ "version": "3.1.32",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,8 +14,8 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-search-form": "^3.1.31",
18
- "@94ai/nf-theme-chalk": "^3.1.31",
17
+ "@94ai/nf-search-form": "^3.1.32",
18
+ "@94ai/nf-theme-chalk": "^3.1.32",
19
19
  "vue-demi": "^0.14.5"
20
20
  },
21
21
  "peerDependenciesMeta": {
@@ -31,5 +31,5 @@
31
31
  "types": "lib/index.d.ts",
32
32
  "main": "lib/nf-table.cjs.js",
33
33
  "module": "lib/nf-table.esm-bundler.js",
34
- "gitHead": "02e1666730c7a3450ce803ef411297377b288321"
34
+ "gitHead": "8679b729948b1c6a78af7d39d2d38df51ca25fb8"
35
35
  }