create-weapp-vite 1.2.0 → 1.3.0
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/chunk-CI2UMYKK.js +277 -0
- package/dist/cli.cjs +280 -11
- package/dist/cli.js +12 -9
- package/dist/index.cjs +317 -0
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +8 -0
- package/package.json +6 -3
- package/templates/default/.editorconfig +9 -0
- package/templates/default/.vscode/settings.json +5 -0
- package/templates/default/README.md +28 -0
- package/templates/default/auto-import-components.json +3 -0
- package/templates/default/gitignore +35 -0
- package/templates/default/package.json +31 -0
- package/templates/default/project.config.json +42 -0
- package/templates/default/project.private.config.json +8 -0
- package/templates/default/public/logo.png +0 -0
- package/templates/default/src/app.json +10 -0
- package/templates/default/src/app.scss +0 -0
- package/templates/default/src/app.ts +6 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.json +6 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.scss +47 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.ts +61 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.wxml +16 -0
- package/templates/default/src/pages/index/index.json +7 -0
- package/templates/default/src/pages/index/index.scss +0 -0
- package/templates/default/src/pages/index/index.ts +24 -0
- package/templates/default/src/pages/index/index.wxml +14 -0
- package/templates/default/src/sitemap.json +10 -0
- package/templates/default/src/theme.json +5 -0
- package/templates/default/src/utils/util.ts +3 -0
- package/templates/default/src/vite-env.d.ts +1 -0
- package/templates/default/tsconfig.app.json +57 -0
- package/templates/default/tsconfig.json +11 -0
- package/templates/default/tsconfig.node.json +33 -0
- package/templates/default/vite.config.ts +39 -0
- package/templates/tailwindcss/.editorconfig +9 -0
- package/templates/tailwindcss/.vscode/settings.json +5 -0
- package/templates/tailwindcss/README.md +28 -0
- package/templates/tailwindcss/auto-import-components.json +3 -0
- package/templates/tailwindcss/gitignore +35 -0
- package/templates/tailwindcss/package.json +38 -0
- package/templates/tailwindcss/postcss.config.js +6 -0
- package/templates/tailwindcss/project.config.json +43 -0
- package/templates/tailwindcss/project.private.config.json +8 -0
- package/templates/tailwindcss/public/icon0.png +0 -0
- package/templates/tailwindcss/public/icon0s.png +0 -0
- package/templates/tailwindcss/public/icon1.png +0 -0
- package/templates/tailwindcss/public/icon1s.png +0 -0
- package/templates/tailwindcss/public/logo.png +0 -0
- package/templates/tailwindcss/src/app.json +31 -0
- package/templates/tailwindcss/src/app.scss +3 -0
- package/templates/tailwindcss/src/app.ts +6 -0
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.json +7 -0
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.scss +1 -0
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +61 -0
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.wxml +16 -0
- package/templates/tailwindcss/src/pages/index/index.json +7 -0
- package/templates/tailwindcss/src/pages/index/index.scss +0 -0
- package/templates/tailwindcss/src/pages/index/index.ts +48 -0
- package/templates/tailwindcss/src/pages/index/index.wxml +24 -0
- package/templates/tailwindcss/src/pages/profile/index.json +7 -0
- package/templates/tailwindcss/src/pages/profile/index.scss +0 -0
- package/templates/tailwindcss/src/pages/profile/index.ts +19 -0
- package/templates/tailwindcss/src/pages/profile/index.wxml +11 -0
- package/templates/tailwindcss/src/sitemap.json +10 -0
- package/templates/tailwindcss/src/theme.json +5 -0
- package/templates/tailwindcss/src/utils/util.ts +3 -0
- package/templates/tailwindcss/src/vite-env.d.ts +1 -0
- package/templates/tailwindcss/tailwind.config.ts +22 -0
- package/templates/tailwindcss/tsconfig.app.json +57 -0
- package/templates/tailwindcss/tsconfig.json +11 -0
- package/templates/tailwindcss/tsconfig.node.json +33 -0
- package/templates/tailwindcss/vite.config.ts +37 -0
- package/templates/tdesign/.editorconfig +9 -0
- package/templates/tdesign/.vscode/settings.json +5 -0
- package/templates/tdesign/README.md +28 -0
- package/templates/tdesign/gitignore +35 -0
- package/templates/tdesign/package.json +41 -0
- package/templates/tdesign/postcss.config.js +6 -0
- package/templates/tdesign/project.config.json +45 -0
- package/templates/tdesign/project.private.config.json +8 -0
- package/templates/tdesign/public/logo.png +0 -0
- package/templates/tdesign/src/app.json +10 -0
- package/templates/tdesign/src/app.scss +3 -0
- package/templates/tdesign/src/app.ts +6 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.json +8 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.scss +1 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +64 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.wxml +17 -0
- package/templates/tdesign/src/pages/index/index.json +7 -0
- package/templates/tdesign/src/pages/index/index.scss +0 -0
- package/templates/tdesign/src/pages/index/index.ts +97 -0
- package/templates/tdesign/src/pages/index/index.wxml +24 -0
- package/templates/tdesign/src/sitemap.json +10 -0
- package/templates/tdesign/src/theme.json +5 -0
- package/templates/tdesign/src/utils/util.ts +3 -0
- package/templates/tdesign/src/vite-env.d.ts +1 -0
- package/templates/tdesign/tailwind.config.ts +22 -0
- package/templates/tdesign/tsconfig.app.json +60 -0
- package/templates/tdesign/tsconfig.json +11 -0
- package/templates/tdesign/tsconfig.node.json +33 -0
- package/templates/tdesign/vite.config.ts +41 -0
- package/templates/vant/.editorconfig +9 -0
- package/templates/vant/.vscode/settings.json +5 -0
- package/templates/vant/README.md +28 -0
- package/templates/vant/gitignore +35 -0
- package/templates/vant/package.json +41 -0
- package/templates/vant/postcss.config.js +6 -0
- package/templates/vant/project.config.json +42 -0
- package/templates/vant/project.private.config.json +8 -0
- package/templates/vant/public/logo.png +0 -0
- package/templates/vant/src/app.json +10 -0
- package/templates/vant/src/app.scss +3 -0
- package/templates/vant/src/app.ts +6 -0
- package/templates/vant/src/components/HelloWorld/HelloWorld.json +9 -0
- package/templates/vant/src/components/HelloWorld/HelloWorld.scss +1 -0
- package/templates/vant/src/components/HelloWorld/HelloWorld.ts +61 -0
- package/templates/vant/src/components/HelloWorld/HelloWorld.wxml +19 -0
- package/templates/vant/src/pages/index/index.json +7 -0
- package/templates/vant/src/pages/index/index.scss +0 -0
- package/templates/vant/src/pages/index/index.ts +57 -0
- package/templates/vant/src/pages/index/index.wxml +28 -0
- package/templates/vant/src/sitemap.json +10 -0
- package/templates/vant/src/theme.json +5 -0
- package/templates/vant/src/utils/util.ts +3 -0
- package/templates/vant/src/vite-env.d.ts +1 -0
- package/templates/vant/tailwind.config.ts +22 -0
- package/templates/vant/tsconfig.app.json +60 -0
- package/templates/vant/tsconfig.json +11 -0
- package/templates/vant/tsconfig.node.json +33 -0
- package/templates/vant/vite.config.ts +41 -0
- package/templates/wevu/.editorconfig +9 -0
- package/templates/wevu/.vscode/settings.json +5 -0
- package/templates/wevu/README.md +29 -0
- package/templates/wevu/auto-import-components.json +1 -0
- package/templates/wevu/gitignore +35 -0
- package/templates/wevu/package.json +30 -0
- package/templates/wevu/project.config.json +43 -0
- package/templates/wevu/project.private.config.json +8 -0
- package/templates/wevu/public/logo.png +0 -0
- package/templates/wevu/src/app.vue +36 -0
- package/templates/wevu/src/components/HelloWorld/index.vue +45 -0
- package/templates/wevu/src/pages/index/index.vue +138 -0
- package/templates/wevu/src/sitemap.json +10 -0
- package/templates/wevu/src/theme.json +5 -0
- package/templates/wevu/src/vite-env.d.ts +1 -0
- package/templates/wevu/tsconfig.app.json +57 -0
- package/templates/wevu/tsconfig.json +11 -0
- package/templates/wevu/tsconfig.node.json +33 -0
- package/templates/wevu/vite.config.ts +8 -0
- package/templates/wevu-tdesign/.editorconfig +9 -0
- package/templates/wevu-tdesign/.vscode/settings.json +5 -0
- package/templates/wevu-tdesign/README.md +29 -0
- package/templates/wevu-tdesign/auto-import-components.json +83 -0
- package/templates/wevu-tdesign/components.d.ts +183 -0
- package/templates/wevu-tdesign/gitignore +35 -0
- package/templates/wevu-tdesign/package.json +40 -0
- package/templates/wevu-tdesign/postcss.config.js +6 -0
- package/templates/wevu-tdesign/project.config.json +43 -0
- package/templates/wevu-tdesign/project.private.config.json +8 -0
- package/templates/wevu-tdesign/public/logo.png +0 -0
- package/templates/wevu-tdesign/src/app.vue +35 -0
- package/templates/wevu-tdesign/src/components/HelloWorld/index.vue +23 -0
- package/templates/wevu-tdesign/src/pages/index/index.vue +161 -0
- package/templates/wevu-tdesign/src/sitemap.json +10 -0
- package/templates/wevu-tdesign/src/theme.json +5 -0
- package/templates/wevu-tdesign/src/vite-env.d.ts +1 -0
- package/templates/wevu-tdesign/tailwind.config.ts +22 -0
- package/templates/wevu-tdesign/tsconfig.app.json +62 -0
- package/templates/wevu-tdesign/tsconfig.json +11 -0
- package/templates/wevu-tdesign/tsconfig.node.json +33 -0
- package/templates/wevu-tdesign/typed-components.d.ts +943 -0
- package/templates/wevu-tdesign/vite.config.ts +43 -0
|
@@ -0,0 +1,943 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// biome-ignore lint: disable
|
|
4
|
+
// oxlint-disable
|
|
5
|
+
// ------
|
|
6
|
+
// Auto-generated by weapp-vite. Do not edit.
|
|
7
|
+
declare module 'weapp-vite/typed-components' {
|
|
8
|
+
export interface ComponentProps {
|
|
9
|
+
't-action-sheet': {
|
|
10
|
+
readonly align?: 'center' | 'left';
|
|
11
|
+
readonly cancelText?: string;
|
|
12
|
+
readonly count?: number;
|
|
13
|
+
readonly defaultVisible?: boolean;
|
|
14
|
+
readonly description?: string;
|
|
15
|
+
readonly items?: Array<string | ActionSheetItem>;
|
|
16
|
+
readonly popupProps?: PopupProps;
|
|
17
|
+
readonly showCancel?: boolean;
|
|
18
|
+
readonly showOverlay?: boolean;
|
|
19
|
+
readonly theme?: 'list' | 'grid';
|
|
20
|
+
readonly usingCustomNavbar?: boolean;
|
|
21
|
+
readonly visible?: boolean;
|
|
22
|
+
};
|
|
23
|
+
't-avatar': {
|
|
24
|
+
readonly alt?: string;
|
|
25
|
+
readonly badgeProps?: BadgeProps;
|
|
26
|
+
readonly bordered?: boolean;
|
|
27
|
+
readonly hideOnLoadFailed?: boolean;
|
|
28
|
+
readonly icon?: string | object;
|
|
29
|
+
readonly image?: string;
|
|
30
|
+
readonly imageProps?: ImageProps;
|
|
31
|
+
readonly shape?: ShapeEnum;
|
|
32
|
+
readonly size?: string;
|
|
33
|
+
};
|
|
34
|
+
't-avatar-group': {
|
|
35
|
+
readonly cascading?: CascadingValue;
|
|
36
|
+
readonly collapseAvatar?: string;
|
|
37
|
+
readonly max?: number;
|
|
38
|
+
readonly shape?: ShapeEnum;
|
|
39
|
+
readonly size?: string;
|
|
40
|
+
};
|
|
41
|
+
't-back-top': {
|
|
42
|
+
readonly fixed?: boolean;
|
|
43
|
+
readonly icon?: string | boolean | object;
|
|
44
|
+
readonly scrollTop?: number;
|
|
45
|
+
readonly text?: string;
|
|
46
|
+
readonly theme?: 'round' | 'half-round' | 'round-dark' | 'half-round-dark';
|
|
47
|
+
readonly visibilityHeight?: number;
|
|
48
|
+
};
|
|
49
|
+
't-badge': {
|
|
50
|
+
readonly color?: string;
|
|
51
|
+
readonly content?: string;
|
|
52
|
+
readonly count?: string | number;
|
|
53
|
+
readonly dot?: boolean;
|
|
54
|
+
readonly maxCount?: number;
|
|
55
|
+
readonly offset?: Array<string | number>;
|
|
56
|
+
readonly shape?: 'circle' | 'square' | 'bubble' | 'ribbon' | 'ribbon-right' | 'ribbon-left' | 'triangle-right' | 'triangle-left';
|
|
57
|
+
readonly showZero?: boolean;
|
|
58
|
+
readonly size?: 'medium' | 'large';
|
|
59
|
+
};
|
|
60
|
+
't-button': {
|
|
61
|
+
readonly appParameter?: string;
|
|
62
|
+
readonly block?: boolean;
|
|
63
|
+
readonly content?: string;
|
|
64
|
+
readonly customDataset?: null;
|
|
65
|
+
readonly disabled?: boolean;
|
|
66
|
+
readonly ghost?: boolean;
|
|
67
|
+
readonly hoverClass?: string;
|
|
68
|
+
readonly hoverStartTime?: number;
|
|
69
|
+
readonly hoverStayTime?: number;
|
|
70
|
+
readonly hoverStopPropagation?: boolean;
|
|
71
|
+
readonly icon?: string | object;
|
|
72
|
+
readonly lang?: 'en' | 'zh_CN' | 'zh_TW';
|
|
73
|
+
readonly loading?: boolean;
|
|
74
|
+
readonly loadingProps?: LoadingProps;
|
|
75
|
+
readonly openType?: 'contact' | 'share' | 'getPhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'chooseAvatar' | 'agreePrivacyAuthorization';
|
|
76
|
+
readonly phoneNumberNoQuotaToast?: boolean;
|
|
77
|
+
readonly sendMessageImg?: string;
|
|
78
|
+
readonly sendMessagePath?: string;
|
|
79
|
+
readonly sendMessageTitle?: string;
|
|
80
|
+
readonly sessionFrom?: string;
|
|
81
|
+
readonly shape?: 'rectangle' | 'square' | 'round' | 'circle';
|
|
82
|
+
readonly showMessageCard?: boolean;
|
|
83
|
+
readonly size?: 'extra-small' | 'small' | 'medium' | 'large';
|
|
84
|
+
readonly theme?: 'default' | 'primary' | 'danger' | 'light';
|
|
85
|
+
readonly tId?: string;
|
|
86
|
+
readonly type?: 'submit' | 'reset';
|
|
87
|
+
readonly variant?: 'base' | 'outline' | 'dashed' | 'text';
|
|
88
|
+
};
|
|
89
|
+
't-calendar': {
|
|
90
|
+
readonly allowSameDay?: boolean;
|
|
91
|
+
readonly autoClose?: boolean;
|
|
92
|
+
readonly confirmBtn?: string | ButtonProps | null;
|
|
93
|
+
readonly defaultValue?: number | number[];
|
|
94
|
+
readonly firstDayOfWeek?: number;
|
|
95
|
+
readonly format?: CalendarFormatType;
|
|
96
|
+
readonly localeText?: CalendarLocaleText;
|
|
97
|
+
readonly maxDate?: number;
|
|
98
|
+
readonly minDate?: number;
|
|
99
|
+
readonly readonly?: boolean;
|
|
100
|
+
readonly switchMode?: 'none' | 'month' | 'year-month';
|
|
101
|
+
readonly title?: string;
|
|
102
|
+
readonly type?: 'single' | 'multiple' | 'range';
|
|
103
|
+
readonly usePopup?: boolean;
|
|
104
|
+
readonly usingCustomNavbar?: boolean;
|
|
105
|
+
readonly value?: number | number[];
|
|
106
|
+
readonly visible?: boolean;
|
|
107
|
+
};
|
|
108
|
+
't-cascader': {
|
|
109
|
+
readonly checkStrictly?: boolean;
|
|
110
|
+
readonly closeBtn?: boolean;
|
|
111
|
+
readonly defaultValue?: string | number;
|
|
112
|
+
readonly keys?: CascaderKeysType;
|
|
113
|
+
readonly options?: Array<CascaderOption>;
|
|
114
|
+
readonly placeholder?: string;
|
|
115
|
+
readonly subTitles?: Array<string>;
|
|
116
|
+
readonly theme?: 'step' | 'tab';
|
|
117
|
+
readonly title?: string;
|
|
118
|
+
readonly value?: string | number;
|
|
119
|
+
readonly visible?: boolean;
|
|
120
|
+
};
|
|
121
|
+
't-cell': {
|
|
122
|
+
readonly align?: 'top' | 'middle' | 'bottom';
|
|
123
|
+
readonly arrow?: boolean | object;
|
|
124
|
+
readonly bordered?: boolean;
|
|
125
|
+
readonly description?: string;
|
|
126
|
+
readonly hover?: boolean;
|
|
127
|
+
readonly image?: string;
|
|
128
|
+
readonly jumpType?: 'switchTab' | 'reLaunch' | 'redirectTo' | 'navigateTo';
|
|
129
|
+
readonly leftIcon?: string | object;
|
|
130
|
+
readonly note?: string;
|
|
131
|
+
readonly required?: boolean;
|
|
132
|
+
readonly rightIcon?: string | object;
|
|
133
|
+
readonly title?: string;
|
|
134
|
+
readonly url?: string;
|
|
135
|
+
};
|
|
136
|
+
't-cell-group': {
|
|
137
|
+
readonly bordered?: boolean;
|
|
138
|
+
readonly theme?: 'default' | 'card';
|
|
139
|
+
readonly title?: string;
|
|
140
|
+
};
|
|
141
|
+
't-check-tag': {
|
|
142
|
+
readonly checked?: boolean;
|
|
143
|
+
readonly closable?: boolean;
|
|
144
|
+
readonly content?: string | number | string[];
|
|
145
|
+
readonly defaultChecked?: boolean;
|
|
146
|
+
readonly disabled?: boolean;
|
|
147
|
+
readonly icon?: string | object;
|
|
148
|
+
readonly shape?: 'square' | 'round' | 'mark';
|
|
149
|
+
readonly size?: SizeEnum;
|
|
150
|
+
readonly variant?: 'dark' | 'light' | 'outline' | 'light-outline';
|
|
151
|
+
};
|
|
152
|
+
't-checkbox': {
|
|
153
|
+
readonly block?: boolean;
|
|
154
|
+
readonly borderless?: boolean;
|
|
155
|
+
readonly checkAll?: boolean;
|
|
156
|
+
readonly checked?: boolean;
|
|
157
|
+
readonly content?: string;
|
|
158
|
+
readonly contentDisabled?: boolean;
|
|
159
|
+
readonly defaultChecked?: boolean;
|
|
160
|
+
readonly disabled?: boolean;
|
|
161
|
+
readonly icon?: 'circle' | 'line' | 'rectangle' | string[];
|
|
162
|
+
readonly indeterminate?: boolean;
|
|
163
|
+
readonly label?: string;
|
|
164
|
+
readonly maxContentRow?: number;
|
|
165
|
+
readonly maxLabelRow?: number;
|
|
166
|
+
readonly name?: string;
|
|
167
|
+
readonly placement?: 'left' | 'right';
|
|
168
|
+
readonly readonly?: boolean;
|
|
169
|
+
readonly value?: string | number | boolean;
|
|
170
|
+
};
|
|
171
|
+
't-checkbox-group': {
|
|
172
|
+
readonly borderless?: boolean;
|
|
173
|
+
readonly defaultValue?: T;
|
|
174
|
+
readonly disabled?: boolean;
|
|
175
|
+
readonly keys?: KeysType;
|
|
176
|
+
readonly max?: number;
|
|
177
|
+
readonly name?: string;
|
|
178
|
+
readonly options?: Array<CheckboxOption>;
|
|
179
|
+
readonly readonly?: boolean;
|
|
180
|
+
readonly value?: T;
|
|
181
|
+
};
|
|
182
|
+
't-col': {
|
|
183
|
+
readonly offset?: string | number;
|
|
184
|
+
readonly span?: string | number;
|
|
185
|
+
};
|
|
186
|
+
't-collapse': {
|
|
187
|
+
readonly defaultExpandAll?: boolean;
|
|
188
|
+
readonly defaultValue?: CollapseValue;
|
|
189
|
+
readonly disabled?: boolean;
|
|
190
|
+
readonly expandIcon?: boolean;
|
|
191
|
+
readonly expandMutex?: boolean;
|
|
192
|
+
readonly theme?: 'default' | 'card';
|
|
193
|
+
readonly value?: CollapseValue;
|
|
194
|
+
};
|
|
195
|
+
't-collapse-panel': {
|
|
196
|
+
readonly content?: string;
|
|
197
|
+
readonly disabled?: boolean;
|
|
198
|
+
readonly expandIcon?: boolean;
|
|
199
|
+
readonly header?: string;
|
|
200
|
+
readonly headerLeftIcon?: string;
|
|
201
|
+
readonly headerRightContent?: string;
|
|
202
|
+
readonly placement?: 'bottom' | 'top';
|
|
203
|
+
readonly value?: string | number;
|
|
204
|
+
};
|
|
205
|
+
't-color-picker': {
|
|
206
|
+
readonly autoClose?: boolean;
|
|
207
|
+
readonly colorModes?: colorModesEnum | colorModesEnum[];
|
|
208
|
+
readonly defaultValue?: string;
|
|
209
|
+
readonly enableAlpha?: boolean;
|
|
210
|
+
readonly enableMultipleGradient?: boolean;
|
|
211
|
+
readonly fixed?: boolean;
|
|
212
|
+
readonly format?: 'HEX' | 'HEX8' | 'RGB' | 'RGBA' | 'HSL' | 'HSLA' | 'HSV' | 'HSVA' | 'CMYK' | 'CSS';
|
|
213
|
+
readonly popupProps?: PopupProps;
|
|
214
|
+
readonly swatchColors?: Array<string> | null | undefined;
|
|
215
|
+
readonly type?: TypeEnum;
|
|
216
|
+
readonly usePopup?: boolean;
|
|
217
|
+
readonly value?: string;
|
|
218
|
+
readonly visible?: boolean;
|
|
219
|
+
};
|
|
220
|
+
't-count-down': {
|
|
221
|
+
readonly autoStart?: boolean;
|
|
222
|
+
readonly content?: string;
|
|
223
|
+
readonly format?: string;
|
|
224
|
+
readonly millisecond?: boolean;
|
|
225
|
+
readonly size?: 'small' | 'medium' | 'large';
|
|
226
|
+
readonly splitWithUnit?: boolean;
|
|
227
|
+
readonly theme?: 'default' | 'round' | 'square';
|
|
228
|
+
readonly time?: number;
|
|
229
|
+
};
|
|
230
|
+
't-date-time-picker': {
|
|
231
|
+
readonly autoClose?: boolean;
|
|
232
|
+
readonly cancelBtn?: string;
|
|
233
|
+
readonly confirmBtn?: string;
|
|
234
|
+
readonly customLocale?: string;
|
|
235
|
+
readonly defaultValue?: DateValue;
|
|
236
|
+
readonly end?: string | number;
|
|
237
|
+
readonly filter?: (type: TimeModeValues, columns: DateTimePickerColumn) => DateTimePickerColumn;
|
|
238
|
+
readonly format?: string;
|
|
239
|
+
readonly formatter?: (option: DateTimePickerColumnItem, columnIndex: number) => DateTimePickerColumnItem;
|
|
240
|
+
readonly header?: boolean;
|
|
241
|
+
readonly mode?: DateTimePickerMode;
|
|
242
|
+
readonly popupProps?: PopupProps;
|
|
243
|
+
readonly showWeek?: boolean;
|
|
244
|
+
readonly start?: string | number;
|
|
245
|
+
readonly steps?: { [key in TimeModeValues]?: number };
|
|
246
|
+
readonly title?: string;
|
|
247
|
+
readonly usePopup?: boolean;
|
|
248
|
+
readonly value?: DateValue;
|
|
249
|
+
readonly visible?: boolean;
|
|
250
|
+
};
|
|
251
|
+
't-dialog': {
|
|
252
|
+
readonly actions?: Array<ButtonProps>;
|
|
253
|
+
readonly buttonLayout?: 'horizontal' | 'vertical';
|
|
254
|
+
readonly cancelBtn?: string | ButtonProps | null;
|
|
255
|
+
readonly closeBtn?: boolean | ButtonProps | null;
|
|
256
|
+
readonly closeOnOverlayClick?: boolean;
|
|
257
|
+
readonly confirmBtn?: string | ButtonProps | null;
|
|
258
|
+
readonly content?: string;
|
|
259
|
+
readonly overlayProps?: OverlayProps;
|
|
260
|
+
readonly preventScrollThrough?: boolean;
|
|
261
|
+
readonly showOverlay?: boolean;
|
|
262
|
+
readonly title?: string;
|
|
263
|
+
readonly usingCustomNavbar?: boolean;
|
|
264
|
+
readonly visible?: boolean;
|
|
265
|
+
readonly zIndex?: number;
|
|
266
|
+
};
|
|
267
|
+
't-divider': {
|
|
268
|
+
readonly align?: 'left' | 'right' | 'center';
|
|
269
|
+
readonly content?: string;
|
|
270
|
+
readonly dashed?: boolean;
|
|
271
|
+
readonly layout?: 'horizontal' | 'vertical';
|
|
272
|
+
};
|
|
273
|
+
't-drawer': {
|
|
274
|
+
readonly closeOnOverlayClick?: boolean;
|
|
275
|
+
readonly destroyOnClose?: boolean;
|
|
276
|
+
readonly items?: DrawerItem[];
|
|
277
|
+
readonly overlayProps?: OverlayProps;
|
|
278
|
+
readonly placement?: 'left' | 'right';
|
|
279
|
+
readonly showOverlay?: boolean;
|
|
280
|
+
readonly title?: string;
|
|
281
|
+
readonly usingCustomNavbar?: boolean;
|
|
282
|
+
readonly visible?: boolean;
|
|
283
|
+
readonly zIndex?: number;
|
|
284
|
+
};
|
|
285
|
+
't-dropdown-item': {
|
|
286
|
+
readonly defaultValue?: DropdownValue;
|
|
287
|
+
readonly disabled?: boolean;
|
|
288
|
+
readonly keys?: KeysType;
|
|
289
|
+
readonly label?: string;
|
|
290
|
+
readonly multiple?: boolean;
|
|
291
|
+
readonly options?: Array<DropdownOption>;
|
|
292
|
+
readonly optionsColumns?: string | number;
|
|
293
|
+
readonly placement?: 'left' | 'right';
|
|
294
|
+
readonly value?: DropdownValue;
|
|
295
|
+
};
|
|
296
|
+
't-dropdown-menu': {
|
|
297
|
+
readonly arrowIcon?: string | object;
|
|
298
|
+
readonly closeOnClickOverlay?: boolean;
|
|
299
|
+
readonly duration?: string | number;
|
|
300
|
+
readonly showOverlay?: boolean;
|
|
301
|
+
readonly zIndex?: number;
|
|
302
|
+
};
|
|
303
|
+
't-empty': {
|
|
304
|
+
readonly description?: string;
|
|
305
|
+
readonly icon?: string | object;
|
|
306
|
+
readonly image?: string;
|
|
307
|
+
};
|
|
308
|
+
't-fab': {
|
|
309
|
+
readonly buttonProps?: ButtonProps;
|
|
310
|
+
readonly draggable?: boolean | FabDirectionEnum;
|
|
311
|
+
readonly icon?: string;
|
|
312
|
+
readonly style?: string;
|
|
313
|
+
readonly text?: string;
|
|
314
|
+
readonly usingCustomNavbar?: boolean;
|
|
315
|
+
readonly yBounds?: Array<string | number>;
|
|
316
|
+
};
|
|
317
|
+
't-footer': {
|
|
318
|
+
readonly links?: Array<LinkObj>;
|
|
319
|
+
readonly logo?: FooterLogo;
|
|
320
|
+
readonly text?: string;
|
|
321
|
+
};
|
|
322
|
+
't-form': Record<string, any>;
|
|
323
|
+
't-form-item': Record<string, any>;
|
|
324
|
+
't-grid': {
|
|
325
|
+
readonly align?: 'left' | 'center';
|
|
326
|
+
readonly border?: boolean | { color?: string; width?: string; style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'inset' | 'outset'; };
|
|
327
|
+
readonly column?: number;
|
|
328
|
+
readonly gutter?: number;
|
|
329
|
+
readonly hover?: boolean;
|
|
330
|
+
readonly theme?: 'default' | 'card';
|
|
331
|
+
};
|
|
332
|
+
't-grid-item': {
|
|
333
|
+
readonly badgeProps?: BadgeProps;
|
|
334
|
+
readonly description?: string;
|
|
335
|
+
readonly icon?: string | object;
|
|
336
|
+
readonly image?: string;
|
|
337
|
+
readonly imageProps?: ImageProps;
|
|
338
|
+
readonly jumpType?: 'redirect-to' | 'switch-tab' | 'relaunch' | 'navigate-to';
|
|
339
|
+
readonly layout?: 'vertical' | 'horizontal';
|
|
340
|
+
readonly text?: string;
|
|
341
|
+
readonly url?: string;
|
|
342
|
+
};
|
|
343
|
+
't-guide': {
|
|
344
|
+
readonly backButtonProps?: ButtonProps;
|
|
345
|
+
readonly counter?: string | ((params: { total: number; current: number; }) => string);
|
|
346
|
+
readonly current?: number;
|
|
347
|
+
readonly defaultCurrent?: number;
|
|
348
|
+
readonly finishButtonProps?: ButtonProps;
|
|
349
|
+
readonly hideBack?: boolean;
|
|
350
|
+
readonly hideCounter?: boolean;
|
|
351
|
+
readonly hideSkip?: boolean;
|
|
352
|
+
readonly highlightPadding?: number;
|
|
353
|
+
readonly mode?: 'popover' | 'dialog';
|
|
354
|
+
readonly nextButtonProps?: ButtonProps;
|
|
355
|
+
readonly showOverlay?: boolean;
|
|
356
|
+
readonly skipButtonProps?: ButtonProps;
|
|
357
|
+
readonly steps?: Array<GuideStep>;
|
|
358
|
+
readonly usingCustomNavbar?: boolean;
|
|
359
|
+
readonly zIndex?: number;
|
|
360
|
+
};
|
|
361
|
+
't-icon': {
|
|
362
|
+
readonly color?: string;
|
|
363
|
+
readonly name?: string;
|
|
364
|
+
readonly prefix?: string;
|
|
365
|
+
readonly size?: string | number;
|
|
366
|
+
};
|
|
367
|
+
't-image': {
|
|
368
|
+
readonly error?: string;
|
|
369
|
+
readonly height?: string | number;
|
|
370
|
+
readonly lazy?: boolean;
|
|
371
|
+
readonly loading?: string;
|
|
372
|
+
readonly mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
|
373
|
+
readonly shape?: 'circle' | 'round' | 'square';
|
|
374
|
+
readonly showMenuByLongpress?: boolean;
|
|
375
|
+
readonly src?: string;
|
|
376
|
+
readonly tId?: string;
|
|
377
|
+
readonly webp?: boolean;
|
|
378
|
+
readonly width?: string | number;
|
|
379
|
+
};
|
|
380
|
+
't-image-viewer': {
|
|
381
|
+
readonly backgroundColor?: string;
|
|
382
|
+
readonly closeBtn?: string | boolean | object;
|
|
383
|
+
readonly defaultVisible?: boolean;
|
|
384
|
+
readonly deleteBtn?: string | boolean | object;
|
|
385
|
+
readonly imageProps?: ImageProps;
|
|
386
|
+
readonly images?: Array<string>;
|
|
387
|
+
readonly initialIndex?: Number;
|
|
388
|
+
readonly lazy?: boolean;
|
|
389
|
+
readonly showIndex?: boolean;
|
|
390
|
+
readonly usingCustomNavbar?: boolean;
|
|
391
|
+
readonly visible?: boolean;
|
|
392
|
+
};
|
|
393
|
+
't-indexes': {
|
|
394
|
+
readonly current?: string | number;
|
|
395
|
+
readonly defaultCurrent?: string | number;
|
|
396
|
+
readonly indexList?: Array<string | number>;
|
|
397
|
+
readonly sticky?: Boolean;
|
|
398
|
+
readonly stickyOffset?: number;
|
|
399
|
+
};
|
|
400
|
+
't-indexes-anchor': {
|
|
401
|
+
readonly index?: string | number;
|
|
402
|
+
};
|
|
403
|
+
't-input': {
|
|
404
|
+
readonly adjustPosition?: boolean;
|
|
405
|
+
readonly align?: 'left' | 'center' | 'right';
|
|
406
|
+
readonly allowInputOverMax?: boolean;
|
|
407
|
+
readonly alwaysEmbed?: boolean;
|
|
408
|
+
readonly autoFocus?: boolean;
|
|
409
|
+
readonly borderless?: boolean;
|
|
410
|
+
readonly clearable?: boolean | object;
|
|
411
|
+
readonly clearTrigger?: 'always' | 'focus';
|
|
412
|
+
readonly confirmHold?: boolean;
|
|
413
|
+
readonly confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
|
|
414
|
+
readonly cursor?: number;
|
|
415
|
+
readonly cursorColor?: string;
|
|
416
|
+
readonly cursorSpacing?: number;
|
|
417
|
+
readonly disabled?: boolean;
|
|
418
|
+
readonly focus?: boolean;
|
|
419
|
+
readonly format?: InputFormatType;
|
|
420
|
+
readonly holdKeyboard?: boolean;
|
|
421
|
+
readonly label?: string;
|
|
422
|
+
readonly layout?: 'vertical' | 'horizontal';
|
|
423
|
+
readonly maxcharacter?: number;
|
|
424
|
+
readonly maxlength?: number;
|
|
425
|
+
readonly placeholder?: string;
|
|
426
|
+
readonly placeholderClass?: string;
|
|
427
|
+
readonly placeholderStyle?: string;
|
|
428
|
+
readonly prefixIcon?: string | object;
|
|
429
|
+
readonly readonly?: boolean;
|
|
430
|
+
readonly safePasswordCertPath?: string;
|
|
431
|
+
readonly safePasswordCustomHash?: string;
|
|
432
|
+
readonly safePasswordLength?: number;
|
|
433
|
+
readonly safePasswordNonce?: string;
|
|
434
|
+
readonly safePasswordSalt?: string;
|
|
435
|
+
readonly safePasswordTimeStamp?: number;
|
|
436
|
+
readonly selectionEnd?: number;
|
|
437
|
+
readonly selectionStart?: number;
|
|
438
|
+
readonly status?: 'default' | 'success' | 'warning' | 'error';
|
|
439
|
+
readonly suffix?: string;
|
|
440
|
+
readonly suffixIcon?: string | object;
|
|
441
|
+
readonly tips?: string;
|
|
442
|
+
readonly type?: 'text' | 'number' | 'idcard' | 'digit' | 'safe-password' | 'password' | 'nickname';
|
|
443
|
+
readonly value?: InputValue;
|
|
444
|
+
};
|
|
445
|
+
't-link': {
|
|
446
|
+
readonly content?: string;
|
|
447
|
+
readonly disabled?: boolean;
|
|
448
|
+
readonly hover?: boolean;
|
|
449
|
+
readonly navigatorProps?: object;
|
|
450
|
+
readonly prefixIcon?: string | object;
|
|
451
|
+
readonly size?: SizeEnum;
|
|
452
|
+
readonly suffixIcon?: string | object;
|
|
453
|
+
readonly theme?: 'default' | 'primary' | 'danger' | 'warning' | 'success';
|
|
454
|
+
readonly underline?: boolean;
|
|
455
|
+
};
|
|
456
|
+
't-loading': {
|
|
457
|
+
readonly delay?: number;
|
|
458
|
+
readonly duration?: number;
|
|
459
|
+
readonly fullscreen?: boolean;
|
|
460
|
+
readonly indicator?: boolean;
|
|
461
|
+
readonly inheritColor?: boolean;
|
|
462
|
+
readonly layout?: 'horizontal' | 'vertical';
|
|
463
|
+
readonly loading?: boolean;
|
|
464
|
+
readonly pause?: boolean;
|
|
465
|
+
readonly progress?: number;
|
|
466
|
+
readonly reverse?: boolean;
|
|
467
|
+
readonly size?: string;
|
|
468
|
+
readonly text?: string;
|
|
469
|
+
readonly theme?: 'circular' | 'spinner' | 'dots';
|
|
470
|
+
};
|
|
471
|
+
't-message': {
|
|
472
|
+
readonly align?: MessageAlignType;
|
|
473
|
+
readonly closeBtn?: string | boolean | object;
|
|
474
|
+
readonly content?: string;
|
|
475
|
+
readonly defaultVisible?: boolean;
|
|
476
|
+
readonly duration?: number;
|
|
477
|
+
readonly gap?: string | number | boolean;
|
|
478
|
+
readonly icon?: string | boolean | object;
|
|
479
|
+
readonly link?: string | object;
|
|
480
|
+
readonly marquee?: boolean | MessageMarquee;
|
|
481
|
+
readonly offset?: Array<string | number>;
|
|
482
|
+
readonly single?: boolean;
|
|
483
|
+
readonly theme?: MessageThemeList;
|
|
484
|
+
readonly visible?: boolean;
|
|
485
|
+
readonly zIndex?: number;
|
|
486
|
+
};
|
|
487
|
+
't-message-item': Record<string, any>;
|
|
488
|
+
't-navbar': {
|
|
489
|
+
readonly animation?: boolean;
|
|
490
|
+
readonly delta?: number;
|
|
491
|
+
readonly fixed?: boolean;
|
|
492
|
+
readonly leftArrow?: boolean;
|
|
493
|
+
readonly placeholder?: boolean;
|
|
494
|
+
readonly safeAreaInsetTop?: boolean;
|
|
495
|
+
readonly title?: string;
|
|
496
|
+
readonly titleMaxLength?: number;
|
|
497
|
+
readonly visible?: boolean;
|
|
498
|
+
readonly zIndex?: number;
|
|
499
|
+
};
|
|
500
|
+
't-notice-bar': {
|
|
501
|
+
readonly content?: string | string[];
|
|
502
|
+
readonly defaultVisible?: boolean;
|
|
503
|
+
readonly direction?: 'horizontal' | 'vertical';
|
|
504
|
+
readonly interval?: number;
|
|
505
|
+
readonly marquee?: boolean | NoticeBarMarquee;
|
|
506
|
+
readonly operation?: string;
|
|
507
|
+
readonly prefixIcon?: string | boolean | object;
|
|
508
|
+
readonly suffixIcon?: string | object;
|
|
509
|
+
readonly theme?: 'info' | 'success' | 'warning' | 'error';
|
|
510
|
+
readonly visible?: boolean;
|
|
511
|
+
};
|
|
512
|
+
't-overlay': {
|
|
513
|
+
readonly backgroundColor?: string;
|
|
514
|
+
readonly duration?: number;
|
|
515
|
+
readonly preventScrollThrough?: boolean;
|
|
516
|
+
readonly usingCustomNavbar?: boolean;
|
|
517
|
+
readonly visible?: boolean;
|
|
518
|
+
readonly zIndex?: number;
|
|
519
|
+
};
|
|
520
|
+
't-picker': {
|
|
521
|
+
readonly autoClose?: boolean;
|
|
522
|
+
readonly cancelBtn?: boolean | string;
|
|
523
|
+
readonly confirmBtn?: boolean | string;
|
|
524
|
+
readonly defaultValue?: Array<PickerValue>;
|
|
525
|
+
readonly header?: boolean;
|
|
526
|
+
readonly itemHeight?: number;
|
|
527
|
+
readonly keys?: KeysType;
|
|
528
|
+
readonly popupProps?: PopupProps;
|
|
529
|
+
readonly title?: string;
|
|
530
|
+
readonly usePopup?: boolean;
|
|
531
|
+
readonly usingCustomNavbar?: boolean;
|
|
532
|
+
readonly value?: Array<PickerValue>;
|
|
533
|
+
readonly visible?: boolean;
|
|
534
|
+
readonly visibleItemCount?: number;
|
|
535
|
+
};
|
|
536
|
+
't-picker-item': {
|
|
537
|
+
readonly format?: (option: PickerItemOption, columnIndex: number) => PickerItemOption;
|
|
538
|
+
readonly options?: PickerItemOption[];
|
|
539
|
+
};
|
|
540
|
+
't-popup': {
|
|
541
|
+
readonly closeBtn?: boolean;
|
|
542
|
+
readonly closeOnOverlayClick?: boolean;
|
|
543
|
+
readonly content?: string;
|
|
544
|
+
readonly defaultVisible?: boolean;
|
|
545
|
+
readonly duration?: number;
|
|
546
|
+
readonly overlayProps?: OverlayProps;
|
|
547
|
+
readonly placement?: 'top' | 'left' | 'right' | 'bottom' | 'center';
|
|
548
|
+
readonly preventScrollThrough?: boolean;
|
|
549
|
+
readonly showOverlay?: boolean;
|
|
550
|
+
readonly usingCustomNavbar?: boolean;
|
|
551
|
+
readonly visible?: boolean;
|
|
552
|
+
readonly zIndex?: number;
|
|
553
|
+
};
|
|
554
|
+
't-progress': {
|
|
555
|
+
readonly color?: string | Array<string> | Record<string, string>;
|
|
556
|
+
readonly label?: string | boolean;
|
|
557
|
+
readonly percentage?: number;
|
|
558
|
+
readonly size?: string | number;
|
|
559
|
+
readonly status?: ProgressStatus;
|
|
560
|
+
readonly strokeWidth?: string | number;
|
|
561
|
+
readonly theme?: ProgressTheme;
|
|
562
|
+
readonly trackColor?: string;
|
|
563
|
+
};
|
|
564
|
+
't-pull-down-refresh': {
|
|
565
|
+
readonly defaultValue?: boolean;
|
|
566
|
+
readonly disabled?: boolean;
|
|
567
|
+
readonly enableBackToTop?: boolean;
|
|
568
|
+
readonly enablePassive?: boolean;
|
|
569
|
+
readonly loadingBarHeight?: string | number;
|
|
570
|
+
readonly loadingProps?: LoadingProps;
|
|
571
|
+
readonly loadingTexts?: string[];
|
|
572
|
+
readonly lowerThreshold?: string | number;
|
|
573
|
+
readonly maxBarHeight?: string | number;
|
|
574
|
+
readonly refreshTimeout?: number;
|
|
575
|
+
readonly scrollIntoView?: string;
|
|
576
|
+
readonly showScrollbar?: boolean;
|
|
577
|
+
readonly successDuration?: string | number;
|
|
578
|
+
readonly upperThreshold?: string | number;
|
|
579
|
+
readonly usingCustomNavbar?: boolean;
|
|
580
|
+
readonly value?: boolean;
|
|
581
|
+
};
|
|
582
|
+
't-qrcode': {
|
|
583
|
+
readonly bgColor?: string;
|
|
584
|
+
readonly borderless?: boolean;
|
|
585
|
+
readonly color?: string;
|
|
586
|
+
readonly icon?: string;
|
|
587
|
+
readonly iconSize?: number | { width: number; height: number; };
|
|
588
|
+
readonly level?: 'L' | 'M' | 'Q' | 'H';
|
|
589
|
+
readonly size?: number;
|
|
590
|
+
readonly status?: QRStatus;
|
|
591
|
+
readonly value?: string;
|
|
592
|
+
};
|
|
593
|
+
't-radio': {
|
|
594
|
+
readonly allowUncheck?: boolean;
|
|
595
|
+
readonly block?: boolean;
|
|
596
|
+
readonly checked?: boolean;
|
|
597
|
+
readonly content?: string;
|
|
598
|
+
readonly contentDisabled?: boolean;
|
|
599
|
+
readonly defaultChecked?: boolean;
|
|
600
|
+
readonly disabled?: boolean;
|
|
601
|
+
readonly icon?: 'circle' | 'line' | 'dot' | Array<string>;
|
|
602
|
+
readonly label?: string;
|
|
603
|
+
readonly maxContentRow?: number;
|
|
604
|
+
readonly maxLabelRow?: number;
|
|
605
|
+
readonly name?: string;
|
|
606
|
+
readonly placement?: 'left' | 'right';
|
|
607
|
+
readonly readonly?: boolean;
|
|
608
|
+
readonly value?: T;
|
|
609
|
+
};
|
|
610
|
+
't-radio-group': {
|
|
611
|
+
readonly allowUncheck?: boolean;
|
|
612
|
+
readonly borderless?: boolean;
|
|
613
|
+
readonly defaultValue?: T;
|
|
614
|
+
readonly disabled?: boolean;
|
|
615
|
+
readonly icon?: 'circle' | 'line' | 'dot' | Array<string>;
|
|
616
|
+
readonly keys?: KeysType;
|
|
617
|
+
readonly name?: string;
|
|
618
|
+
readonly options?: Array<RadioOption>;
|
|
619
|
+
readonly placement?: 'left' | 'right';
|
|
620
|
+
readonly readonly?: boolean;
|
|
621
|
+
readonly value?: T;
|
|
622
|
+
};
|
|
623
|
+
't-rate': {
|
|
624
|
+
readonly allowHalf?: boolean;
|
|
625
|
+
readonly color?: string | Array<string>;
|
|
626
|
+
readonly count?: number;
|
|
627
|
+
readonly defaultValue?: number;
|
|
628
|
+
readonly disabled?: boolean;
|
|
629
|
+
readonly gap?: string | number;
|
|
630
|
+
readonly icon?: string | string[];
|
|
631
|
+
readonly iconPrefix?: string;
|
|
632
|
+
readonly placement?: 'top' | 'bottom' | '';
|
|
633
|
+
readonly showText?: boolean;
|
|
634
|
+
readonly size?: string;
|
|
635
|
+
readonly texts?: Array<string>;
|
|
636
|
+
readonly value?: number;
|
|
637
|
+
readonly variant?: 'outline' | 'filled';
|
|
638
|
+
};
|
|
639
|
+
't-result': {
|
|
640
|
+
readonly description?: string;
|
|
641
|
+
readonly icon?: string | boolean | object;
|
|
642
|
+
readonly image?: string;
|
|
643
|
+
readonly theme?: 'default' | 'success' | 'warning' | 'error';
|
|
644
|
+
readonly title?: string;
|
|
645
|
+
};
|
|
646
|
+
't-row': {
|
|
647
|
+
readonly gutter?: string | number;
|
|
648
|
+
};
|
|
649
|
+
't-scroll-view': {
|
|
650
|
+
readonly scrollIntoView?: string;
|
|
651
|
+
};
|
|
652
|
+
't-search': {
|
|
653
|
+
readonly action?: string;
|
|
654
|
+
readonly adjustPosition?: boolean;
|
|
655
|
+
readonly alwaysEmbed?: boolean;
|
|
656
|
+
readonly center?: boolean;
|
|
657
|
+
readonly clearable?: boolean;
|
|
658
|
+
readonly clearTrigger?: 'always' | 'focus';
|
|
659
|
+
readonly confirmHold?: boolean;
|
|
660
|
+
readonly confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
|
|
661
|
+
readonly cursor?: number;
|
|
662
|
+
readonly cursorColor?: string;
|
|
663
|
+
readonly cursorSpacing?: number;
|
|
664
|
+
readonly disabled?: boolean;
|
|
665
|
+
readonly focus?: boolean;
|
|
666
|
+
readonly holdKeyboard?: boolean;
|
|
667
|
+
readonly leftIcon?: string;
|
|
668
|
+
readonly maxcharacter?: number;
|
|
669
|
+
readonly maxlength?: number;
|
|
670
|
+
readonly placeholder?: string;
|
|
671
|
+
readonly placeholderClass?: string;
|
|
672
|
+
readonly placeholderStyle?: string;
|
|
673
|
+
readonly readonly?: boolean;
|
|
674
|
+
readonly resultList?: Array<string>;
|
|
675
|
+
readonly selectionEnd?: number;
|
|
676
|
+
readonly selectionStart?: number;
|
|
677
|
+
readonly shape?: 'square' | 'round';
|
|
678
|
+
readonly type?: 'text' | 'number' | 'idcard' | 'digit' | 'nickname';
|
|
679
|
+
readonly value?: string;
|
|
680
|
+
};
|
|
681
|
+
't-side-bar': {
|
|
682
|
+
readonly defaultValue?: string | number;
|
|
683
|
+
readonly value?: string | number;
|
|
684
|
+
};
|
|
685
|
+
't-side-bar-item': {
|
|
686
|
+
readonly badgeProps?: BadgeProps;
|
|
687
|
+
readonly disabled?: boolean;
|
|
688
|
+
readonly icon?: string | object;
|
|
689
|
+
readonly label?: string;
|
|
690
|
+
readonly value?: string | number;
|
|
691
|
+
};
|
|
692
|
+
't-skeleton': {
|
|
693
|
+
readonly animation?: 'gradient' | 'flashed' | 'none';
|
|
694
|
+
readonly delay?: number;
|
|
695
|
+
readonly loading?: boolean;
|
|
696
|
+
readonly rowCol?: SkeletonRowCol;
|
|
697
|
+
readonly theme?: 'avatar' | 'image' | 'text' | 'paragraph';
|
|
698
|
+
};
|
|
699
|
+
't-slider': {
|
|
700
|
+
readonly defaultValue?: SliderValue;
|
|
701
|
+
readonly disabled?: boolean;
|
|
702
|
+
readonly label?: string | boolean;
|
|
703
|
+
readonly marks?: Record<number, string> | Array<number>;
|
|
704
|
+
readonly max?: number;
|
|
705
|
+
readonly min?: number;
|
|
706
|
+
readonly range?: boolean;
|
|
707
|
+
readonly showExtremeValue?: boolean;
|
|
708
|
+
readonly step?: number;
|
|
709
|
+
readonly theme?: 'default' | 'capsule';
|
|
710
|
+
readonly value?: SliderValue;
|
|
711
|
+
readonly vertical?: boolean;
|
|
712
|
+
};
|
|
713
|
+
't-step-item': {
|
|
714
|
+
readonly content?: string;
|
|
715
|
+
readonly extra?: string;
|
|
716
|
+
readonly icon?: string;
|
|
717
|
+
readonly status?: StepStatus;
|
|
718
|
+
readonly title?: string;
|
|
719
|
+
};
|
|
720
|
+
't-stepper': {
|
|
721
|
+
readonly defaultValue?: string | number;
|
|
722
|
+
readonly disabled?: boolean;
|
|
723
|
+
readonly disableInput?: boolean;
|
|
724
|
+
readonly inputWidth?: number;
|
|
725
|
+
readonly integer?: boolean;
|
|
726
|
+
readonly max?: number;
|
|
727
|
+
readonly min?: number;
|
|
728
|
+
readonly size?: SizeEnum;
|
|
729
|
+
readonly step?: number;
|
|
730
|
+
readonly theme?: 'normal' | 'filled' | 'outline';
|
|
731
|
+
readonly value?: string | number;
|
|
732
|
+
};
|
|
733
|
+
't-steps': {
|
|
734
|
+
readonly current?: string | number;
|
|
735
|
+
readonly currentStatus?: 'default' | 'process' | 'finish' | 'error';
|
|
736
|
+
readonly defaultCurrent?: string | number;
|
|
737
|
+
readonly layout?: 'horizontal' | 'vertical';
|
|
738
|
+
readonly readonly?: boolean;
|
|
739
|
+
readonly sequence?: 'positive' | 'reverse';
|
|
740
|
+
readonly theme?: 'default' | 'dot';
|
|
741
|
+
};
|
|
742
|
+
't-sticky': {
|
|
743
|
+
readonly container?: null;
|
|
744
|
+
readonly disabled?: boolean;
|
|
745
|
+
readonly offsetTop?: string | number;
|
|
746
|
+
readonly zIndex?: number;
|
|
747
|
+
};
|
|
748
|
+
't-swipe-cell': {
|
|
749
|
+
readonly disabled?: boolean;
|
|
750
|
+
readonly left?: Array<SwipeActionItem>;
|
|
751
|
+
readonly opened?: boolean | Array<boolean>;
|
|
752
|
+
readonly right?: Array<SwipeActionItem>;
|
|
753
|
+
};
|
|
754
|
+
't-swiper': {
|
|
755
|
+
readonly autoplay?: boolean;
|
|
756
|
+
readonly current?: number;
|
|
757
|
+
readonly direction?: 'horizontal' | 'vertical';
|
|
758
|
+
readonly displayMultipleItems?: number;
|
|
759
|
+
readonly duration?: number;
|
|
760
|
+
readonly easingFunction?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic';
|
|
761
|
+
readonly height?: string | number;
|
|
762
|
+
readonly imageProps?: object;
|
|
763
|
+
readonly interval?: number;
|
|
764
|
+
readonly list?: string[] | SwiperList[];
|
|
765
|
+
readonly loop?: boolean;
|
|
766
|
+
readonly navigation?: SwiperNavProps | boolean;
|
|
767
|
+
readonly nextMargin?: string | number;
|
|
768
|
+
readonly paginationPosition?: 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
769
|
+
readonly previousMargin?: string | number;
|
|
770
|
+
readonly snapToEdge?: boolean;
|
|
771
|
+
};
|
|
772
|
+
't-swiper-nav': {
|
|
773
|
+
readonly current?: number;
|
|
774
|
+
readonly direction?: 'horizontal' | 'vertical';
|
|
775
|
+
readonly minShowNum?: number;
|
|
776
|
+
readonly paginationPosition?: 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
777
|
+
readonly showControls?: boolean;
|
|
778
|
+
readonly total?: number;
|
|
779
|
+
readonly type?: SwiperNavigationType;
|
|
780
|
+
};
|
|
781
|
+
't-switch': {
|
|
782
|
+
readonly customValue?: Array<SwitchValue>;
|
|
783
|
+
readonly defaultValue?: SwitchValue;
|
|
784
|
+
readonly disabled?: boolean;
|
|
785
|
+
readonly icon?: string[];
|
|
786
|
+
readonly label?: string[];
|
|
787
|
+
readonly loading?: boolean;
|
|
788
|
+
readonly size?: 'small' | 'medium' | 'large';
|
|
789
|
+
readonly value?: SwitchValue;
|
|
790
|
+
};
|
|
791
|
+
't-tab-bar': {
|
|
792
|
+
readonly bordered?: boolean;
|
|
793
|
+
readonly defaultValue?: string | number | Array<string | number>;
|
|
794
|
+
readonly fixed?: boolean;
|
|
795
|
+
readonly placeholder?: boolean;
|
|
796
|
+
readonly safeAreaInsetBottom?: boolean;
|
|
797
|
+
readonly shape?: 'normal' | 'round';
|
|
798
|
+
readonly split?: boolean;
|
|
799
|
+
readonly theme?: 'normal' | 'tag';
|
|
800
|
+
readonly value?: string | number | Array<string | number>;
|
|
801
|
+
readonly zIndex?: number;
|
|
802
|
+
};
|
|
803
|
+
't-tab-bar-item': {
|
|
804
|
+
readonly badgeProps?: BadgeProps;
|
|
805
|
+
readonly icon?: string | object;
|
|
806
|
+
readonly subTabBar?: SubTabBarItem[];
|
|
807
|
+
readonly value?: string | number;
|
|
808
|
+
};
|
|
809
|
+
't-tab-panel': {
|
|
810
|
+
readonly badgeProps?: object;
|
|
811
|
+
readonly disabled?: boolean;
|
|
812
|
+
readonly icon?: string | object;
|
|
813
|
+
readonly label?: string;
|
|
814
|
+
readonly lazy?: boolean;
|
|
815
|
+
readonly panel?: string;
|
|
816
|
+
readonly value?: TabValue;
|
|
817
|
+
};
|
|
818
|
+
't-tabs': {
|
|
819
|
+
readonly animation?: TabAnimation;
|
|
820
|
+
readonly bottomLineMode?: 'fixed' | 'auto' | 'full';
|
|
821
|
+
readonly defaultValue?: TabValue;
|
|
822
|
+
readonly showBottomLine?: boolean;
|
|
823
|
+
readonly spaceEvenly?: boolean;
|
|
824
|
+
readonly split?: boolean;
|
|
825
|
+
readonly sticky?: boolean;
|
|
826
|
+
readonly stickyProps?: StickyProps;
|
|
827
|
+
readonly swipeable?: boolean;
|
|
828
|
+
readonly theme?: 'line' | 'tag' | 'card';
|
|
829
|
+
readonly value?: TabValue;
|
|
830
|
+
};
|
|
831
|
+
't-tag': {
|
|
832
|
+
readonly closable?: boolean | object;
|
|
833
|
+
readonly disabled?: boolean;
|
|
834
|
+
readonly icon?: string | object;
|
|
835
|
+
readonly maxWidth?: string | number;
|
|
836
|
+
readonly shape?: 'square' | 'round' | 'mark';
|
|
837
|
+
readonly size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
838
|
+
readonly theme?: 'default' | 'primary' | 'warning' | 'danger' | 'success';
|
|
839
|
+
readonly variant?: 'dark' | 'light' | 'outline' | 'light-outline';
|
|
840
|
+
};
|
|
841
|
+
't-textarea': {
|
|
842
|
+
readonly adjustPosition?: boolean;
|
|
843
|
+
readonly allowInputOverMax?: boolean;
|
|
844
|
+
readonly autofocus?: boolean;
|
|
845
|
+
readonly autosize?: boolean | { maxHeight?: number; minHeight?: number; };
|
|
846
|
+
readonly bordered?: boolean;
|
|
847
|
+
readonly confirmHold?: boolean;
|
|
848
|
+
readonly confirmType?: 'return' | 'send' | 'search' | 'next' | 'go' | 'done';
|
|
849
|
+
readonly cursor?: number;
|
|
850
|
+
readonly cursorColor?: string;
|
|
851
|
+
readonly cursorSpacing?: number;
|
|
852
|
+
readonly defaultValue?: TextareaValue;
|
|
853
|
+
readonly disabled?: boolean;
|
|
854
|
+
readonly disableDefaultPadding?: boolean;
|
|
855
|
+
readonly fixed?: boolean;
|
|
856
|
+
readonly focus?: boolean;
|
|
857
|
+
readonly holdKeyboard?: boolean;
|
|
858
|
+
readonly indicator?: boolean;
|
|
859
|
+
readonly label?: string;
|
|
860
|
+
readonly maxcharacter?: number;
|
|
861
|
+
readonly maxlength?: number;
|
|
862
|
+
readonly placeholder?: string;
|
|
863
|
+
readonly placeholderClass?: string;
|
|
864
|
+
readonly placeholderStyle?: string;
|
|
865
|
+
readonly readonly?: boolean;
|
|
866
|
+
readonly selectionEnd?: number;
|
|
867
|
+
readonly selectionStart?: number;
|
|
868
|
+
readonly showConfirmBar?: boolean;
|
|
869
|
+
readonly value?: TextareaValue;
|
|
870
|
+
};
|
|
871
|
+
't-toast': {
|
|
872
|
+
readonly direction?: 'row' | 'column';
|
|
873
|
+
readonly duration?: number;
|
|
874
|
+
readonly icon?: string | object;
|
|
875
|
+
readonly message?: string;
|
|
876
|
+
readonly overlayProps?: OverlayProps;
|
|
877
|
+
readonly placement?: 'top' | 'middle' | 'bottom';
|
|
878
|
+
readonly preventScrollThrough?: boolean;
|
|
879
|
+
readonly showOverlay?: boolean;
|
|
880
|
+
readonly theme?: 'loading' | 'success' | 'warning' | 'error';
|
|
881
|
+
readonly usingCustomNavbar?: boolean;
|
|
882
|
+
};
|
|
883
|
+
't-transition': {
|
|
884
|
+
readonly appear?: boolean;
|
|
885
|
+
readonly destoryOnHide?: boolean;
|
|
886
|
+
readonly durations?: number | number[];
|
|
887
|
+
readonly name?: string;
|
|
888
|
+
readonly visible?: boolean;
|
|
889
|
+
};
|
|
890
|
+
't-tree-select': {
|
|
891
|
+
readonly customValue?: TreeSelectValue;
|
|
892
|
+
readonly defaultValue?: TreeSelectValue;
|
|
893
|
+
readonly height?: string | number;
|
|
894
|
+
readonly keys?: TreeKeysType;
|
|
895
|
+
readonly multiple?: boolean;
|
|
896
|
+
readonly options?: Array<DataOption>;
|
|
897
|
+
readonly value?: TreeSelectValue;
|
|
898
|
+
};
|
|
899
|
+
't-upload': {
|
|
900
|
+
readonly addBtn?: boolean;
|
|
901
|
+
readonly addContent?: string;
|
|
902
|
+
readonly allowUploadDuplicateFile?: boolean;
|
|
903
|
+
readonly config?: UploadMpConfig;
|
|
904
|
+
readonly defaultFiles?: Array<UploadFile>;
|
|
905
|
+
readonly disabled?: boolean;
|
|
906
|
+
readonly draggable?: boolean | { vibrate?: boolean; collisionVibrate?: boolean; };
|
|
907
|
+
readonly files?: Array<UploadFile>;
|
|
908
|
+
readonly gridConfig?: { column?: number; width?: number; height?: number; };
|
|
909
|
+
readonly gutter?: number;
|
|
910
|
+
readonly imageProps?: ImageProps;
|
|
911
|
+
readonly max?: number;
|
|
912
|
+
readonly mediaType?: Array<MediaType>;
|
|
913
|
+
readonly preview?: boolean;
|
|
914
|
+
readonly removeBtn?: boolean;
|
|
915
|
+
readonly requestMethod?: null;
|
|
916
|
+
readonly sizeLimit?: number | SizeLimitObj;
|
|
917
|
+
readonly source?: 'media' | 'messageFile';
|
|
918
|
+
readonly transition?: Transition;
|
|
919
|
+
};
|
|
920
|
+
't-watermark': {
|
|
921
|
+
readonly alpha?: number;
|
|
922
|
+
readonly content?: string;
|
|
923
|
+
readonly height?: number;
|
|
924
|
+
readonly isRepeat?: boolean;
|
|
925
|
+
readonly layout?: 'rectangular' | 'hexagonal';
|
|
926
|
+
readonly lineSpace?: number;
|
|
927
|
+
readonly movable?: boolean;
|
|
928
|
+
readonly moveInterval?: number;
|
|
929
|
+
readonly offset?: Array<number>;
|
|
930
|
+
readonly removable?: boolean;
|
|
931
|
+
readonly rotate?: number;
|
|
932
|
+
readonly watermarkContent?: WatermarkText | WatermarkImage | Array<WatermarkText | WatermarkImage>;
|
|
933
|
+
readonly width?: number;
|
|
934
|
+
readonly x?: number;
|
|
935
|
+
readonly y?: number;
|
|
936
|
+
readonly zIndex?: number;
|
|
937
|
+
};
|
|
938
|
+
[component: string]: Record<string, any>;
|
|
939
|
+
}
|
|
940
|
+
export type ComponentPropName = keyof ComponentProps;
|
|
941
|
+
export type ComponentProp<Name extends ComponentPropName> = ComponentProps[Name];
|
|
942
|
+
export const componentProps: ComponentProps;
|
|
943
|
+
}
|