@ithinkdt/ui 4.0.16 → 4.0.18
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/auto-imports.js +6 -3
- package/esm/{DataTable-DXZ3G4ZO.js → DataTable-CMFYAmRF.js} +88 -48
- package/esm/components-BHfgt7FW.js +2167 -0
- package/esm/components.d.ts +159 -67
- package/esm/components.js +2 -1629
- package/esm/design.d.ts +0 -6
- package/esm/directives.js +1 -1
- package/esm/index.js +109 -151
- package/esm/page.d.ts +2 -1
- package/esm/page.js +94 -85
- package/package.json +10 -10
- package/esm/assets-bJgPKDh1.js +0 -187
- /package/esm/{directives-g3YmS-dM.js → directives-Chz4DK1u.js} +0 -0
- /package/esm/{use-i18n-D1TTDOML.js → use-i18n-BUP_StIp.js} +0 -0
package/esm/components.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { MaybeElement } from '@vueuse/core'
|
|
1
2
|
import {
|
|
2
3
|
AnchorProps, ButtonProps, ButtonSlots, CheckboxGroupProps, DataTableInst as NDataTableInst, DataTableProps as NDataTableProps,
|
|
3
4
|
FlexProps, FormItemGiProps as NFormItemGiProps, FormProps as NFormProps, GridItemProps as NGridItemProps, GridProps as NGridProps,
|
|
4
|
-
PopoverProps, RadioGroupProps, TransferProps,
|
|
5
|
+
IconProps, PopoverProps, RadioGroupProps, ScrollbarProps, TooltipProps, TransferProps,
|
|
5
6
|
} from 'ithinkdt-ui'
|
|
6
7
|
import { TableBaseColumn } from 'ithinkdt-ui/es/data-table/src/interface'
|
|
7
8
|
import { AllowedComponentProps, MaybeRef, MaybeRefOrGetter, VNodeChild } from 'vue'
|
|
@@ -67,17 +68,17 @@ declare module '@ithinkdt/page' {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
export
|
|
71
|
+
export interface NStateButtonProps extends ButtonProps {
|
|
71
72
|
succeeded?: boolean | null | undefined
|
|
72
73
|
successText?: string | undefined
|
|
73
74
|
failureText?: string | undefined
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
export
|
|
77
|
+
export interface NStateButtonEmits {
|
|
77
78
|
(e: 'click', evt: MouseEvent): void
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
export
|
|
81
|
+
export interface NStateButtonSlots extends ButtonSlots {
|
|
81
82
|
success?: () => VNodeChild
|
|
82
83
|
failure?: () => VNodeChild
|
|
83
84
|
successIcon?: () => VNodeChild
|
|
@@ -91,7 +92,7 @@ export declare function NStateButton(
|
|
|
91
92
|
setup?: GenericCtx<NStateButtonProps, NStateButtonEmits, NStateButtonSlots>,
|
|
92
93
|
): GenericReturn<NStateButtonProps, NStateButtonEmits, NStateButtonSlots>
|
|
93
94
|
|
|
94
|
-
export
|
|
95
|
+
export interface DataFormActionsProps extends Pick<FlexProps, 'align' | 'justify' | 'vertical' | 'reverse'> {
|
|
95
96
|
size?: 'small' | 'medium' | 'large' | undefined
|
|
96
97
|
gap?: number | string | undefined
|
|
97
98
|
submitText?: VNodeChild | undefined
|
|
@@ -111,13 +112,13 @@ export type DataFormActionsProps = Pick<FlexProps, 'align' | 'justify' | 'vertic
|
|
|
111
112
|
nativeButtonType?: boolean | undefined
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
export
|
|
115
|
+
export interface DataFormActionsEmits {
|
|
115
116
|
(e: 'submit'): void
|
|
116
117
|
(e: 'reset'): void
|
|
117
118
|
(e: 'cancel'): void
|
|
118
119
|
}
|
|
119
120
|
|
|
120
|
-
export
|
|
121
|
+
export interface DataFormActionsSlots {
|
|
121
122
|
prefix?: () => VNodeChild
|
|
122
123
|
suffix?: () => VNodeChild
|
|
123
124
|
}
|
|
@@ -129,36 +130,36 @@ export declare function DataFormActions(
|
|
|
129
130
|
setup?: GenericCtx<DataFormActionsProps, DataFormActionsEmits, DataFormActionsSlots>,
|
|
130
131
|
): GenericReturn<DataFormActionsProps, DataFormActionsEmits, DataFormActionsSlots>
|
|
131
132
|
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
133
|
+
export interface DataFormProps<Data extends {}> extends Omit<NFormProps, 'model' | 'rules' | 'onSubmit' | 'validateMessages'>,
|
|
134
|
+
Omit<DataFormActionsProps, 'onSubmit' | 'size' | 'gap' | 'justify' | 'direction' | 'submitLoading'> {
|
|
135
|
+
items: ArrayLike<FormItem<Data>>
|
|
136
|
+
model: Data
|
|
137
|
+
readonly?: boolean | undefined
|
|
138
|
+
grid?: boolean | NGridProps | undefined
|
|
139
|
+
validation?: { [k in keyof Data]?: ValidationResults } | undefined
|
|
140
|
+
showColon?: boolean | undefined
|
|
141
|
+
tooltipPlacement?: 'bottom' | 'icon' | undefined
|
|
142
|
+
loading?: boolean | undefined
|
|
143
|
+
showAction?: boolean | NGridItemProps & AllowedComponentProps | undefined
|
|
144
|
+
actionJustify?: DataFormActionsProps['justify']
|
|
145
|
+
actionAlign?: DataFormActionsProps['align']
|
|
146
|
+
actionGap?: DataFormActionsProps['gap']
|
|
147
|
+
onSubmit?: MaybeArray<(model: Data) => void> | undefined
|
|
148
|
+
}
|
|
148
149
|
|
|
149
|
-
export
|
|
150
|
+
export interface DataFormEmits<Data extends {}> {
|
|
150
151
|
(e: 'submit', model: Data): void
|
|
151
152
|
(e: 'reset'): void
|
|
152
153
|
(e: 'cancel'): void
|
|
153
154
|
}
|
|
154
155
|
|
|
155
|
-
export
|
|
156
|
+
export interface DataFormSlots<_Data extends {}> {
|
|
156
157
|
action?: (params: { overflow: boolean, grid: ComponentPublicInstance | undefined }) => VNodeChild
|
|
157
158
|
actionPrefix?: () => VNodeChild
|
|
158
159
|
actionSuffix?: () => VNodeChild
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
export
|
|
162
|
+
export interface DataFormInst {
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
export declare function DataForm<Data extends {}>(
|
|
@@ -168,10 +169,11 @@ export declare function DataForm<Data extends {}>(
|
|
|
168
169
|
setup?: GenericCtx<DataFormProps<Data>, DataFormEmits<Data>, DataFormSlots<Data>, DataFormInst>,
|
|
169
170
|
): GenericReturn<DataFormProps<Data>, DataFormEmits<Data>, DataFormSlots<Data>, DataFormInst>
|
|
170
171
|
|
|
171
|
-
export
|
|
172
|
-
items: FormItem<Data
|
|
172
|
+
export interface DataFilterProps<Data extends {}> extends Omit<NFormProps, 'model' | 'rules' | 'onSubmit' | 'validateMessages'> {
|
|
173
|
+
items: ArrayLike<FormItem<Data>>
|
|
173
174
|
model: Data
|
|
174
175
|
loading?: boolean | undefined
|
|
176
|
+
validation?: { [k in keyof Data]?: ValidationResults } | undefined
|
|
175
177
|
filterOnReset?: boolean | undefined
|
|
176
178
|
filterText?: VNodeChild | undefined
|
|
177
179
|
resetText?: VNodeChild | undefined
|
|
@@ -196,7 +198,7 @@ export type DataFilterProps<Data extends {}> = Omit<NFormProps, 'model' | 'rules
|
|
|
196
198
|
onCollapse?: MaybeArray<(collapsed: boolean) => void> | undefined
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
export
|
|
201
|
+
export interface DataFilterEmits<Data extends {}> {
|
|
200
202
|
(e: 'filter', model: Data): void
|
|
201
203
|
(e: 'reset'): void
|
|
202
204
|
(e: 'custom', param: true | string[] | { key: string, hidden?: boolean }): void
|
|
@@ -208,7 +210,7 @@ export type DataFilterEmits<Data extends {}> = {
|
|
|
208
210
|
(e: 'collapse', collapsed: boolean): void
|
|
209
211
|
}
|
|
210
212
|
|
|
211
|
-
export
|
|
213
|
+
export interface DataFilterInst {
|
|
212
214
|
collapse(this: void, collapsed: boolean): void
|
|
213
215
|
}
|
|
214
216
|
|
|
@@ -219,29 +221,29 @@ export declare function DataFilter<Data extends {}>(
|
|
|
219
221
|
setup?: GenericCtx<DataFilterProps<Data>, DataFilterEmits<Data>, {}, DataFilterInst>,
|
|
220
222
|
): GenericReturn<DataFilterProps<Data>, DataFilterEmits<Data>, {}, DataFilterInst>
|
|
221
223
|
|
|
222
|
-
export
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export
|
|
224
|
+
export interface DataTableProps<Data extends {}, KeyField extends keyof Data>
|
|
225
|
+
extends Omit<NDataTableProps, 'columns' | 'rowKey' | 'data' | 'checkedRowKeys' | 'defaultCheckedRowKeys' | 'onUpdate:checkedRowKeys' | 'onUpdateCheckedRowKeys'> {
|
|
226
|
+
columns?: ArrayLike<TableColumn<Data>> | undefined
|
|
227
|
+
data?: ArrayLike<Data> | undefined
|
|
228
|
+
keyField?: KeyField | undefined
|
|
229
|
+
selectedKeys?: ArrayLike<Data[KeyField]> | undefined
|
|
230
|
+
rangeSelect?: boolean | undefined
|
|
231
|
+
highlight?: boolean | Data[KeyField] | undefined
|
|
232
|
+
highlightColor?: string | undefined
|
|
233
|
+
appear?: 'normal' | 'sticky' | undefined
|
|
234
|
+
sorter?: SortParams<Data> | undefined
|
|
235
|
+
onSort?: MaybeArray<(param: SortParams<Data>) => void> | undefined
|
|
236
|
+
onSelect?: MaybeArray<(param: NonNullable<Data[KeyField]>[]) => void> | undefined
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface DataTableEmits<Data extends {}, KeyField extends keyof Data> {
|
|
238
240
|
(e: 'sort', param: SortParams<Data>): void
|
|
239
241
|
(e: 'select', param: Data[KeyField][]): void
|
|
240
242
|
(e: 'highlight', rowKey: Data[KeyField]): void
|
|
241
243
|
(e: 'custom', params: { key: string, width: number }): void
|
|
242
244
|
}
|
|
243
245
|
|
|
244
|
-
export
|
|
246
|
+
export interface DataTableInst<Data extends {}, KeyField extends keyof Data> extends NDataTableInst {
|
|
245
247
|
scrollToView(rowKey: Data[KeyField]): void
|
|
246
248
|
}
|
|
247
249
|
|
|
@@ -259,21 +261,22 @@ export declare function DataTable<Data extends {}, KeyField extends keyof Data>(
|
|
|
259
261
|
setup?: GenericCtx<DataTableProps<Data, KeyField>, DataTableEmits<Data, KeyField>, {}, DataTableInst<Data, KeyField>>,
|
|
260
262
|
): GenericReturn<DataTableProps<Data, KeyField>, DataTableEmits<Data, KeyField>, {}, DataTableInst<Data, KeyField>>
|
|
261
263
|
|
|
262
|
-
export
|
|
264
|
+
export interface DataPaginationProps extends Partial<PageParams> {
|
|
265
|
+
page?: PageParams
|
|
263
266
|
simple?: boolean | undefined
|
|
264
267
|
total: number
|
|
265
|
-
pageSizes?: number
|
|
268
|
+
pageSizes?: ArrayLike<number> | undefined
|
|
266
269
|
resetPageOnSizeChange?: boolean | undefined
|
|
267
270
|
onChange?: MaybeArray<(value: PageParams) => void> | undefined
|
|
268
271
|
}
|
|
269
272
|
|
|
270
|
-
export
|
|
273
|
+
export interface DataPaginationEmits {
|
|
271
274
|
(e: 'change', value: PageParams): void
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
export declare interface IDataPagination {
|
|
275
278
|
/** 注入默认的分页大小数组 */
|
|
276
|
-
DEFAULT_PAGE_SIZES_INJECTION_KEY: InjectionKey<number
|
|
279
|
+
DEFAULT_PAGE_SIZES_INJECTION_KEY: InjectionKey<ArrayLike<number> | ArrayLike<{ value: number, label: string }>>
|
|
277
280
|
(
|
|
278
281
|
props: DataPaginationProps & PublicProps,
|
|
279
282
|
ctx?: Pick<GenericCtx<DataPaginationProps, DataPaginationEmits, {}, {}>, 'attrs' | 'emit' | 'slots'>,
|
|
@@ -284,14 +287,14 @@ export declare interface IDataPagination {
|
|
|
284
287
|
|
|
285
288
|
declare const DataPagination: IDataPagination
|
|
286
289
|
|
|
287
|
-
export
|
|
290
|
+
export interface DataSelectionProps {
|
|
288
291
|
'count': number
|
|
289
292
|
'modelValue': 'all' | 'selection'
|
|
290
293
|
'onClear'?: MaybeArray<() => void> | undefined
|
|
291
294
|
'onUpdate:modelValue'?: MaybeArray<(value: DataSelectionProps['modelValue']) => void> | undefined
|
|
292
295
|
}
|
|
293
296
|
|
|
294
|
-
export
|
|
297
|
+
export interface DataSelectionEmits {
|
|
295
298
|
(e: 'clear'): void
|
|
296
299
|
(e: 'update:modelValue', v: DataSelectionProps['modelValue']): void
|
|
297
300
|
}
|
|
@@ -303,8 +306,8 @@ export declare function DataSelection(
|
|
|
303
306
|
setup?: GenericCtx<DataSelectionProps, DataSelectionEmits, {}, {}>,
|
|
304
307
|
): GenericReturn<DataSelectionProps, DataSelectionEmits, {}, {}>
|
|
305
308
|
|
|
306
|
-
export
|
|
307
|
-
data: Data
|
|
309
|
+
export interface DataCustomProps<Data extends {}> {
|
|
310
|
+
data: ArrayLike<Data>
|
|
308
311
|
hiddenField?: keyof Data | undefined
|
|
309
312
|
fixedField?: keyof Data | undefined
|
|
310
313
|
labelField?: keyof Data | undefined
|
|
@@ -312,9 +315,10 @@ export type DataCustomProps<Data extends {}> = {
|
|
|
312
315
|
showFixed?: boolean | undefined
|
|
313
316
|
disabledField?: keyof Data | undefined
|
|
314
317
|
visibleField?: keyof Data | undefined
|
|
315
|
-
labelTitle?: VNodeChild | undefined
|
|
316
318
|
size?: number | undefined
|
|
317
319
|
type?: 'primary' | 'default' | undefined
|
|
320
|
+
tooltipPlacement?: TooltipProps['placement'] | undefined
|
|
321
|
+
buttonRender?: () => VNodeChild
|
|
318
322
|
onCustom?: MaybeArray<
|
|
319
323
|
((reset: true) => void)
|
|
320
324
|
| ((sort: string[]) => void)
|
|
@@ -326,7 +330,7 @@ export type DataCustomProps<Data extends {}> = {
|
|
|
326
330
|
| undefined
|
|
327
331
|
}
|
|
328
332
|
|
|
329
|
-
export
|
|
333
|
+
export interface DataCustomEmits {
|
|
330
334
|
(e: 'custom', reset: true): void
|
|
331
335
|
(e: 'custom', sort: string[]): void
|
|
332
336
|
(e: 'custom', modify: {
|
|
@@ -343,11 +347,51 @@ export declare function DataCustom<Data extends {}>(
|
|
|
343
347
|
setup?: GenericCtx<DataCustomProps<Data>, DataCustomEmits, {}, {}>,
|
|
344
348
|
): GenericReturn<DataCustomProps<Data>, DataCustomEmits, {}, {}>
|
|
345
349
|
|
|
346
|
-
export
|
|
350
|
+
export interface ViewProfileProps<Data extends {}> {
|
|
351
|
+
'profiles': ArrayLike<Data>
|
|
352
|
+
'nameField'?: keyof Data | undefined
|
|
353
|
+
'keyField'?: keyof Data | undefined
|
|
354
|
+
'lockedField'?: keyof Data | undefined
|
|
355
|
+
'changing'?: boolean | undefined
|
|
356
|
+
'size'?: number | undefined
|
|
357
|
+
'type'?: 'primary' | 'default' | undefined
|
|
358
|
+
'profile'?: string | null | undefined
|
|
359
|
+
'preference'?: string | null | undefined
|
|
360
|
+
'onUpdateProfile'?: MaybeArray<(profile: string) => void> | undefined
|
|
361
|
+
'onUpdate:profile'?: MaybeArray<(profile: string) => void> | undefined
|
|
362
|
+
'onUpdatePreference'?: MaybeArray<(preference: string | undefined) => void> | undefined
|
|
363
|
+
'onUpdate:preference'?: MaybeArray<(preference: string | undefined) => void> | undefined
|
|
364
|
+
'onCopy'?: MaybeArray<(key: string) => void> | undefined
|
|
365
|
+
'onSave'?: MaybeArray<(payload: { name: string, key: string }) => void> | undefined
|
|
366
|
+
'onRemove'?: MaybeArray<(key: string) => void> | undefined
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface ViewProfileEmits {
|
|
370
|
+
(e: 'updateProfile', profile: string): VoidFunction
|
|
371
|
+
(e: 'update:profile', profile: string): void
|
|
372
|
+
(e: 'updatePreference', preference: string | undefined): void
|
|
373
|
+
(e: 'update:preference', preference: string | undefined): void
|
|
374
|
+
(e: 'copy', key: string): void
|
|
375
|
+
(e: 'save', payload: { name: string, key: string }): void
|
|
376
|
+
(e: 'remove', key: string): void
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface ViewProfileSlots {
|
|
380
|
+
default?: () => VNodeChild
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export declare function ViewProfile<Data extends {}>(
|
|
384
|
+
props: ViewProfileProps<Data> & PublicProps,
|
|
385
|
+
ctx?: Pick<GenericCtx<ViewProfileProps<Data>, ViewProfileEmits, ViewProfileSlots, {}>, 'attrs' | 'emit' | 'slots'>,
|
|
386
|
+
expose?: (exposed?: GenericExposed<{}>) => void,
|
|
387
|
+
setup?: GenericCtx<ViewProfileProps<Data>, ViewProfileEmits, ViewProfileSlots, {}>,
|
|
388
|
+
): GenericReturn<ViewProfileProps<Data>, ViewProfileEmits, ViewProfileSlots, {}>
|
|
389
|
+
|
|
390
|
+
export interface DataActionsProps {
|
|
347
391
|
options?: TableActionRenderParam[] | undefined
|
|
348
392
|
}
|
|
349
393
|
|
|
350
|
-
export
|
|
394
|
+
export interface DataActionsEmits {}
|
|
351
395
|
|
|
352
396
|
export declare function DataActions(
|
|
353
397
|
props: DataActionsProps & PublicProps,
|
|
@@ -356,7 +400,7 @@ export declare function DataActions(
|
|
|
356
400
|
setup?: GenericCtx<DataActionsProps, DataActionsEmits, { default?: () => VNodeChild }, {}>,
|
|
357
401
|
): GenericReturn<DataActionsProps, DataActionsEmits, { default?: () => VNodeChild }, {}>
|
|
358
402
|
|
|
359
|
-
export
|
|
403
|
+
export interface DataLocaleInputProps {
|
|
360
404
|
'label'?: VNodeChild | (() => VNodeChild) | undefined
|
|
361
405
|
'modelValue'?: Record<string, string | undefined> | null | undefined
|
|
362
406
|
'supports'?: { label: string, value: string }[] | undefined
|
|
@@ -370,7 +414,7 @@ export type DataLocaleInputProps = {
|
|
|
370
414
|
'onUpdateModelValue'?: MaybeArray<(modelValue: Record<string, string | undefined> | null) => void> | undefined
|
|
371
415
|
}
|
|
372
416
|
|
|
373
|
-
export
|
|
417
|
+
export interface DataLocaleInputEmits {
|
|
374
418
|
(e: 'update:modelValue', modelValue: Record<string, string | undefined> | null | undefined): void
|
|
375
419
|
(e: 'updateModelValue', modelValue: Record<string, string | undefined> | null | undefined): void
|
|
376
420
|
}
|
|
@@ -392,14 +436,14 @@ export declare function useLocaleEdit(
|
|
|
392
436
|
}
|
|
393
437
|
|
|
394
438
|
export interface CheckboxesProps extends Omit<CheckboxGroupProps, 'value' | 'onUpdate:value' | 'defaultValue'> {
|
|
395
|
-
'options'?: DictItem
|
|
439
|
+
'options'?: ArrayLike<DictItem> | ArrayLike<Record<string, unknown>> | undefined
|
|
396
440
|
'vertical'?: boolean | undefined
|
|
397
441
|
'default'?: boolean | string | DictItem | undefined
|
|
398
442
|
'labelPadding'?: CSSProperties['padding']
|
|
399
443
|
'labelField'?: string | undefined
|
|
400
444
|
'valueField'?: string | undefined
|
|
401
445
|
'disabledField'?: string | undefined
|
|
402
|
-
'modelValue'?: string
|
|
446
|
+
'modelValue'?: ArrayLike<string> | ArrayLike<number> | null | undefined
|
|
403
447
|
'onUpdate:modelValue'?: MaybeArray<(modelValue: string[] | number[] | null) => void> | undefined
|
|
404
448
|
'onUpdateModelValue'?: MaybeArray<(modelValue: string[] | number[] | null) => void> | undefined
|
|
405
449
|
}
|
|
@@ -417,7 +461,7 @@ export declare function NCheckboxes(
|
|
|
417
461
|
): GenericReturn<CheckboxesProps, CheckboxesEmits, {}, {}>
|
|
418
462
|
|
|
419
463
|
export interface RadiosProps extends Omit<RadioGroupProps, 'value' | 'onUpdate:value' | 'defaultValue'> {
|
|
420
|
-
'options'?: DictItem
|
|
464
|
+
'options'?: ArrayLike<DictItem> | ArrayLike<Record<string, unknown>> | undefined
|
|
421
465
|
'type'?: 'radio' | 'button' | 'button-primary' | undefined
|
|
422
466
|
'vertical'?: boolean | undefined
|
|
423
467
|
'default'?: boolean | string | DictItem | undefined
|
|
@@ -488,7 +532,7 @@ export declare function DtUserDept<Multiple extends boolean>(
|
|
|
488
532
|
): GenericReturn<UserDeptProps<Multiple>, UserDeptEmits<Multiple>, {}, {}>
|
|
489
533
|
|
|
490
534
|
interface UserRenderProps {
|
|
491
|
-
value?: string | string
|
|
535
|
+
value?: string | ArrayLike<string> | null | undefined
|
|
492
536
|
multiple?: boolean | undefined
|
|
493
537
|
max?: number | undefined
|
|
494
538
|
size?: number | undefined
|
|
@@ -508,7 +552,7 @@ export declare const DtUserRender: (
|
|
|
508
552
|
) => GenericReturn<UserRenderProps, UserRenderEmits, {}, {}>
|
|
509
553
|
|
|
510
554
|
interface DeptRenderProps {
|
|
511
|
-
value?: string | string
|
|
555
|
+
value?: string | ArrayLike<string> | null | undefined
|
|
512
556
|
multiple?: boolean | undefined
|
|
513
557
|
getDeptsByCode?: (codes: string[]) => Promise<DeptOption[]>
|
|
514
558
|
}
|
|
@@ -526,7 +570,7 @@ export declare const DtDeptRender: (
|
|
|
526
570
|
export interface DataDescriptionsProps<Data extends object> {
|
|
527
571
|
cols?: number
|
|
528
572
|
data: Partial<Data> | undefined | null
|
|
529
|
-
items: DescriptionItem<Data
|
|
573
|
+
items: ArrayLike<DescriptionItem<Data>>
|
|
530
574
|
title?: VNodeChild | ((data: Partial<Data> | undefined) => VNodeChild)
|
|
531
575
|
anchor?: boolean | AnchorProps & AllowedComponentProps | undefined
|
|
532
576
|
}
|
|
@@ -540,3 +584,51 @@ export declare function DataDescriptions<Data extends {}>(
|
|
|
540
584
|
expose?: (exposed?: GenericExposed<{}>) => void,
|
|
541
585
|
setup?: GenericCtx<DataDescriptionsProps<Data>, DataDescriptionsEmits, {}, {}>,
|
|
542
586
|
): GenericReturn<DataDescriptionsProps<Data>, DataDescriptionsEmits, {}, {}>
|
|
587
|
+
|
|
588
|
+
export interface FullscreenButtonProps extends ButtonProps {
|
|
589
|
+
target?: string | MaybeElement
|
|
590
|
+
iconSize?: IconProps['size']
|
|
591
|
+
abstract?: boolean | undefined
|
|
592
|
+
isFullscreen?: boolean | undefined
|
|
593
|
+
tooltipPlacement?: TooltipProps['placement'] | undefined
|
|
594
|
+
onChange?: ((isFullscreen: boolean) => void) | undefined
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
interface FullscreenButtonEmits {
|
|
598
|
+
(e: 'change', isFullscreen: boolean): void
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export declare function FullscreenButton(
|
|
602
|
+
props: FullscreenButtonProps & PublicProps,
|
|
603
|
+
ctx?: Pick<GenericCtx<FullscreenButtonProps, FullscreenButtonEmits>, 'attrs' | 'emit' | 'slots'>,
|
|
604
|
+
expose?: (exposed?: GenericExposed<{}>) => void,
|
|
605
|
+
setup?: GenericCtx<FullscreenButtonProps, FullscreenButtonEmits, {}, {}>,
|
|
606
|
+
): GenericReturn<FullscreenButtonProps, FullscreenButtonEmits, {}, {}>
|
|
607
|
+
|
|
608
|
+
export interface FullscreenWrapperProps {
|
|
609
|
+
tag?: string | undefined
|
|
610
|
+
scrollable?: boolean | undefined
|
|
611
|
+
scrollbarProps?: ScrollbarProps | undefined
|
|
612
|
+
onChange?: ((isFullscreen: boolean) => void) | undefined
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
interface FullscreenWrapperEmits {
|
|
616
|
+
(e: 'change', isFullscreen: boolean): void
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
interface FullscreenWrapperSlots {
|
|
620
|
+
default?: (params: {
|
|
621
|
+
target: HTMLElement
|
|
622
|
+
isFullscreen: boolean
|
|
623
|
+
enter: () => Promise<void>
|
|
624
|
+
exit: () => Promise<void>
|
|
625
|
+
toggle: () => Promise<void>
|
|
626
|
+
}) => VNodeChild
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export declare function FullscreenWrapper(
|
|
630
|
+
props: FullscreenWrapperProps & PublicProps,
|
|
631
|
+
ctx?: Pick<GenericCtx<FullscreenWrapperProps, FullscreenWrapperEmits, FullscreenWrapperSlots>, 'attrs' | 'emit' | 'slots'>,
|
|
632
|
+
expose?: (exposed?: GenericExposed<{}>) => void,
|
|
633
|
+
setup?: GenericCtx<FullscreenWrapperProps, FullscreenWrapperEmits, FullscreenWrapperSlots, {}>,
|
|
634
|
+
): GenericReturn<FullscreenWrapperProps, FullscreenWrapperEmits, FullscreenWrapperSlots, {}>
|