@vtj/ui 0.8.96 → 0.8.98
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/dist/index.mjs +111 -137
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +12 -12
- package/types/components/action/hooks.d.ts +2 -2
- package/types/components/action-bar/ActionBar.d.ts +8 -8
- package/types/components/attachment/Attachment.d.ts +7 -2
- package/types/components/data-item/DataItem.d.ts +8 -8
- package/types/components/dialog/Dialog.d.ts +1 -1
- package/types/components/dialog-form/DialogForm.d.ts +2 -2
- package/types/components/dialog-grid/DialogGrid.d.ts +2 -2
- package/types/components/field/Field.d.ts +3 -3
- package/types/components/form/Form.d.ts +1 -1
- package/types/components/grid/Grid.d.ts +3 -3
- package/types/components/grid/hooks/useColumnSortable.d.ts +1 -1
- package/types/components/grid/hooks/useRowSortable.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +1 -1
- package/types/components/list/List.d.ts +4 -4
- package/types/components/mask/Mask.d.ts +8 -8
- package/types/components/mask/hooks/useContent.d.ts +1 -1
- package/types/components/mask/hooks/useMenus.d.ts +1 -1
- package/types/components/mask/hooks/useSidebar.d.ts +3 -3
- package/types/components/mask/hooks/useTabs.d.ts +3 -3
- package/types/components/panel/Panel.d.ts +1 -1
- package/types/components/picker/Dialog.d.ts +1 -1
- package/types/components/picker/Picker.d.ts +8 -5
- package/types/components/picker/hooks.d.ts +6 -3
- package/types/components/query-form/QueryForm.d.ts +189 -2
- package/types/components/query-form/hooks.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +4 -4
- package/types/components/test/Test.d.ts +1 -1
- package/types/version.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerLoader, PickerColumns, PickerFields, PickerDialogProps, PickerGridProps } from './types';
|
|
1
|
+
import { PickerLoader, PickerColumns, PickerFields, PickerDialogProps, PickerGridProps, PickerOption } from './types';
|
|
2
2
|
import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
|
|
4
4
|
declare const _default: DefineComponent<{
|
|
@@ -62,12 +62,15 @@ declare const _default: DefineComponent<{
|
|
|
62
62
|
options: Ref<{
|
|
63
63
|
label: string;
|
|
64
64
|
value: any;
|
|
65
|
+
}[], PickerOption[] | {
|
|
66
|
+
label: string;
|
|
67
|
+
value: any;
|
|
65
68
|
}[]>;
|
|
66
69
|
setOptions: (rows: any, append?: boolean) => void;
|
|
67
|
-
current: Ref<any>;
|
|
68
|
-
visible: Ref<boolean>;
|
|
69
|
-
dialogRef: Ref<any>;
|
|
70
|
-
formModel: Ref<Record<string, any>>;
|
|
70
|
+
current: Ref<any, any>;
|
|
71
|
+
visible: Ref<boolean, boolean>;
|
|
72
|
+
dialogRef: Ref<any, any>;
|
|
73
|
+
formModel: Ref<Record<string, any>, Record<string, any>>;
|
|
71
74
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
75
|
change: (value: any, data: any) => void;
|
|
73
76
|
"update:modelValue": (value: any) => void;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { Emits } from '../shared';
|
|
2
|
-
import { PickerProps, PickerEmits } from './types';
|
|
2
|
+
import { PickerProps, PickerEmits, PickerOption } from './types';
|
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
|
4
4
|
import { VxeTableDataRow } from 'vxe-table';
|
|
5
5
|
|
|
6
6
|
export declare function useOptions(props: PickerProps, emit: Emits<PickerEmits>): {
|
|
7
|
-
current: Ref<any>;
|
|
7
|
+
current: Ref<any, any>;
|
|
8
8
|
options: Ref<{
|
|
9
9
|
label: string;
|
|
10
10
|
value: any;
|
|
11
|
+
}[], PickerOption[] | {
|
|
12
|
+
label: string;
|
|
13
|
+
value: any;
|
|
11
14
|
}[]>;
|
|
12
15
|
setOptions: (rows: any, append?: boolean) => void;
|
|
13
16
|
};
|
|
14
17
|
export declare function useGridColumns(props: PickerProps): ComputedRef<import("vxe-table").VxeTableDefines.ColumnOptions<VxeTableDataRow>[]>;
|
|
15
18
|
export declare function useModel(props: PickerProps): {
|
|
16
|
-
formModel: Ref<Record<string, any>>;
|
|
19
|
+
formModel: Ref<Record<string, any>, Record<string, any>>;
|
|
17
20
|
};
|
|
@@ -126,7 +126,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
126
126
|
onReset?: (() => any) | undefined;
|
|
127
127
|
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
128
128
|
}, {
|
|
129
|
-
formRef: Ref<any>;
|
|
129
|
+
formRef: Ref<any, any>;
|
|
130
130
|
model: FormModel;
|
|
131
131
|
submit: () => Promise<void>;
|
|
132
132
|
reset: (fields?: string[] | string) => void;
|
|
@@ -197,7 +197,194 @@ declare const __VLS_component: DefineComponent<{
|
|
|
197
197
|
onReset?: (() => any) | undefined;
|
|
198
198
|
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
199
199
|
}, "reset" | "submit" | "model" | "validate" | "formRef"> & ShallowUnwrapRef<{
|
|
200
|
-
formRef: Ref<any>;
|
|
200
|
+
formRef: Ref<any, any>;
|
|
201
|
+
model: FormModel;
|
|
202
|
+
submit: () => Promise<void>;
|
|
203
|
+
reset: (fields?: string[] | string) => void;
|
|
204
|
+
validate: () => Promise<any>;
|
|
205
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
206
|
+
$slots: {
|
|
207
|
+
default?(_: {}): any;
|
|
208
|
+
footer?(_: {}): any;
|
|
209
|
+
action?(_: {}): any;
|
|
210
|
+
};
|
|
211
|
+
}) | undefined, ({
|
|
212
|
+
$: ComponentInternalInstance;
|
|
213
|
+
$data: {};
|
|
214
|
+
$props: Partial<{
|
|
215
|
+
footer: boolean;
|
|
216
|
+
inline: boolean;
|
|
217
|
+
model: Record<string, any>;
|
|
218
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
|
219
|
+
submitText: string | null;
|
|
220
|
+
resetText: string | null;
|
|
221
|
+
}> & Omit<{
|
|
222
|
+
readonly footer: boolean;
|
|
223
|
+
readonly inline: boolean;
|
|
224
|
+
readonly submitText: string | null;
|
|
225
|
+
readonly resetText: string | null;
|
|
226
|
+
readonly model?: Record<string, any> | undefined;
|
|
227
|
+
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
|
228
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
|
229
|
+
readonly inlineColumns?: number | undefined;
|
|
230
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
231
|
+
onReset?: (() => any) | undefined;
|
|
232
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
233
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
234
|
+
model: {
|
|
235
|
+
type: PropType<Record<string, any>>;
|
|
236
|
+
default(): any;
|
|
237
|
+
};
|
|
238
|
+
inline: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
};
|
|
241
|
+
inlineColumns: {
|
|
242
|
+
type: NumberConstructor;
|
|
243
|
+
};
|
|
244
|
+
footer: {
|
|
245
|
+
type: BooleanConstructor;
|
|
246
|
+
default: boolean;
|
|
247
|
+
};
|
|
248
|
+
submitText: {
|
|
249
|
+
type: PropType<string | null>;
|
|
250
|
+
default: string;
|
|
251
|
+
};
|
|
252
|
+
resetText: {
|
|
253
|
+
type: PropType<string | null>;
|
|
254
|
+
default: string;
|
|
255
|
+
};
|
|
256
|
+
submitMethod: {
|
|
257
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
|
258
|
+
};
|
|
259
|
+
tooltipMessage: {
|
|
260
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
|
261
|
+
default: undefined;
|
|
262
|
+
};
|
|
263
|
+
}>> & {
|
|
264
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
265
|
+
onReset?: (() => any) | undefined;
|
|
266
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
267
|
+
}, "footer" | "inline" | "model" | "tooltipMessage" | "submitText" | "resetText">;
|
|
268
|
+
$attrs: {
|
|
269
|
+
[x: string]: unknown;
|
|
270
|
+
};
|
|
271
|
+
$refs: {
|
|
272
|
+
[x: string]: unknown;
|
|
273
|
+
};
|
|
274
|
+
$slots: Readonly<{
|
|
275
|
+
[name: string]: Slot<any> | undefined;
|
|
276
|
+
}>;
|
|
277
|
+
$root: ComponentPublicInstance | null;
|
|
278
|
+
$parent: ComponentPublicInstance | null;
|
|
279
|
+
$emit: ((event: "change", model: Record<string, any>) => void) & ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void);
|
|
280
|
+
$el: any;
|
|
281
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
282
|
+
model: {
|
|
283
|
+
type: PropType<Record<string, any>>;
|
|
284
|
+
default(): any;
|
|
285
|
+
};
|
|
286
|
+
inline: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
};
|
|
289
|
+
inlineColumns: {
|
|
290
|
+
type: NumberConstructor;
|
|
291
|
+
};
|
|
292
|
+
footer: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: boolean;
|
|
295
|
+
};
|
|
296
|
+
submitText: {
|
|
297
|
+
type: PropType<string | null>;
|
|
298
|
+
default: string;
|
|
299
|
+
};
|
|
300
|
+
resetText: {
|
|
301
|
+
type: PropType<string | null>;
|
|
302
|
+
default: string;
|
|
303
|
+
};
|
|
304
|
+
submitMethod: {
|
|
305
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
|
306
|
+
};
|
|
307
|
+
tooltipMessage: {
|
|
308
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
|
309
|
+
default: undefined;
|
|
310
|
+
};
|
|
311
|
+
}>> & {
|
|
312
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
313
|
+
onReset?: (() => any) | undefined;
|
|
314
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
formRef: Ref<any, any>;
|
|
317
|
+
model: FormModel;
|
|
318
|
+
submit: () => Promise<void>;
|
|
319
|
+
reset: (fields?: string[] | string) => void;
|
|
320
|
+
validate: () => Promise<any>;
|
|
321
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
322
|
+
change: (model: Record<string, any>) => void;
|
|
323
|
+
reset: () => void;
|
|
324
|
+
submit: (model: Record<string, any>) => void;
|
|
325
|
+
}, string, {
|
|
326
|
+
footer: boolean;
|
|
327
|
+
inline: boolean;
|
|
328
|
+
model: Record<string, any>;
|
|
329
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
|
330
|
+
submitText: string | null;
|
|
331
|
+
resetText: string | null;
|
|
332
|
+
}, {}, string, {}> & {
|
|
333
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
334
|
+
created?: (() => void) | (() => void)[];
|
|
335
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
336
|
+
mounted?: (() => void) | (() => void)[];
|
|
337
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
338
|
+
updated?: (() => void) | (() => void)[];
|
|
339
|
+
activated?: (() => void) | (() => void)[];
|
|
340
|
+
deactivated?: (() => void) | (() => void)[];
|
|
341
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
342
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
343
|
+
destroyed?: (() => void) | (() => void)[];
|
|
344
|
+
unmounted?: (() => void) | (() => void)[];
|
|
345
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
346
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
347
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
348
|
+
};
|
|
349
|
+
$forceUpdate: () => void;
|
|
350
|
+
$nextTick: nextTick;
|
|
351
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: WatchOptions): WatchStopHandle;
|
|
352
|
+
} & Omit<Readonly< ExtractPropTypes<{
|
|
353
|
+
model: {
|
|
354
|
+
type: PropType<Record<string, any>>;
|
|
355
|
+
default(): any;
|
|
356
|
+
};
|
|
357
|
+
inline: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
};
|
|
360
|
+
inlineColumns: {
|
|
361
|
+
type: NumberConstructor;
|
|
362
|
+
};
|
|
363
|
+
footer: {
|
|
364
|
+
type: BooleanConstructor;
|
|
365
|
+
default: boolean;
|
|
366
|
+
};
|
|
367
|
+
submitText: {
|
|
368
|
+
type: PropType<string | null>;
|
|
369
|
+
default: string;
|
|
370
|
+
};
|
|
371
|
+
resetText: {
|
|
372
|
+
type: PropType<string | null>;
|
|
373
|
+
default: string;
|
|
374
|
+
};
|
|
375
|
+
submitMethod: {
|
|
376
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
|
377
|
+
};
|
|
378
|
+
tooltipMessage: {
|
|
379
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
|
380
|
+
default: undefined;
|
|
381
|
+
};
|
|
382
|
+
}>> & {
|
|
383
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
384
|
+
onReset?: (() => any) | undefined;
|
|
385
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
386
|
+
}, "reset" | "submit" | "model" | "validate" | "formRef"> & ShallowUnwrapRef<{
|
|
387
|
+
formRef: Ref<any, any>;
|
|
201
388
|
model: FormModel;
|
|
202
389
|
submit: () => Promise<void>;
|
|
203
390
|
reset: (fields?: string[] | string) => void;
|
|
@@ -3,7 +3,7 @@ import { Emits } from '../shared';
|
|
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
|
4
4
|
|
|
5
5
|
export declare function useCollapsed(props: QueryFormProps, emit: Emits<QueryFormEmits>): {
|
|
6
|
-
collapsed: Ref<boolean>;
|
|
6
|
+
collapsed: Ref<boolean, boolean>;
|
|
7
7
|
toggleCollapsed: () => Promise<void>;
|
|
8
8
|
collapsedClass: ComputedRef<{
|
|
9
9
|
'is-collapsed': boolean | undefined;
|
|
@@ -97,7 +97,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
97
97
|
readonly trigger: EpPropFinalized<(new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
98
98
|
readonly effect: {
|
|
99
99
|
readonly default: "light";
|
|
100
|
-
readonly type: PropType<
|
|
100
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => ("light" | "dark") & {}) | (() => "light" | "dark") | ((new (...args: any[]) => ("light" | "dark") & {}) | (() => "light" | "dark"))[], unknown, unknown>>;
|
|
101
101
|
readonly required: false;
|
|
102
102
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
103
|
readonly __epPropKey: true;
|
|
@@ -120,7 +120,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
120
120
|
readonly tabindex: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
121
121
|
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
122
122
|
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
123
|
-
readonly disabled:
|
|
123
|
+
readonly disabled: BooleanConstructor;
|
|
124
124
|
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
125
125
|
readonly buttonProps: {
|
|
126
126
|
readonly type: PropType<ButtonProps>;
|
|
@@ -202,7 +202,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
202
202
|
readonly trigger: EpPropFinalized<(new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => Arrayable<TooltipTriggerType> & {}) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
203
203
|
readonly effect: {
|
|
204
204
|
readonly default: "light";
|
|
205
|
-
readonly type: PropType<
|
|
205
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => ("light" | "dark") & {}) | (() => "light" | "dark") | ((new (...args: any[]) => ("light" | "dark") & {}) | (() => "light" | "dark"))[], unknown, unknown>>;
|
|
206
206
|
readonly required: false;
|
|
207
207
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
208
208
|
readonly __epPropKey: true;
|
|
@@ -225,7 +225,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
225
225
|
readonly tabindex: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
226
226
|
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
227
227
|
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
228
|
-
readonly disabled:
|
|
228
|
+
readonly disabled: BooleanConstructor;
|
|
229
229
|
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
230
230
|
readonly buttonProps: {
|
|
231
231
|
readonly type: PropType<ButtonProps>;
|
|
@@ -65,7 +65,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
65
65
|
}, {
|
|
66
66
|
click: () => void;
|
|
67
67
|
submit: () => void;
|
|
68
|
-
data: Ref<any>;
|
|
68
|
+
data: Ref<any, any>;
|
|
69
69
|
change: (params: any) => void;
|
|
70
70
|
$vtjDynamicSlots: () => string[];
|
|
71
71
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/ui
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.97
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.97";
|