@vtj/ui 0.8.136 → 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 +2258 -2258
- package/dist/index.umd.js +12 -12
- 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
@@ -3,7 +3,6 @@ import { gridProps } from './props';
|
|
3
3
|
import { default as Sortable } from 'sortablejs';
|
4
4
|
import { default as Grid } from './Grid';
|
5
5
|
import { VxeGridInstance, VxeTableDefines, VxeGridPropTypes, VxeTablePropTypes, VxeGridDefines, VxeColumnPropTypes, VxeGridEvents, VxeGridProps, VxeGlobalRendererHandles, VxeColumnSlotTypes, DefineRendererOption, VxeGlobalInterceptorHandles, RendererOptions } from 'vxe-table';
|
6
|
-
|
7
6
|
export type GridSortableOptions = Sortable.Options;
|
8
7
|
export type GridSortableRowInfo = {
|
9
8
|
rowid: string;
|
@@ -2,7 +2,6 @@ import { default as Sortable } from 'sortablejs';
|
|
2
2
|
import { GridSortableOptions, VxeGridInstance, GridEmits, GridSortableEvent, VxeTableDefines, GridColumns, GridCustomInfo, VxeGlobalRendererHandles } from './types';
|
3
3
|
import { Emits } from '../shared';
|
4
4
|
import { VxeTableDataRow } from 'vxe-table';
|
5
|
-
|
6
5
|
export declare function createSortable(el: HTMLElement, options?: GridSortableOptions): Sortable;
|
7
6
|
export declare function createRowSortHandler(grid: VxeGridInstance, emit: Emits<GridEmits>): (e: Sortable.SortableEvent) => void;
|
8
7
|
export declare function createColumnMoveHandler(grid: VxeGridInstance): (e: Sortable.MoveEvent) => boolean | void | 1 | -1;
|
@@ -1,42 +1,18 @@
|
|
1
1
|
import { GridEditorProps } from './types';
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps,
|
3
|
-
|
4
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<GridEditorProps>, {
|
5
|
-
plus: boolean;
|
6
|
-
minus: boolean;
|
7
|
-
}>, {
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
declare const _default: DefineComponent<GridEditorProps, {
|
8
4
|
open: () => void;
|
9
|
-
dialogVisible: Ref<boolean>;
|
5
|
+
dialogVisible: Ref<boolean, boolean>;
|
10
6
|
focus: () => void;
|
11
7
|
blur: () => void;
|
12
|
-
},
|
13
|
-
change: (model: any) =>
|
14
|
-
"update:modelValue": (model: any) =>
|
15
|
-
}, string, PublicProps, Readonly<
|
16
|
-
plus: boolean;
|
17
|
-
minus: boolean;
|
18
|
-
}>>> & {
|
8
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
change: (model: any) => any;
|
10
|
+
"update:modelValue": (model: any) => any;
|
11
|
+
}, string, PublicProps, Readonly<GridEditorProps> & Readonly<{
|
19
12
|
onChange?: ((model: any) => any) | undefined;
|
20
13
|
"onUpdate:modelValue"?: ((model: any) => any) | undefined;
|
21
|
-
}
|
14
|
+
}>, {
|
22
15
|
plus: boolean;
|
23
16
|
minus: boolean;
|
24
|
-
}, {}>;
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
25
18
|
export default _default;
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
27
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
29
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
30
|
-
} : {
|
31
|
-
type: PropType<T[K]>;
|
32
|
-
required: true;
|
33
|
-
};
|
34
|
-
};
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
37
|
-
default: D[K];
|
38
|
-
}> : P[K];
|
39
|
-
};
|
40
|
-
type __VLS_Prettify<T> = {
|
41
|
-
[K in keyof T]: T[K];
|
42
|
-
} & {};
|
@@ -1,12 +1,17 @@
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { BaseSize } from '../shared';
|
3
|
-
import { IconParam } from '../';
|
3
|
+
import { IconParam } from '../icon';
|
4
4
|
declare function __VLS_template(): {
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
slots: {
|
6
|
+
default?(_: {}): any;
|
7
|
+
subtitle?(_: {}): any;
|
8
|
+
actions?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {};
|
11
|
+
attrs: Partial<{}>;
|
8
12
|
};
|
9
|
-
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
14
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
10
15
|
size: {
|
11
16
|
type: PropType<BaseSize>;
|
12
17
|
default: string;
|
@@ -27,7 +32,7 @@ declare const __VLS_component: DefineComponent<{
|
|
27
32
|
more: {
|
28
33
|
type: BooleanConstructor;
|
29
34
|
};
|
30
|
-
}
|
35
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
31
36
|
size: {
|
32
37
|
type: PropType<BaseSize>;
|
33
38
|
default: string;
|
@@ -48,13 +53,13 @@ declare const __VLS_component: DefineComponent<{
|
|
48
53
|
more: {
|
49
54
|
type: BooleanConstructor;
|
50
55
|
};
|
51
|
-
}
|
56
|
+
}>> & Readonly<{}>, {
|
52
57
|
size: BaseSize;
|
53
58
|
content: string;
|
54
59
|
border: boolean;
|
55
60
|
more: boolean;
|
56
|
-
}, {}>;
|
57
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
61
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
58
63
|
export default _default;
|
59
64
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
60
65
|
new (): {
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { DefineComponent, PropType, VNode, ComponentOptionsMixin, PublicProps,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { IconSize } from './types';
|
3
3
|
declare function __VLS_template(): {
|
4
|
-
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
attrs: Partial<{}>;
|
5
9
|
};
|
6
|
-
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
7
12
|
icon: {
|
8
13
|
type: PropType<string | object | VNode>;
|
9
14
|
};
|
@@ -26,7 +31,7 @@ declare const __VLS_component: DefineComponent<{
|
|
26
31
|
radius: {
|
27
32
|
type: NumberConstructor;
|
28
33
|
};
|
29
|
-
}
|
34
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
30
35
|
icon: {
|
31
36
|
type: PropType<string | object | VNode>;
|
32
37
|
};
|
@@ -49,10 +54,10 @@ declare const __VLS_component: DefineComponent<{
|
|
49
54
|
radius: {
|
50
55
|
type: NumberConstructor;
|
51
56
|
};
|
52
|
-
}
|
57
|
+
}>> & Readonly<{}>, {
|
53
58
|
size: IconSize;
|
54
|
-
}, {}>;
|
55
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
59
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
60
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
56
61
|
export default _default;
|
57
62
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
58
63
|
new (): {
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { ImportButtonParserType, ImportButtonParser } from './types';
|
3
3
|
declare function __VLS_template(): {
|
4
|
-
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
attrs: Partial<{}>;
|
5
9
|
};
|
6
|
-
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
7
12
|
uploader: {
|
8
13
|
type: FunctionConstructor;
|
9
14
|
};
|
@@ -16,9 +21,9 @@ declare const __VLS_component: DefineComponent<{
|
|
16
21
|
parser: {
|
17
22
|
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
18
23
|
};
|
19
|
-
}
|
20
|
-
success: (content: any) =>
|
21
|
-
fail: (e: any) =>
|
24
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
25
|
+
success: (content: any) => any;
|
26
|
+
fail: (e: any) => any;
|
22
27
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
23
28
|
uploader: {
|
24
29
|
type: FunctionConstructor;
|
@@ -32,13 +37,13 @@ declare const __VLS_component: DefineComponent<{
|
|
32
37
|
parser: {
|
33
38
|
type: PropType< ImportButtonParserType | ImportButtonParser>;
|
34
39
|
};
|
35
|
-
}>> & {
|
40
|
+
}>> & Readonly<{
|
36
41
|
onSuccess?: ((content: any) => any) | undefined;
|
37
42
|
onFail?: ((e: any) => any) | undefined;
|
38
|
-
}
|
43
|
+
}>, {
|
39
44
|
multiple: boolean;
|
40
|
-
}, {}>;
|
41
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
45
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
42
47
|
export default _default;
|
43
48
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
44
49
|
new (): {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { InputUnitOption } from './types';
|
3
|
-
declare const _default: DefineComponent<{
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
4
4
|
units: {
|
5
5
|
type: PropType<Array<string | InputUnitOption>>;
|
6
6
|
};
|
@@ -24,17 +24,17 @@ declare const _default: DefineComponent<{
|
|
24
24
|
selectProps: {
|
25
25
|
type: PropType<Record<string, any>>;
|
26
26
|
};
|
27
|
-
}
|
27
|
+
}>, {
|
28
28
|
parser: (value?: string | number) => {
|
29
29
|
value: string | number | undefined;
|
30
30
|
unit: string | undefined;
|
31
31
|
};
|
32
32
|
formatValue: (value?: string | number) => string | number | undefined;
|
33
|
-
},
|
34
|
-
change: (args_0: string | number | undefined) =>
|
35
|
-
"update:modelValue": (args_0: string | number | undefined) =>
|
36
|
-
"update:unit": (args_0: string | number | undefined) =>
|
37
|
-
"unit-change": (args_0: string | undefined) =>
|
33
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
34
|
+
change: (args_0: string | number | undefined) => any;
|
35
|
+
"update:modelValue": (args_0: string | number | undefined) => any;
|
36
|
+
"update:unit": (args_0: string | number | undefined) => any;
|
37
|
+
"unit-change": (args_0: string | undefined) => any;
|
38
38
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
39
39
|
units: {
|
40
40
|
type: PropType<Array<string | InputUnitOption>>;
|
@@ -59,13 +59,13 @@ declare const _default: DefineComponent<{
|
|
59
59
|
selectProps: {
|
60
60
|
type: PropType<Record<string, any>>;
|
61
61
|
};
|
62
|
-
}>> & {
|
62
|
+
}>> & Readonly<{
|
63
63
|
onChange?: ((args_0: string | number | undefined) => any) | undefined;
|
64
64
|
"onUpdate:modelValue"?: ((args_0: string | number | undefined) => any) | undefined;
|
65
65
|
"onUpdate:unit"?: ((args_0: string | number | undefined) => any) | undefined;
|
66
66
|
"onUnit-change"?: ((args_0: string | undefined) => any) | undefined;
|
67
|
-
}
|
67
|
+
}>, {
|
68
68
|
appendWidth: number;
|
69
69
|
withUnit: boolean;
|
70
|
-
}, {}>;
|
70
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
71
71
|
export default _default;
|
@@ -1,19 +1,31 @@
|
|
1
1
|
import { ListData, ListState, ListInfiniteScroll } from './types';
|
2
|
-
import { DefineComponent, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps,
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
3
|
import { DataLoader } from '..';
|
4
4
|
import { PaginationProps } from 'element-plus';
|
5
5
|
import { UseVirtualListItem } from '@vueuse/core';
|
6
|
-
|
7
6
|
declare function __VLS_template(): {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
slots: {
|
8
|
+
empty?(_: {}): any;
|
9
|
+
default?(_: {
|
10
|
+
item: any;
|
11
|
+
index: number;
|
12
|
+
}): any;
|
13
|
+
default?(_: {
|
14
|
+
item: any;
|
15
|
+
index: number;
|
16
|
+
}): any;
|
17
|
+
loading?(_: {}): any;
|
18
|
+
loading?(_: {}): any;
|
19
|
+
nomore?(_: {}): any;
|
20
|
+
nomore?(_: {}): any;
|
21
|
+
};
|
22
|
+
refs: {
|
23
|
+
wrapperRef: HTMLDivElement;
|
24
|
+
};
|
25
|
+
attrs: Partial<{}>;
|
15
26
|
};
|
16
|
-
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
28
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
17
29
|
data: {
|
18
30
|
type: PropType<DataLoader<ListData, ListState>>;
|
19
31
|
default(): never[];
|
@@ -46,21 +58,21 @@ declare const __VLS_component: DefineComponent<{
|
|
46
58
|
infiniteScroll: {
|
47
59
|
type: PropType<boolean | ListInfiniteScroll>;
|
48
60
|
};
|
49
|
-
}
|
50
|
-
list: Ref< UseVirtualListItem<any>[]>;
|
61
|
+
}>, {
|
62
|
+
list: Ref< UseVirtualListItem<any>[], UseVirtualListItem<any>[]>;
|
51
63
|
scrollTo: (index: number) => void;
|
52
|
-
wrapperRef: Ref<any>;
|
53
|
-
loading: Ref<boolean>;
|
64
|
+
wrapperRef: Ref<any, any>;
|
65
|
+
loading: Ref<boolean, boolean>;
|
54
66
|
state: {
|
55
67
|
page: number;
|
56
68
|
pageSize: number;
|
57
69
|
};
|
58
70
|
pageCount: ComputedRef<number>;
|
59
|
-
nomore: Ref<boolean>;
|
71
|
+
nomore: Ref<boolean, boolean>;
|
60
72
|
data: ShallowRef<ListData>;
|
61
73
|
getKey: (item: any) => any;
|
62
|
-
},
|
63
|
-
load: (state: ListState) =>
|
74
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
75
|
+
load: (state: ListState) => any;
|
64
76
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
65
77
|
data: {
|
66
78
|
type: PropType<DataLoader<ListData, ListState>>;
|
@@ -94,16 +106,16 @@ declare const __VLS_component: DefineComponent<{
|
|
94
106
|
infiniteScroll: {
|
95
107
|
type: PropType<boolean | ListInfiniteScroll>;
|
96
108
|
};
|
97
|
-
}>> & {
|
109
|
+
}>> & Readonly<{
|
98
110
|
onLoad?: ((state: ListState) => any) | undefined;
|
99
|
-
}
|
111
|
+
}>, {
|
100
112
|
data: DataLoader<ListData, ListState>;
|
101
113
|
width: string | number;
|
102
114
|
height: string | number;
|
103
115
|
page: number;
|
104
116
|
pageSize: number;
|
105
|
-
}, {}>;
|
106
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
117
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
118
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
107
119
|
export default _default;
|
108
120
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
109
121
|
new (): {
|
@@ -1,16 +1,59 @@
|
|
1
|
-
import { ActionMenuItem
|
1
|
+
import { ActionMenuItem } from '../';
|
2
2
|
import { MaskTab } from './types';
|
3
|
-
import {
|
3
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ExtractPropTypes, PropType, PublicProps } from 'vue';
|
4
|
+
import { Props } from './components/Tabs';
|
5
|
+
import { MenuDataItem } from '../menu';
|
6
|
+
import { ActionBarItems } from '../action-bar';
|
7
|
+
import { IconParam } from '../icon';
|
8
|
+
import { ActionMode } from '../action';
|
4
9
|
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
5
10
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
6
11
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
7
12
|
import { BaseSize, BaseType } from '../shared';
|
8
|
-
|
9
13
|
declare function __VLS_template(): {
|
10
|
-
|
11
|
-
|
14
|
+
slots: {
|
15
|
+
user?(_: {}): any;
|
16
|
+
default?(_: {}): any;
|
17
|
+
default?(_: {}): any;
|
18
|
+
};
|
19
|
+
refs: {
|
20
|
+
tabRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
21
|
+
onDialog?: ((tab: MaskTab) => any) | undefined;
|
22
|
+
onClick?: ((tab: MaskTab) => any) | undefined;
|
23
|
+
onRemove?: ((tab: MaskTab) => any) | undefined;
|
24
|
+
onRefresh?: ((tab: MaskTab) => any) | undefined;
|
25
|
+
onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
|
26
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
27
|
+
dialog: (tab: MaskTab) => any;
|
28
|
+
click: (tab: MaskTab) => any;
|
29
|
+
remove: (tab: MaskTab) => any;
|
30
|
+
refresh: (tab: MaskTab) => any;
|
31
|
+
toggleFavorite: (item: MenuDataItem) => any;
|
32
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< Props> & Readonly<{
|
33
|
+
onDialog?: ((tab: MaskTab) => any) | undefined;
|
34
|
+
onClick?: ((tab: MaskTab) => any) | undefined;
|
35
|
+
onRemove?: ((tab: MaskTab) => any) | undefined;
|
36
|
+
onRefresh?: ((tab: MaskTab) => any) | undefined;
|
37
|
+
onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
|
38
|
+
}>, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
39
|
+
P: {};
|
40
|
+
B: {};
|
41
|
+
D: {};
|
42
|
+
C: {};
|
43
|
+
M: {};
|
44
|
+
Defaults: {};
|
45
|
+
}, Readonly< Props> & Readonly<{
|
46
|
+
onDialog?: ((tab: MaskTab) => any) | undefined;
|
47
|
+
onClick?: ((tab: MaskTab) => any) | undefined;
|
48
|
+
onRemove?: ((tab: MaskTab) => any) | undefined;
|
49
|
+
onRefresh?: ((tab: MaskTab) => any) | undefined;
|
50
|
+
onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
|
51
|
+
}>, {}, {}, {}, {}, {}> | null;
|
52
|
+
};
|
53
|
+
attrs: Partial<{}>;
|
12
54
|
};
|
13
|
-
|
55
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
56
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
14
57
|
logo: {
|
15
58
|
type: StringConstructor;
|
16
59
|
default: string;
|
@@ -56,8 +99,8 @@ declare const __VLS_component: DefineComponent<{
|
|
56
99
|
removeFavorite: {
|
57
100
|
type: PropType<(menu: MenuDataItem) => void>;
|
58
101
|
};
|
59
|
-
}
|
60
|
-
select: (menu: MenuDataItem) =>
|
102
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
103
|
+
select: (menu: MenuDataItem) => any;
|
61
104
|
actionClick: (action: Readonly<Partial< ExtractPropTypes<{
|
62
105
|
name: {
|
63
106
|
type: StringConstructor;
|
@@ -146,7 +189,7 @@ declare const __VLS_component: DefineComponent<{
|
|
146
189
|
draggable: {
|
147
190
|
type: BooleanConstructor;
|
148
191
|
};
|
149
|
-
}>>>) =>
|
192
|
+
}>>>) => any;
|
150
193
|
actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
|
151
194
|
name: {
|
152
195
|
type: StringConstructor;
|
@@ -235,7 +278,7 @@ declare const __VLS_component: DefineComponent<{
|
|
235
278
|
draggable: {
|
236
279
|
type: BooleanConstructor;
|
237
280
|
};
|
238
|
-
}>>>, item: ActionMenuItem) =>
|
281
|
+
}>>>, item: ActionMenuItem) => any;
|
239
282
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
240
283
|
logo: {
|
241
284
|
type: StringConstructor;
|
@@ -282,7 +325,7 @@ declare const __VLS_component: DefineComponent<{
|
|
282
325
|
removeFavorite: {
|
283
326
|
type: PropType<(menu: MenuDataItem) => void>;
|
284
327
|
};
|
285
|
-
}>> & {
|
328
|
+
}>> & Readonly<{
|
286
329
|
onSelect?: ((menu: MenuDataItem) => any) | undefined;
|
287
330
|
onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
|
288
331
|
name: {
|
@@ -462,7 +505,7 @@ declare const __VLS_component: DefineComponent<{
|
|
462
505
|
type: BooleanConstructor;
|
463
506
|
};
|
464
507
|
}>>>, item: ActionMenuItem) => any) | undefined;
|
465
|
-
}
|
508
|
+
}>, {
|
466
509
|
disabled: boolean;
|
467
510
|
title: string;
|
468
511
|
menus: MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[]);
|
@@ -471,8 +514,8 @@ declare const __VLS_component: DefineComponent<{
|
|
471
514
|
home: string | MaskTab;
|
472
515
|
tabs: number;
|
473
516
|
theme: boolean;
|
474
|
-
}, {}>;
|
475
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
517
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
518
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
476
519
|
export default _default;
|
477
520
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
478
521
|
new (): {
|