@94ai/nf-table 3.1.37 → 3.1.39

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.
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/css/nf-table.css'
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/nf-table.scss'
@@ -0,0 +1,347 @@
1
+ import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types'
2
+
3
+ export type ElTableEventKey = 'select'
4
+ | 'select-all'
5
+ | 'selection-change '
6
+ | 'cell-mouse-enter'
7
+ | 'cell-mouse-leave'
8
+ | 'cell-click'
9
+ | 'cell-dblclick'
10
+ | 'row-click'
11
+ | 'row-contextmenu'
12
+ | 'row-dblclick'
13
+ | 'header-click'
14
+ | 'header-contextmenu'
15
+ | 'sort-change'
16
+ | 'filter-change'
17
+ | 'current-change'
18
+ | 'header-dragend'
19
+ | 'expand-change'
20
+ export type ElPaginationEventKey = 'size-change'
21
+ | 'current-change'
22
+ | 'prev-click'
23
+ | 'next-click'
24
+ export type NfSearchFormEventKey = 'open'
25
+ | 'opened'
26
+ | 'close'
27
+ | 'closed'
28
+ | 'on-change'
29
+ | 'itemsChange'
30
+ | 'onSearch'
31
+ | 'onExport'
32
+ | 'onResetFields'
33
+ export interface NfSearchFormAttributes {
34
+ /**
35
+ * nf-form扩展配置项
36
+ */
37
+ upIcon?: string,
38
+ downIcon?: string,
39
+ columns?: number,
40
+ showBtn?: boolean,
41
+ isCollapse?: boolean,
42
+
43
+ /**
44
+ * 以下同el-form配置项
45
+ */
46
+ labelPosition?: 'top' | 'right' | 'left'
47
+ inline?: boolean
48
+ rules?: Record<string, any>
49
+ labelSuffix?: string
50
+ hideRequiredAsterisk?: boolean
51
+ showMessage?: boolean
52
+ inlineMessage?: boolean
53
+ statusIcon?: boolean
54
+ validateOnRuleChange?: boolean
55
+ size?: 'medium' | 'small' | 'mini'
56
+ disabled?: boolean
57
+ labelWidth?: number,
58
+
59
+ /**
60
+ * 所有的表单项
61
+ */
62
+ formOptions?: NfSearchFormItemOption[],
63
+ /**
64
+ * 显示的表单项,prop数组
65
+ */
66
+ showItems?: string[],
67
+
68
+ /**
69
+ * 是否显示关闭选项功能
70
+ */
71
+ closable?: boolean,
72
+
73
+ /**
74
+ * 兼容ai-search-form控制item父dom宽度
75
+ */
76
+ itemWidth?: number,
77
+
78
+ /**
79
+ * 以下兼容ai-search-form,控制额外的默认功能按钮
80
+ */
81
+ btnItems?: string[] | 'search' | 'export' | 'reset' | '',
82
+ /**
83
+ * 是否显示更多按钮配置表单项显示
84
+ */
85
+ isShowAdd?: boolean,
86
+ btnBoxLabel?: string
87
+ btnModel?: 'inline' | 'flex'
88
+ /**
89
+ * 更多按钮
90
+ */
91
+ checkBtnIcon?: string,
92
+ checkBtnType?: string,
93
+ checkBtnPlain?: boolean,
94
+ checkBtnSize?: string,
95
+ checkBtnRound?: boolean,
96
+ checkBtnCircle?: boolean,
97
+ checkBtnLoading?: boolean,
98
+ checkBtnDisabled?: boolean,
99
+ checkBtnText?: string,
100
+ checkBtnClass?: string,
101
+ /**
102
+ * 导出按钮
103
+ */
104
+ exportBtnIcon?: string,
105
+ exportBtnType?: string,
106
+ exportBtnPlain?: boolean,
107
+ exportBtnSize?: string,
108
+ exportBtnRound?: boolean,
109
+ exportBtnCircle?: boolean,
110
+ exportBtnLoading?: boolean,
111
+ exportBtnDisabled?: boolean,
112
+ exportBtnText?: string,
113
+ exportBtnClass?: string,
114
+ /**
115
+ * 查询按钮
116
+ */
117
+ queryBtnIcon?: string,
118
+ queryBtnType?: string,
119
+ queryBtnPlain?: boolean,
120
+ queryBtnSize?: string,
121
+ queryBtnRound?: boolean,
122
+ queryBtnCircle?: boolean,
123
+ queryBtnLoading?: boolean,
124
+ queryBtnDisabled?: boolean,
125
+ queryBtnText?: string,
126
+ queryBtnClass?: string,
127
+ /**
128
+ * 重置按钮
129
+ */
130
+ resetBtnIcon?: string,
131
+ resetBtnType?: string,
132
+ resetBtnPlain?: boolean,
133
+ resetBtnSize?: string,
134
+ resetBtnRound?: boolean,
135
+ resetBtnCircle?: boolean,
136
+ resetBtnLoading?: boolean,
137
+ resetBtnDisabled?: boolean,
138
+ resetBtnText?: string,
139
+ resetBtnClass?: string,
140
+
141
+
142
+ reverseBtnSlot?: boolean,
143
+
144
+ /**
145
+ * 字段弹框设置
146
+ */
147
+ moreDialogWidth?: string,
148
+ moreDialogTitle?: string,
149
+ modalAppendToBody?: boolean,
150
+ modal?: boolean,
151
+ fullscreen?: boolean,
152
+ top?: string,
153
+ appendToBody?: boolean,
154
+ lockScroll?: boolean,
155
+ customClass?: string,
156
+ closeOnlickModal?: boolean,
157
+ closeOnPressEscape?: boolean,
158
+ showClose?: boolean,
159
+ beforeClose?: Function,
160
+ center?: boolean,
161
+ destroyOnClose?: boolean,
162
+ }
163
+ export interface ElTableAttributes {
164
+ 'data'?: Record<string, any>[]
165
+ 'height'?: string |number
166
+ 'max-height'?: string | number
167
+ 'stripe'?: boolean
168
+ 'border'?: boolean
169
+ 'size'?: 'medium' | 'small' | 'mini'
170
+ 'fit'?: boolean
171
+ 'show-header'?: boolean
172
+ 'highlight-current-row'?: boolean
173
+ 'highlight-selection-row'?: boolean
174
+ 'current-row-key'?: string | number
175
+ 'row-class-name'?: Function | string
176
+ 'row-style'?: Function | Record<string, string>
177
+ 'cell-class-name'?: Function | string
178
+ 'cell-style'?: Function | Record<string, string>
179
+ 'header-row-class-name'?: Function | string
180
+ 'header-row-style'?: Function | Record<string, string>
181
+ 'header-cell-class-name'?: Function | string
182
+ 'header-cell-style'?: Function | Record<string, string>
183
+ 'row-key'?: Function |string
184
+ 'empty-text'?: string
185
+ 'default-expand-all'?: boolean
186
+ 'expand-row-keys'?: string[]
187
+ 'default-sort'?: {prop?: string, order?: 'descending' | 'ascending'}
188
+ 'tooltip-effect'?: 'dark'|'light'
189
+ 'show-summary'?: boolean
190
+ 'sum-text' ?: string
191
+ 'summary-method'?: Function
192
+ 'span-method'?: Function
193
+ 'select-on-indeterminate'?: boolean
194
+ 'indent'?: number
195
+ 'lazy'?: boolean
196
+ 'load'?: Function
197
+ 'tree-props'?: { hasChildren: string, children: string }
198
+ }
199
+ export interface ElTableColumnAttributes {
200
+ type?: 'selection' | 'index' | 'expand'
201
+ label?: string
202
+ prop?: string
203
+ index?: number | ((index:number) => number)
204
+ 'column-key'?: string,
205
+ width?:string
206
+ 'min-width'?: string
207
+ fixed?: 'left' | 'right' | boolean
208
+ 'render-header'?: Function
209
+ sortable?: boolean | 'custom',
210
+ 'sort-method'?: Function,
211
+ 'sort-by'?: string| string[]|Function,
212
+ 'sort-orders'?: ['ascending' | 'descending' | null, 'ascending' | 'descending' | null, 'ascending' | 'descending' | null]
213
+ resizable?: boolean
214
+ formatter?: Function,
215
+ 'show-overflow-tooltip'?: boolean
216
+ align?: 'left' | 'center' | 'right',
217
+ 'class-name'?: string
218
+ 'label-class-name'?: string
219
+ selectable?: Function
220
+ 'reserve-selection'?: boolean
221
+ filters?: {text?: string | number, value?: string | number}[]
222
+ 'filter-placement'?: 'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'
223
+ 'filter-multiple'?: boolean
224
+ 'filter-method'?: Function
225
+ 'filtered-value'?: string[]
226
+ }
227
+ export interface ElPaginationAttributes {
228
+ small?: boolean
229
+ background?: boolean
230
+ 'page-size'?: number
231
+ total?: number
232
+ 'page-count'?: number
233
+ 'pager-count'?: number
234
+ 'current-page'?: number
235
+ layout?: 'prev'| 'pager'| 'next'| 'jumper'| '->' |'total'
236
+ 'page-sizes'?: number[]
237
+ 'popper-class'?: string
238
+ 'prev-text'?: string
239
+ 'next-text'?: string
240
+ 'disabled'?: boolean
241
+ 'hide-on-single-page'?: boolean
242
+ }
243
+ export interface NfTableColumnAttributes {
244
+ type?: 'selection' | 'index' | 'expand'
245
+ label?: string
246
+ prop?: string
247
+ /**
248
+ * 新增render jsx写法
249
+ */
250
+ render?: Function
251
+ /**
252
+ * 单元格用slot
253
+ */
254
+ slot?: any
255
+ /**
256
+ * 表格头用slot
257
+ */
258
+ headerSlot?: any
259
+ /**
260
+ * 嵌套表格头用slot
261
+ */
262
+ singleHeadMutiColSlot?: any,
263
+ attr?: ElTableColumnAttributes
264
+ }
265
+
266
+ export interface NfTableActionBtnAttributes {
267
+ value?: string | number | boolean | (string | number | boolean)[]
268
+ 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',
269
+ size?: 'medium' | 'small' | 'mini' | 'large',
270
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text',
271
+ disabled?: boolean,
272
+ loading?: boolean
273
+ class?: string,
274
+ plain?: boolean
275
+ icon?: string
276
+ round?: boolean
277
+ circle?: boolean
278
+ style?: string
279
+ key?: number | string
280
+ text?: string
281
+
282
+ min?: number
283
+ max?: number
284
+ step?: number
285
+ 'step-strictly'?: boolean
286
+ precision?: number
287
+ controls?: boolean
288
+ 'controls-position': 'right'
289
+ name?: string
290
+ label?: string
291
+ placeholder?: string
292
+
293
+ 'true-label'?: string | number
294
+ 'false-label'?: string | number
295
+ border?: boolean
296
+ checked?: boolean
297
+ indeterminate?: boolean
298
+
299
+ width?: number
300
+ 'active-icon-class'?: string
301
+ 'inactive-icon-class'?: string
302
+ 'active-text'?: string
303
+ 'inactive-text'?: string
304
+ 'inactive-value'?: string | boolean| number
305
+ 'active-color'?: string
306
+ 'inactive-color'?: string
307
+ 'validate-event'?:boolean
308
+
309
+ maxlength?: number
310
+ minlength?: number
311
+ clearable?:boolean
312
+ 'show-word-limit'?: boolean
313
+ 'prefix-icon'?: string
314
+ 'suffix-icon'?: string
315
+ 'show-password'?: boolean
316
+ rows?: number
317
+ autosize?: boolean | {minRows?: number, maxRows?: number}
318
+ autocomplete?: 'on'| 'off'
319
+ readonly?: boolean
320
+ resize?: 'none'| 'both'| 'horizontal'| 'vertical'
321
+ autofocus?: boolean
322
+ form?: string
323
+ tabindex?: string
324
+
325
+ debounce?: number
326
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
327
+ 'value-key'?: string
328
+ 'fetch-suggestions'?: Function
329
+ 'popper-class'?: string
330
+ 'trigger-on-focus'?: boolean
331
+ 'select-when-unmatched'?:boolean
332
+ 'hide-loading'?: boolean
333
+ 'popper-append-to-body'?: boolean
334
+ 'highlight-first-item'?: boolean
335
+
336
+ 'text-color'?: string
337
+ 'fill'?: string
338
+ attr?: Record<string, any>
339
+ events?: Record<string, Function>
340
+ slot?: {
341
+ prefix?: string
342
+ suffix?: string
343
+ prepend?: string
344
+ append?: string
345
+ }
346
+ children?: NfTableActionBtnAttributes[]
347
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.1.37",
3
+ "version": "3.1.39",
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.37",
18
- "@94ai/nf-theme-chalk": "^3.1.37",
17
+ "@94ai/nf-search-form": "^3.1.39",
18
+ "@94ai/nf-theme-chalk": "^1.0.0",
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": "14dfc729b9988003d4686b414e1e9c0aaa7c4dcd"
34
+ "gitHead": "2b60696b405feafbbaeed385e5bcf666ceefbf2c"
35
35
  }