@vtj/ui 0.8.135 → 0.8.137
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 +2703 -2686
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/types/adapter.d.ts +0 -1
- package/types/components/action/Action.d.ts +12 -12
- package/types/components/action/Trigger.d.ts +7 -7
- package/types/components/action/hooks.d.ts +0 -1
- package/types/components/action/index.d.ts +0 -1
- package/types/components/action/types.d.ts +0 -1
- package/types/components/action-bar/ActionBar.d.ts +12 -11
- package/types/components/action-bar/index.d.ts +0 -1
- package/types/components/action-bar/types.d.ts +0 -1
- package/types/components/attachment/Attachment.d.ts +536 -23
- package/types/components/attachment/index.d.ts +0 -1
- package/types/components/attachment/props.d.ts +0 -1
- package/types/components/attachment/types.d.ts +0 -1
- package/types/components/attachment/util.d.ts +0 -1
- package/types/components/captcha/Captcha.d.ts +13 -36
- package/types/components/captcha/index.d.ts +0 -1
- package/types/components/captcha/types.d.ts +0 -1
- package/types/components/container/Container.d.ts +15 -8
- package/types/components/container/index.d.ts +0 -1
- package/types/components/container/types.d.ts +0 -1
- package/types/components/data-item/DataItem.d.ts +25 -18
- package/types/components/data-item/index.d.ts +0 -1
- package/types/components/data-item/types.d.ts +0 -1
- package/types/components/dialog/Dialog.d.ts +387 -33
- package/types/components/dialog/create.d.ts +0 -1
- package/types/components/dialog/hooks.d.ts +0 -1
- package/types/components/dialog/index.d.ts +0 -1
- package/types/components/dialog/types.d.ts +0 -1
- package/types/components/dialog-form/DialogForm.d.ts +946 -19
- package/types/components/dialog-form/index.d.ts +0 -1
- package/types/components/dialog-form/types.d.ts +0 -1
- package/types/components/dialog-grid/DialogGrid.d.ts +2117 -92
- package/types/components/dialog-grid/index.d.ts +0 -1
- package/types/components/dialog-grid/types.d.ts +0 -1
- package/types/components/field/Field.d.ts +235 -32
- package/types/components/field/editors/CheckboxEditor.d.ts +3 -27
- package/types/components/field/editors/RadioEditor.d.ts +3 -27
- package/types/components/field/editors/SelectEditor.d.ts +14 -31
- package/types/components/field/editors/index.d.ts +0 -1
- package/types/components/field/hooks/useEditor.d.ts +0 -1
- package/types/components/field/index.d.ts +0 -1
- package/types/components/field/types.d.ts +1 -2
- package/types/components/form/Form.d.ts +244 -18
- package/types/components/form/index.d.ts +0 -1
- package/types/components/form/types.d.ts +0 -1
- package/types/components/grid/Grid.d.ts +157 -140
- package/types/components/grid/hooks/useColumnSortable.d.ts +1 -2
- package/types/components/grid/hooks/useCustom.d.ts +0 -1
- package/types/components/grid/hooks/useEditRender.d.ts +3 -4
- package/types/components/grid/hooks/useFilterRender.d.ts +0 -1
- package/types/components/grid/hooks/useLoader.d.ts +103 -104
- package/types/components/grid/hooks/useProps.d.ts +0 -1
- package/types/components/grid/hooks/useRowSortable.d.ts +1 -2
- package/types/components/grid/hooks/useState.d.ts +103 -104
- package/types/components/grid/hooks/useVxe.d.ts +0 -1
- package/types/components/grid/index.d.ts +0 -1
- package/types/components/grid/props.d.ts +0 -1
- package/types/components/grid/renderers/actions.d.ts +0 -1
- package/types/components/grid/renderers/components/DateEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/DateFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/GridEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectFilter.d.ts +2 -12
- package/types/components/grid/renderers/date.d.ts +0 -1
- package/types/components/grid/renderers/grid.d.ts +0 -1
- package/types/components/grid/renderers/image.d.ts +0 -1
- package/types/components/grid/renderers/index.d.ts +0 -1
- package/types/components/grid/renderers/input.d.ts +0 -1
- package/types/components/grid/renderers/interceptors.d.ts +0 -1
- package/types/components/grid/renderers/link.d.ts +0 -1
- package/types/components/grid/renderers/number.d.ts +0 -1
- package/types/components/grid/renderers/picker.d.ts +0 -1
- package/types/components/grid/renderers/select.d.ts +0 -1
- package/types/components/grid/renderers/shared.d.ts +0 -1
- package/types/components/grid/renderers/tag.d.ts +0 -1
- package/types/components/grid/renderers/text.d.ts +0 -1
- package/types/components/grid/types.d.ts +0 -1
- package/types/components/grid/utils.d.ts +0 -1
- package/types/components/grid-editor/GridEditor.d.ts +9 -33
- package/types/components/grid-editor/index.d.ts +0 -1
- package/types/components/grid-editor/types.d.ts +0 -1
- package/types/components/header/Header.d.ts +15 -10
- package/types/components/header/index.d.ts +0 -1
- package/types/components/header/types.d.ts +0 -1
- package/types/components/icon/Icon.d.ts +12 -7
- package/types/components/icon/index.d.ts +0 -1
- package/types/components/icon/types.d.ts +0 -1
- package/types/components/import-button/ImportButton.d.ts +15 -10
- package/types/components/import-button/index.d.ts +0 -1
- package/types/components/import-button/props.d.ts +0 -1
- package/types/components/import-button/types.d.ts +0 -1
- package/types/components/input-unit/InputUnit.d.ts +11 -11
- package/types/components/input-unit/index.d.ts +0 -1
- package/types/components/input-unit/types.d.ts +0 -1
- package/types/components/list/List.d.ts +33 -21
- package/types/components/list/index.d.ts +0 -1
- package/types/components/list/types.d.ts +0 -1
- package/types/components/mask/Mask.d.ts +57 -14
- package/types/components/mask/components/Avatar.d.ts +9 -13
- package/types/components/mask/components/Brand.d.ts +11 -27
- package/types/components/mask/components/Content.d.ts +9 -14
- package/types/components/mask/components/Menu.d.ts +6 -28
- package/types/components/mask/components/Sidebar.d.ts +10 -14
- package/types/components/mask/components/SwitchBar.d.ts +5 -28
- package/types/components/mask/components/Tabs.d.ts +10 -20
- package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
- package/types/components/mask/components/Toolbar.d.ts +12 -29
- package/types/components/mask/defineTab.d.ts +0 -1
- package/types/components/mask/hooks/useContent.d.ts +1 -2
- package/types/components/mask/hooks/useHome.d.ts +0 -1
- package/types/components/mask/hooks/useMenus.d.ts +1 -2
- package/types/components/mask/hooks/useSidebar.d.ts +3 -3
- package/types/components/mask/hooks/useTabs.d.ts +3 -4
- package/types/components/mask/index.d.ts +0 -1
- package/types/components/mask/types.d.ts +0 -1
- package/types/components/menu/Menu.d.ts +6 -30
- package/types/components/menu/MenuItem.d.ts +2 -12
- package/types/components/menu/components.d.ts +0 -1
- package/types/components/menu/index.d.ts +0 -1
- package/types/components/menu/types.d.ts +0 -1
- package/types/components/panel/Panel.d.ts +337 -14
- package/types/components/panel/index.d.ts +0 -1
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/picker/Dialog.d.ts +4 -14
- package/types/components/picker/Picker.d.ts +20 -18
- package/types/components/picker/hooks.d.ts +6 -4
- package/types/components/picker/index.d.ts +0 -1
- package/types/components/picker/props.d.ts +1 -2
- package/types/components/picker/types.d.ts +0 -1
- package/types/components/qr-code/QrCode.d.ts +15 -34
- package/types/components/qr-code/index.d.ts +0 -1
- package/types/components/qr-code/types.d.ts +0 -1
- package/types/components/query-form/QueryForm.d.ts +442 -32
- package/types/components/query-form/hooks.d.ts +1 -2
- package/types/components/query-form/index.d.ts +0 -1
- package/types/components/query-form/props.d.ts +0 -1
- package/types/components/query-form/types.d.ts +0 -1
- package/types/components/shared.d.ts +0 -1
- package/types/components/startup/Startup.d.ts +5 -5
- package/types/components/startup/index.d.ts +0 -1
- package/types/components/startup/types.d.ts +0 -1
- package/types/components/tabs/Tabs.d.ts +48 -42
- package/types/components/tabs/index.d.ts +0 -1
- package/types/components/tabs/types.d.ts +0 -1
- package/types/components/test/Test.d.ts +51 -46
- package/types/components/test/index.d.ts +0 -1
- package/types/components/test/types.d.ts +0 -1
- package/types/components/verify/Verify.d.ts +14 -38
- package/types/components/verify/index.d.ts +0 -1
- package/types/directives/vDraggable.d.ts +0 -1
- package/types/directives/vResizable.d.ts +0 -1
- package/types/hooks/useDisabled.d.ts +0 -1
- package/types/hooks/useIcon.d.ts +0 -1
- package/types/hooks/useLoader.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/install.d.ts +1 -1
- package/types/list.d.ts +0 -1
- package/types/utils/install.d.ts +0 -1
- package/types/version.d.ts +2 -2
@@ -1,7 +1,6 @@
|
|
1
1
|
import { ComponentPropsType } from '../shared';
|
2
2
|
import { attachmentProps } from './props';
|
3
3
|
import { UploaderResponse } from '../../adapter';
|
4
|
-
|
5
4
|
export type AttachmentFileType = 'img' | 'css' | 'excel' | 'word' | 'ppt' | 'pdf' | 'js' | 'zip' | 'video' | 'audio' | 'unknow';
|
6
5
|
export interface AttachmentFile extends UploaderResponse {
|
7
6
|
url: string;
|
@@ -1,39 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
declare
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
type: PropType<string>;
|
14
|
-
default: string;
|
15
|
-
};
|
16
|
-
validate: {
|
17
|
-
type: PropType<(value: string) => MaybePromise<boolean>>;
|
18
|
-
};
|
19
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
20
|
-
modelValue: PropType<any>;
|
21
|
-
src: {
|
22
|
-
type: PropType<() => MaybePromise<string>>;
|
23
|
-
};
|
24
|
-
maxlength: {
|
25
|
-
type: PropType<number>;
|
26
|
-
default: number;
|
27
|
-
};
|
28
|
-
placeholder: {
|
29
|
-
type: PropType<string>;
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
validate: {
|
33
|
-
type: PropType<(value: string) => MaybePromise<boolean>>;
|
34
|
-
};
|
35
|
-
}>>, {
|
1
|
+
import { CaptchaProps } from './types';
|
2
|
+
import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
declare let __VLS_typeProps: CaptchaProps;
|
4
|
+
declare const modelValue: ModelRef<string | undefined, string, string | undefined, string | undefined>;
|
5
|
+
type __VLS_PublicProps = {
|
6
|
+
modelValue?: typeof modelValue['value'];
|
7
|
+
} & typeof __VLS_typeProps;
|
8
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
"update:modelValue": (modelValue: string | undefined) => any;
|
10
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
11
|
+
"onUpdate:modelValue"?: ((modelValue: string | undefined) => any) | undefined;
|
12
|
+
}>, {
|
36
13
|
maxlength: number;
|
37
14
|
placeholder: string;
|
38
|
-
}, {}>;
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
39
16
|
export default _default;
|
@@ -1,9 +1,16 @@
|
|
1
|
-
import { DefineComponent,
|
1
|
+
import { ComputedRef, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from './types';
|
3
3
|
declare function __VLS_template(): {
|
4
|
-
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {
|
8
|
+
elRef: unknown;
|
9
|
+
};
|
10
|
+
attrs: Partial<{}>;
|
5
11
|
};
|
6
|
-
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
13
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
7
14
|
tag: {
|
8
15
|
type: StringConstructor;
|
9
16
|
default: string;
|
@@ -70,9 +77,9 @@ declare const __VLS_component: DefineComponent<{
|
|
70
77
|
autoPointer: {
|
71
78
|
type: BooleanConstructor;
|
72
79
|
};
|
73
|
-
}
|
80
|
+
}>, {
|
74
81
|
$vtjEl: ComputedRef<any>;
|
75
|
-
},
|
82
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
76
83
|
tag: {
|
77
84
|
type: StringConstructor;
|
78
85
|
default: string;
|
@@ -139,7 +146,7 @@ declare const __VLS_component: DefineComponent<{
|
|
139
146
|
autoPointer: {
|
140
147
|
type: BooleanConstructor;
|
141
148
|
};
|
142
|
-
}
|
149
|
+
}>> & Readonly<{}>, {
|
143
150
|
padding: boolean;
|
144
151
|
tag: string;
|
145
152
|
wrap: ContainerWrap;
|
@@ -155,8 +162,8 @@ declare const __VLS_component: DefineComponent<{
|
|
155
162
|
alignSelf: ContainerAlignItems | "auto";
|
156
163
|
gap: boolean;
|
157
164
|
autoPointer: boolean;
|
158
|
-
}, {}>;
|
159
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
165
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
166
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
160
167
|
export default _default;
|
161
168
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
162
169
|
new (): {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { ComponentPropsType } from '../shared';
|
3
3
|
import { default as Container } from './Container';
|
4
|
-
|
5
4
|
export type ContainerDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
6
5
|
export type ContainerWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
7
6
|
export type ContainerJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
@@ -1,18 +1,25 @@
|
|
1
|
-
import { ActionBarProps, ActionMenuItem
|
2
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
1
|
+
import { ActionBarProps, ActionMenuItem } from '../';
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
import { IconParam } from '../icon';
|
4
|
+
import { ActionBarItems } from '../action-bar';
|
5
|
+
import { ActionMode } from '../action';
|
3
6
|
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
4
7
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
5
8
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
6
9
|
import { BaseSize, BaseType } from '../shared';
|
7
|
-
|
8
10
|
declare function __VLS_template(): {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
slots: {
|
12
|
+
image?(_: {}): any;
|
13
|
+
title?(_: {}): any;
|
14
|
+
description?(_: {}): any;
|
15
|
+
default?(_: {}): any;
|
16
|
+
actions?(_: {}): any;
|
17
|
+
};
|
18
|
+
refs: {};
|
19
|
+
attrs: Partial<{}>;
|
14
20
|
};
|
15
|
-
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
22
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
16
23
|
direction: {
|
17
24
|
type: PropType<"row" | "column">;
|
18
25
|
default: string;
|
@@ -50,7 +57,7 @@ declare const __VLS_component: DefineComponent<{
|
|
50
57
|
onTitleClick: {
|
51
58
|
type: FunctionConstructor;
|
52
59
|
};
|
53
|
-
}
|
60
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
54
61
|
actionClick: (action: Readonly<Partial< ExtractPropTypes<{
|
55
62
|
name: {
|
56
63
|
type: StringConstructor;
|
@@ -139,7 +146,7 @@ declare const __VLS_component: DefineComponent<{
|
|
139
146
|
draggable: {
|
140
147
|
type: BooleanConstructor;
|
141
148
|
};
|
142
|
-
}>>>) =>
|
149
|
+
}>>>) => any;
|
143
150
|
actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
|
144
151
|
name: {
|
145
152
|
type: StringConstructor;
|
@@ -228,9 +235,9 @@ declare const __VLS_component: DefineComponent<{
|
|
228
235
|
draggable: {
|
229
236
|
type: BooleanConstructor;
|
230
237
|
};
|
231
|
-
}>>>, menu: ActionMenuItem) =>
|
232
|
-
imageClick: () =>
|
233
|
-
titleClick: () =>
|
238
|
+
}>>>, menu: ActionMenuItem) => any;
|
239
|
+
imageClick: () => any;
|
240
|
+
titleClick: () => any;
|
234
241
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
235
242
|
direction: {
|
236
243
|
type: PropType<"row" | "column">;
|
@@ -269,7 +276,7 @@ declare const __VLS_component: DefineComponent<{
|
|
269
276
|
onTitleClick: {
|
270
277
|
type: FunctionConstructor;
|
271
278
|
};
|
272
|
-
}>> & {
|
279
|
+
}>> & Readonly<{
|
273
280
|
onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
|
274
281
|
name: {
|
275
282
|
type: StringConstructor;
|
@@ -450,11 +457,11 @@ declare const __VLS_component: DefineComponent<{
|
|
450
457
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
451
458
|
onImageClick?: (() => any) | undefined;
|
452
459
|
onTitleClick?: (() => any) | undefined;
|
453
|
-
}
|
460
|
+
}>, {
|
454
461
|
split: boolean;
|
455
462
|
direction: "row" | "column";
|
456
|
-
}, {}>;
|
457
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
463
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
464
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
458
465
|
export default _default;
|
459
466
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
460
467
|
new (): {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { ComponentPropsType } from '../shared';
|
3
3
|
import { IconParam, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
|
4
|
-
|
5
4
|
export declare const dataItemProps: {
|
6
5
|
direction: {
|
7
6
|
type: PropType<"row" | "column">;
|