@vtj/ui 0.10.6 → 0.10.7
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 +9 -8
- package/dist/index.umd.js +3 -3
- package/package.json +5 -5
- package/types/components/action/Action.d.ts +10 -3
- package/types/components/attachment/Attachment.d.ts +805 -274
- package/types/components/container/Container.d.ts +15 -178
- package/types/components/data-item/DataItem.d.ts +18 -517
- package/types/components/dialog/Dialog.d.ts +1203 -432
- package/types/components/dialog-form/DialogForm.d.ts +3049 -104
- package/types/components/dialog-grid/DialogGrid.d.ts +4907 -69
- package/types/components/field/Field.d.ts +353 -222
- package/types/components/field/editors/SelectEditor.d.ts +12 -21
- package/types/components/form/Form.d.ts +389 -116
- package/types/components/grid/Grid.d.ts +57 -787
- package/types/components/grid/renderers/components/DateEdit.d.ts +255 -2
- package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
- package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
- package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +375 -2
- package/types/components/header/Header.d.ts +14 -76
- package/types/components/icon/Icon.d.ts +74 -0
- package/types/components/import-button/ImportButton.d.ts +10 -47
- package/types/components/list/List.d.ts +30 -155
- package/types/components/mask/Mask.d.ts +562 -546
- package/types/components/mask/components/Avatar.d.ts +11 -16
- package/types/components/mask/components/Brand.d.ts +12 -17
- package/types/components/mask/components/Content.d.ts +12 -13
- package/types/components/mask/components/Sidebar.d.ts +12 -15
- package/types/components/mask/components/Tabs.d.ts +255 -2
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +13 -55
- package/types/components/panel/Panel.d.ts +521 -124
- package/types/components/picker/Dialog.d.ts +1291 -2
- package/types/components/picker/Picker.d.ts +1730 -2
- package/types/components/qr-code/QrCode.d.ts +13 -35
- package/types/components/query-form/QueryForm.d.ts +1105 -418
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +53 -297
- package/types/components/test/Test.d.ts +41 -268
- package/types/utils/auto-update.d.ts +1 -1
- package/types/version.d.ts +2 -2
@@ -1,158 +1,31 @@
|
|
1
1
|
import { ListData, ListState, ListInfiniteScroll } from './types';
|
2
|
-
import {
|
3
|
-
import { ShallowRef, Ref, ComputedRef, StyleValue, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
-
import { UseVirtualListItem } from '@vueuse/core';
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
5
3
|
import { DataLoader } from '..';
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
import { PaginationProps } from 'element-plus';
|
5
|
+
import { UseVirtualListItem } from '@vueuse/core';
|
6
|
+
declare function __VLS_template(): {
|
7
|
+
attrs: Partial<{}>;
|
8
|
+
slots: {
|
9
|
+
empty?(_: {}): any;
|
10
|
+
default?(_: {
|
11
|
+
item: any;
|
12
|
+
index: number;
|
13
|
+
}): any;
|
14
|
+
default?(_: {
|
15
|
+
item: any;
|
16
|
+
index: number;
|
17
|
+
}): any;
|
18
|
+
loading?(_: {}): any;
|
19
|
+
loading?(_: {}): any;
|
20
|
+
nomore?(_: {}): any;
|
21
|
+
nomore?(_: {}): any;
|
22
|
+
};
|
23
|
+
refs: {
|
24
|
+
wrapperRef: HTMLDivElement;
|
25
|
+
};
|
26
|
+
rootEl: HTMLDivElement;
|
9
27
|
};
|
10
|
-
|
11
|
-
declare const nomore: Ref<boolean, boolean>;
|
12
|
-
declare const wrapperRef: Ref<any, any>;
|
13
|
-
declare const styleComputed: ComputedRef<{
|
14
|
-
width: string;
|
15
|
-
height: string;
|
16
|
-
}>;
|
17
|
-
declare const classComputed: ComputedRef<{
|
18
|
-
'is-virtual': boolean;
|
19
|
-
}>;
|
20
|
-
declare const infiniteScrollProps: ComputedRef<Record<string, any>>;
|
21
|
-
declare const pagerProps: ComputedRef<Partial< PaginationProps>>;
|
22
|
-
declare const list: Ref< UseVirtualListItem<any>[], UseVirtualListItem<any>[]>, containerProps: {
|
23
|
-
ref: Ref<HTMLElement | null>;
|
24
|
-
onScroll: () => void;
|
25
|
-
style: StyleValue;
|
26
|
-
}, wrapperProps: ComputedRef<{
|
27
|
-
style: {
|
28
|
-
width: string;
|
29
|
-
height: string;
|
30
|
-
marginTop: string;
|
31
|
-
} | {
|
32
|
-
width: string;
|
33
|
-
height: string;
|
34
|
-
marginLeft: string;
|
35
|
-
display: string;
|
36
|
-
};
|
37
|
-
}>;
|
38
|
-
declare const load: () => void;
|
39
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
40
|
-
declare var __VLS_1: {}, __VLS_7: {
|
41
|
-
item: any;
|
42
|
-
index: number;
|
43
|
-
}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {
|
44
|
-
item: any;
|
45
|
-
index: number;
|
46
|
-
}, __VLS_15: {}, __VLS_17: {};
|
47
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
48
|
-
empty?: (props: typeof __VLS_1) => any;
|
49
|
-
} & {
|
50
|
-
default?: (props: typeof __VLS_7) => any;
|
51
|
-
} & {
|
52
|
-
loading?: (props: typeof __VLS_9) => any;
|
53
|
-
} & {
|
54
|
-
nomore?: (props: typeof __VLS_11) => any;
|
55
|
-
} & {
|
56
|
-
default?: (props: typeof __VLS_13) => any;
|
57
|
-
} & {
|
58
|
-
loading?: (props: typeof __VLS_15) => any;
|
59
|
-
} & {
|
60
|
-
nomore?: (props: typeof __VLS_17) => any;
|
61
|
-
}>;
|
62
|
-
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
63
|
-
data: {
|
64
|
-
type: PropType<DataLoader<ListData, ListState>>;
|
65
|
-
default(): never[];
|
66
|
-
};
|
67
|
-
itemHeight: {
|
68
|
-
type: PropType<number | ((index: number) => number)>;
|
69
|
-
};
|
70
|
-
width: {
|
71
|
-
type: (StringConstructor | NumberConstructor)[];
|
72
|
-
default: string;
|
73
|
-
};
|
74
|
-
height: {
|
75
|
-
type: (StringConstructor | NumberConstructor)[];
|
76
|
-
default: string;
|
77
|
-
};
|
78
|
-
pager: {
|
79
|
-
type: PropType<boolean | Partial< PaginationProps>>;
|
80
|
-
};
|
81
|
-
page: {
|
82
|
-
type: NumberConstructor;
|
83
|
-
default: number;
|
84
|
-
};
|
85
|
-
pageSize: {
|
86
|
-
type: NumberConstructor;
|
87
|
-
default: number;
|
88
|
-
};
|
89
|
-
dataKey: {
|
90
|
-
type: StringConstructor;
|
91
|
-
};
|
92
|
-
infiniteScroll: {
|
93
|
-
type: PropType<boolean | ListInfiniteScroll>;
|
94
|
-
};
|
95
|
-
}>, {
|
96
|
-
ElEmpty: typeof ElEmpty;
|
97
|
-
ElPagination: typeof ElPagination;
|
98
|
-
vInfiniteScroll: typeof vInfiniteScroll;
|
99
|
-
state: typeof state;
|
100
|
-
data: typeof data;
|
101
|
-
loading: typeof loading;
|
102
|
-
nomore: typeof nomore;
|
103
|
-
wrapperRef: typeof wrapperRef;
|
104
|
-
styleComputed: typeof styleComputed;
|
105
|
-
classComputed: typeof classComputed;
|
106
|
-
infiniteScrollProps: typeof infiniteScrollProps;
|
107
|
-
pagerProps: typeof pagerProps;
|
108
|
-
list: typeof list;
|
109
|
-
containerProps: typeof containerProps;
|
110
|
-
wrapperProps: typeof wrapperProps;
|
111
|
-
load: typeof load;
|
112
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
113
|
-
load: (state: ListState) => any;
|
114
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
115
|
-
data: {
|
116
|
-
type: PropType<DataLoader<ListData, ListState>>;
|
117
|
-
default(): never[];
|
118
|
-
};
|
119
|
-
itemHeight: {
|
120
|
-
type: PropType<number | ((index: number) => number)>;
|
121
|
-
};
|
122
|
-
width: {
|
123
|
-
type: (StringConstructor | NumberConstructor)[];
|
124
|
-
default: string;
|
125
|
-
};
|
126
|
-
height: {
|
127
|
-
type: (StringConstructor | NumberConstructor)[];
|
128
|
-
default: string;
|
129
|
-
};
|
130
|
-
pager: {
|
131
|
-
type: PropType<boolean | Partial< PaginationProps>>;
|
132
|
-
};
|
133
|
-
page: {
|
134
|
-
type: NumberConstructor;
|
135
|
-
default: number;
|
136
|
-
};
|
137
|
-
pageSize: {
|
138
|
-
type: NumberConstructor;
|
139
|
-
default: number;
|
140
|
-
};
|
141
|
-
dataKey: {
|
142
|
-
type: StringConstructor;
|
143
|
-
};
|
144
|
-
infiniteScroll: {
|
145
|
-
type: PropType<boolean | ListInfiniteScroll>;
|
146
|
-
};
|
147
|
-
}>> & Readonly<{
|
148
|
-
onLoad?: ((state: ListState) => any) | undefined;
|
149
|
-
}>, {
|
150
|
-
data: DataLoader<ListData, ListState>;
|
151
|
-
width: string | number;
|
152
|
-
height: string | number;
|
153
|
-
page: number;
|
154
|
-
pageSize: number;
|
155
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
156
29
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
157
30
|
data: {
|
158
31
|
type: PropType<DataLoader<ListData, ListState>>;
|
@@ -242,10 +115,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
242
115
|
height: string | number;
|
243
116
|
page: number;
|
244
117
|
pageSize: number;
|
245
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
246
|
-
|
118
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
119
|
+
wrapperRef: HTMLDivElement;
|
120
|
+
}, HTMLDivElement>;
|
121
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
247
122
|
export default _default;
|
248
|
-
type
|
123
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
249
124
|
new (): {
|
250
125
|
$slots: S;
|
251
126
|
};
|