wevu 2.0.1 → 2.1.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/README.md +1 -0
- package/dist/index.d.mts +15 -3
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/weappIntrinsicElements-Dqg7yMEv.d.mts +1216 -0
- package/package.json +1 -1
- package/dist/weappIntrinsicElements-DKD_CE9e.d.mts +0 -567
|
@@ -0,0 +1,1216 @@
|
|
|
1
|
+
//#region src/weappIntrinsicElements/base.d.ts
|
|
2
|
+
type WeappIntrinsicEventHandler<TReturn = void> = (...args: unknown[]) => TReturn;
|
|
3
|
+
type WeappClassValue = string | Record<string, unknown> | WeappClassValue[] | null | undefined | false;
|
|
4
|
+
type WeappStyleValue = false | null | undefined | string | WeappCSSProperties | WeappStyleValue[];
|
|
5
|
+
type WeappDatasetValue = unknown;
|
|
6
|
+
interface WeappCSSProperties {
|
|
7
|
+
[key: string]: string | number | undefined;
|
|
8
|
+
[v: `--${string}`]: string | number | undefined;
|
|
9
|
+
}
|
|
10
|
+
type WeappDatasetAttributes = { [key in `data-${string}`]?: WeappDatasetValue };
|
|
11
|
+
type WeappIntrinsicElementBaseAttributes = {
|
|
12
|
+
id?: string;
|
|
13
|
+
class?: WeappClassValue;
|
|
14
|
+
style?: WeappStyleValue;
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
} & WeappDatasetAttributes & Record<string, unknown>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/weappIntrinsicElements/elements/ad.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
|
|
21
|
+
*/
|
|
22
|
+
type WeappIntrinsicElementAd = WeappIntrinsicElementBaseAttributes & {
|
|
23
|
+
'ad-intervals'?: number;
|
|
24
|
+
'ad-theme'?: string;
|
|
25
|
+
'ad-type'?: string;
|
|
26
|
+
bindclose?: WeappIntrinsicEventHandler<unknown>;
|
|
27
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
28
|
+
bindload?: WeappIntrinsicEventHandler<unknown>;
|
|
29
|
+
'unit-id'?: string;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/weappIntrinsicElements/elements/ad-custom.d.ts
|
|
33
|
+
/**
|
|
34
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad-custom.html
|
|
35
|
+
*/
|
|
36
|
+
type WeappIntrinsicElementAdCustom = WeappIntrinsicElementBaseAttributes & {
|
|
37
|
+
'ad-intervals'?: number;
|
|
38
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
39
|
+
bindload?: WeappIntrinsicEventHandler<unknown>;
|
|
40
|
+
'unit-id'?: string;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/weappIntrinsicElements/elements/audio.d.ts
|
|
44
|
+
/**
|
|
45
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/audio.html
|
|
46
|
+
*/
|
|
47
|
+
type WeappIntrinsicElementAudio = WeappIntrinsicElementBaseAttributes & {
|
|
48
|
+
author?: string;
|
|
49
|
+
bindended?: WeappIntrinsicEventHandler<unknown>;
|
|
50
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
51
|
+
bindpause?: WeappIntrinsicEventHandler<unknown>;
|
|
52
|
+
bindplay?: WeappIntrinsicEventHandler<unknown>;
|
|
53
|
+
bindtimeupdate?: WeappIntrinsicEventHandler<unknown>;
|
|
54
|
+
controls?: boolean;
|
|
55
|
+
id?: string;
|
|
56
|
+
loop?: boolean;
|
|
57
|
+
name?: string;
|
|
58
|
+
poster?: string;
|
|
59
|
+
src?: string;
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/weappIntrinsicElements/elements/block.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/conditional.html#block-wx-if
|
|
65
|
+
*/
|
|
66
|
+
type WeappIntrinsicElementBlock = WeappIntrinsicElementBaseAttributes;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/weappIntrinsicElements/elements/button.d.ts
|
|
69
|
+
/**
|
|
70
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/button.html
|
|
71
|
+
*/
|
|
72
|
+
type WeappIntrinsicElementButton = WeappIntrinsicElementBaseAttributes & {
|
|
73
|
+
'app-parameter'?: string;
|
|
74
|
+
bindagreeprivacyauthorization?: WeappIntrinsicEventHandler<unknown>;
|
|
75
|
+
bindchooseavatar?: WeappIntrinsicEventHandler<unknown>;
|
|
76
|
+
bindcontact?: WeappIntrinsicEventHandler<unknown>;
|
|
77
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
78
|
+
bindgetphonenumber?: WeappIntrinsicEventHandler<unknown>;
|
|
79
|
+
bindgetrealtimephonenumber?: WeappIntrinsicEventHandler<unknown>;
|
|
80
|
+
bindgetuserinfo?: WeappIntrinsicEventHandler<unknown>;
|
|
81
|
+
bindlaunchapp?: WeappIntrinsicEventHandler<unknown>;
|
|
82
|
+
bindopensetting?: WeappIntrinsicEventHandler<unknown>;
|
|
83
|
+
createliveactivity?: WeappIntrinsicEventHandler<unknown>;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
'entrance-path'?: string;
|
|
86
|
+
'form-type'?: 'submit' | 'reset' | 'submitToGroup';
|
|
87
|
+
'hover-class'?: string;
|
|
88
|
+
'hover-start-time'?: number;
|
|
89
|
+
'hover-stay-time'?: number;
|
|
90
|
+
'hover-stop-propagation'?: boolean;
|
|
91
|
+
lang?: 'en' | 'zh_CN' | 'zh_TW';
|
|
92
|
+
loading?: boolean;
|
|
93
|
+
'need-show-entrance'?: boolean;
|
|
94
|
+
'open-type'?: 'contact' | 'liveActivity' | 'share' | 'getPhoneNumber' | 'getRealtimePhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'chooseAvatar' | 'agreePrivacyAuthorization';
|
|
95
|
+
'phone-number-no-quota-toast'?: boolean;
|
|
96
|
+
plain?: boolean;
|
|
97
|
+
'send-message-img'?: string;
|
|
98
|
+
'send-message-path'?: string;
|
|
99
|
+
'send-message-title'?: string;
|
|
100
|
+
'session-from'?: string;
|
|
101
|
+
'show-message-card'?: boolean;
|
|
102
|
+
size?: 'default' | 'mini';
|
|
103
|
+
type?: 'primary' | 'default' | 'warn';
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/weappIntrinsicElements/elements/camera.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
109
|
+
*/
|
|
110
|
+
type WeappIntrinsicElementCamera = WeappIntrinsicElementBaseAttributes & {
|
|
111
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
112
|
+
bindinitdone?: WeappIntrinsicEventHandler<unknown>;
|
|
113
|
+
bindscancode?: WeappIntrinsicEventHandler<unknown>;
|
|
114
|
+
bindstop?: WeappIntrinsicEventHandler<unknown>;
|
|
115
|
+
'device-position'?: 'front' | 'back';
|
|
116
|
+
flash?: 'auto' | 'on' | 'off' | 'torch';
|
|
117
|
+
'frame-size'?: 'small' | 'medium' | 'large';
|
|
118
|
+
mode?: 'normal' | 'scanCode';
|
|
119
|
+
resolution?: 'low' | 'medium' | 'high';
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/weappIntrinsicElements/elements/canvas.d.ts
|
|
123
|
+
/**
|
|
124
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html
|
|
125
|
+
*/
|
|
126
|
+
type WeappIntrinsicElementCanvas = WeappIntrinsicElementBaseAttributes & {
|
|
127
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
128
|
+
bindlongtap?: WeappIntrinsicEventHandler<unknown>;
|
|
129
|
+
bindtouchcancel?: WeappIntrinsicEventHandler<unknown>;
|
|
130
|
+
bindtouchend?: WeappIntrinsicEventHandler<unknown>;
|
|
131
|
+
bindtouchmove?: WeappIntrinsicEventHandler<unknown>;
|
|
132
|
+
bindtouchstart?: WeappIntrinsicEventHandler<unknown>;
|
|
133
|
+
'canvas-id'?: string;
|
|
134
|
+
'disable-scroll'?: boolean;
|
|
135
|
+
type?: string;
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/weappIntrinsicElements/elements/checkbox.d.ts
|
|
139
|
+
/**
|
|
140
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
141
|
+
*/
|
|
142
|
+
type WeappIntrinsicElementCheckbox = WeappIntrinsicElementBaseAttributes & {
|
|
143
|
+
checked?: boolean;
|
|
144
|
+
color?: string;
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
value?: string;
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/weappIntrinsicElements/elements/checkbox-group.d.ts
|
|
150
|
+
/**
|
|
151
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
152
|
+
*/
|
|
153
|
+
type WeappIntrinsicElementCheckboxGroup = WeappIntrinsicElementBaseAttributes & {
|
|
154
|
+
checked?: boolean;
|
|
155
|
+
color?: string;
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
value?: string;
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/weappIntrinsicElements/elements/cover-image.d.ts
|
|
161
|
+
/**
|
|
162
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html
|
|
163
|
+
*/
|
|
164
|
+
type WeappIntrinsicElementCoverImage = WeappIntrinsicElementBaseAttributes & {
|
|
165
|
+
'scroll-top'?: number | string;
|
|
166
|
+
};
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/weappIntrinsicElements/elements/cover-view.d.ts
|
|
169
|
+
/**
|
|
170
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html
|
|
171
|
+
*/
|
|
172
|
+
type WeappIntrinsicElementCoverView = WeappIntrinsicElementBaseAttributes & {
|
|
173
|
+
'scroll-top'?: number | string;
|
|
174
|
+
};
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/weappIntrinsicElements/elements/editor.d.ts
|
|
177
|
+
/**
|
|
178
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/editor.html
|
|
179
|
+
*/
|
|
180
|
+
type WeappIntrinsicElementEditor = WeappIntrinsicElementBaseAttributes & {
|
|
181
|
+
bindblur?: WeappIntrinsicEventHandler<unknown>;
|
|
182
|
+
bindfocus?: WeappIntrinsicEventHandler<unknown>;
|
|
183
|
+
bindinput?: WeappIntrinsicEventHandler<unknown>;
|
|
184
|
+
bindready?: WeappIntrinsicEventHandler<unknown>;
|
|
185
|
+
bindstatuschange?: WeappIntrinsicEventHandler<unknown>;
|
|
186
|
+
'confirm-hold'?: boolean;
|
|
187
|
+
'enable-formats'?: string[];
|
|
188
|
+
enterkeyhint?: string;
|
|
189
|
+
placeholder?: string;
|
|
190
|
+
'read-only'?: boolean;
|
|
191
|
+
'show-img-resize'?: boolean;
|
|
192
|
+
'show-img-size'?: boolean;
|
|
193
|
+
'show-img-toolbar'?: boolean;
|
|
194
|
+
};
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/weappIntrinsicElements/elements/form.d.ts
|
|
197
|
+
/**
|
|
198
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/form.html
|
|
199
|
+
*/
|
|
200
|
+
type WeappIntrinsicElementForm = WeappIntrinsicElementBaseAttributes & {
|
|
201
|
+
bindreset?: WeappIntrinsicEventHandler<unknown>;
|
|
202
|
+
bindsubmit?: WeappIntrinsicEventHandler<unknown>;
|
|
203
|
+
bindsubmitToGroup?: WeappIntrinsicEventHandler<unknown>;
|
|
204
|
+
name?: string;
|
|
205
|
+
'report-submit'?: boolean;
|
|
206
|
+
'report-submit-timeout'?: number;
|
|
207
|
+
value?: unknown;
|
|
208
|
+
};
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/weappIntrinsicElements/elements/functional-page-navigator.d.ts
|
|
211
|
+
/**
|
|
212
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/functional-page-navigator.html
|
|
213
|
+
*/
|
|
214
|
+
type WeappIntrinsicElementFunctionalPageNavigator = WeappIntrinsicElementBaseAttributes & {
|
|
215
|
+
args?: Record<string, unknown>;
|
|
216
|
+
bindcancel?: WeappIntrinsicEventHandler<unknown>;
|
|
217
|
+
bindfail?: WeappIntrinsicEventHandler<unknown>;
|
|
218
|
+
bindsuccess?: WeappIntrinsicEventHandler<unknown>;
|
|
219
|
+
name?: 'loginAndGetUserInfo' | 'requestPayment' | 'chooseAddress' | 'chooseInvoice' | 'chooseInvoiceTitle';
|
|
220
|
+
version?: 'develop' | 'trial' | 'release';
|
|
221
|
+
};
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/weappIntrinsicElements/elements/icon.d.ts
|
|
224
|
+
/**
|
|
225
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/icon.html
|
|
226
|
+
*/
|
|
227
|
+
type WeappIntrinsicElementIcon = WeappIntrinsicElementBaseAttributes & {
|
|
228
|
+
color?: string;
|
|
229
|
+
size?: number | string;
|
|
230
|
+
type?: string;
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/weappIntrinsicElements/elements/image.d.ts
|
|
234
|
+
/**
|
|
235
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/image.html
|
|
236
|
+
*/
|
|
237
|
+
type WeappIntrinsicElementImage = WeappIntrinsicElementBaseAttributes & {
|
|
238
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
239
|
+
bindload?: WeappIntrinsicEventHandler<unknown>;
|
|
240
|
+
'fade-in'?: boolean;
|
|
241
|
+
forceHttps?: boolean;
|
|
242
|
+
'lazy-load'?: boolean;
|
|
243
|
+
mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
|
244
|
+
'show-menu-by-longpress'?: boolean;
|
|
245
|
+
src?: string;
|
|
246
|
+
webp?: boolean;
|
|
247
|
+
};
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/weappIntrinsicElements/elements/import.d.ts
|
|
250
|
+
/**
|
|
251
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/import.html
|
|
252
|
+
*/
|
|
253
|
+
type WeappIntrinsicElementImport = WeappIntrinsicElementBaseAttributes & {
|
|
254
|
+
src?: string;
|
|
255
|
+
};
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/weappIntrinsicElements/elements/include.d.ts
|
|
258
|
+
/**
|
|
259
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/import.html#include
|
|
260
|
+
*/
|
|
261
|
+
type WeappIntrinsicElementInclude = WeappIntrinsicElementBaseAttributes & {
|
|
262
|
+
src?: string;
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/weappIntrinsicElements/elements/input.d.ts
|
|
266
|
+
/**
|
|
267
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/input.html
|
|
268
|
+
*/
|
|
269
|
+
type WeappIntrinsicElementInput = WeappIntrinsicElementBaseAttributes & {
|
|
270
|
+
'adjust-position'?: boolean;
|
|
271
|
+
'always-embed'?: boolean;
|
|
272
|
+
'auto-focus'?: boolean;
|
|
273
|
+
'bind:keyboardcompositionend'?: WeappIntrinsicEventHandler<unknown>;
|
|
274
|
+
'bind:keyboardcompositionstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
275
|
+
'bind:keyboardcompositionupdate'?: WeappIntrinsicEventHandler<unknown>;
|
|
276
|
+
'bind:selectionchange'?: WeappIntrinsicEventHandler<unknown>;
|
|
277
|
+
bindblur?: WeappIntrinsicEventHandler<unknown>;
|
|
278
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
279
|
+
bindconfirm?: WeappIntrinsicEventHandler<unknown>;
|
|
280
|
+
bindfocus?: WeappIntrinsicEventHandler<unknown>;
|
|
281
|
+
bindinput?: WeappIntrinsicEventHandler<unknown>;
|
|
282
|
+
bindkeyboardheightchange?: WeappIntrinsicEventHandler<unknown>;
|
|
283
|
+
bindnicknamereview?: WeappIntrinsicEventHandler<unknown>;
|
|
284
|
+
'confirm-hold'?: boolean;
|
|
285
|
+
'confirm-type'?: 'send' | 'search' | 'next' | 'go' | 'done';
|
|
286
|
+
cursor?: number;
|
|
287
|
+
'cursor-color'?: string;
|
|
288
|
+
'cursor-spacing'?: number;
|
|
289
|
+
disabled?: boolean;
|
|
290
|
+
focus?: boolean;
|
|
291
|
+
'hold-keyboard'?: boolean;
|
|
292
|
+
maxlength?: number;
|
|
293
|
+
password?: boolean;
|
|
294
|
+
placeholder?: string;
|
|
295
|
+
'placeholder-class'?: string;
|
|
296
|
+
'placeholder-style'?: string;
|
|
297
|
+
'safe-password-cert-path'?: string;
|
|
298
|
+
'safe-password-custom-hash'?: string;
|
|
299
|
+
'safe-password-length'?: number;
|
|
300
|
+
'safe-password-nonce'?: string;
|
|
301
|
+
'safe-password-salt'?: string;
|
|
302
|
+
'safe-password-time-stamp'?: number;
|
|
303
|
+
'selection-end'?: number;
|
|
304
|
+
'selection-start'?: number;
|
|
305
|
+
type?: 'text' | 'number' | 'idcard' | 'digit' | 'safe-password' | 'nickname';
|
|
306
|
+
value?: string;
|
|
307
|
+
'worklet:onkeyboardheightchange'?: WeappIntrinsicEventHandler<unknown>;
|
|
308
|
+
};
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/weappIntrinsicElements/elements/keyboard-accessory.d.ts
|
|
311
|
+
/**
|
|
312
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
313
|
+
*/
|
|
314
|
+
type WeappIntrinsicElementKeyboardAccessory = WeappIntrinsicElementBaseAttributes;
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/weappIntrinsicElements/elements/label.d.ts
|
|
317
|
+
/**
|
|
318
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/label.html
|
|
319
|
+
*/
|
|
320
|
+
type WeappIntrinsicElementLabel = WeappIntrinsicElementBaseAttributes & {
|
|
321
|
+
for?: string;
|
|
322
|
+
};
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/weappIntrinsicElements/elements/live-player.d.ts
|
|
325
|
+
/**
|
|
326
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/live-player.html
|
|
327
|
+
*/
|
|
328
|
+
type WeappIntrinsicElementLivePlayer = WeappIntrinsicElementBaseAttributes & {
|
|
329
|
+
'auto-pause-if-navigate'?: boolean;
|
|
330
|
+
'auto-pause-if-open-native'?: boolean;
|
|
331
|
+
autoplay?: boolean;
|
|
332
|
+
'background-mute'?: boolean;
|
|
333
|
+
bindaudiovolumenotify?: WeappIntrinsicEventHandler<unknown>;
|
|
334
|
+
bindcastinginterrupt?: WeappIntrinsicEventHandler<unknown>;
|
|
335
|
+
bindcastingstatechange?: WeappIntrinsicEventHandler<unknown>;
|
|
336
|
+
bindcastinguserselect?: WeappIntrinsicEventHandler<unknown>;
|
|
337
|
+
bindenterpictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
338
|
+
bindfullscreenchange?: WeappIntrinsicEventHandler<unknown>;
|
|
339
|
+
bindleavepictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
340
|
+
bindnetstatus?: WeappIntrinsicEventHandler<unknown>;
|
|
341
|
+
bindstatechange?: WeappIntrinsicEventHandler<unknown>;
|
|
342
|
+
'enable-auto-rotation'?: boolean;
|
|
343
|
+
'enable-casting'?: boolean;
|
|
344
|
+
'max-cache'?: number;
|
|
345
|
+
'min-cache'?: number;
|
|
346
|
+
mode?: 'live' | 'RTC';
|
|
347
|
+
muted?: boolean;
|
|
348
|
+
'object-fit'?: 'contain' | 'fillCrop';
|
|
349
|
+
orientation?: 'vertical' | 'horizontal';
|
|
350
|
+
'picture-in-picture-init-position'?: string;
|
|
351
|
+
'picture-in-picture-mode'?: '[]' | 'push' | 'pop';
|
|
352
|
+
'referrer-policy'?: 'origin' | 'no-referrer';
|
|
353
|
+
'sound-mode'?: 'speaker' | 'ear';
|
|
354
|
+
src?: string;
|
|
355
|
+
};
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region src/weappIntrinsicElements/elements/live-pusher.d.ts
|
|
358
|
+
/**
|
|
359
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/live-pusher.html
|
|
360
|
+
*/
|
|
361
|
+
type WeappIntrinsicElementLivePusher = WeappIntrinsicElementBaseAttributes & {
|
|
362
|
+
aspect?: string;
|
|
363
|
+
'audio-quality'?: string;
|
|
364
|
+
'audio-reverb-type'?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7';
|
|
365
|
+
'audio-volume-type'?: 'auto' | 'media' | 'voicecall';
|
|
366
|
+
'auto-focus'?: boolean;
|
|
367
|
+
autopush?: boolean;
|
|
368
|
+
'background-mute'?: boolean;
|
|
369
|
+
beauty?: number;
|
|
370
|
+
'beauty-style'?: 'smooth' | 'nature';
|
|
371
|
+
bindaudiovolumenotify?: WeappIntrinsicEventHandler<unknown>;
|
|
372
|
+
bindbgmcomplete?: WeappIntrinsicEventHandler<unknown>;
|
|
373
|
+
bindbgmprogress?: WeappIntrinsicEventHandler<unknown>;
|
|
374
|
+
bindbgmstart?: WeappIntrinsicEventHandler<unknown>;
|
|
375
|
+
bindenterpictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
376
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
377
|
+
bindleavepictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
378
|
+
bindnetstatus?: WeappIntrinsicEventHandler<unknown>;
|
|
379
|
+
bindstatechange?: WeappIntrinsicEventHandler<unknown>;
|
|
380
|
+
'custom-effect'?: boolean;
|
|
381
|
+
'device-position'?: string;
|
|
382
|
+
'enable-agc'?: boolean;
|
|
383
|
+
'enable-ans'?: boolean;
|
|
384
|
+
'enable-camera'?: boolean;
|
|
385
|
+
'enable-mic'?: boolean;
|
|
386
|
+
enableVideoCustomRender?: boolean;
|
|
387
|
+
'eye-bigness'?: number;
|
|
388
|
+
'face-thinness'?: number;
|
|
389
|
+
filter?: 'standard' | 'pink' | 'nostalgia' | 'blues' | 'romantic' | 'cool' | 'fresher' | 'solor' | 'aestheticism' | 'whitening' | 'cerisered';
|
|
390
|
+
fps?: number;
|
|
391
|
+
'local-mirror'?: 'auto' | 'enable' | 'disable';
|
|
392
|
+
'max-bitrate'?: number;
|
|
393
|
+
'min-bitrate'?: number;
|
|
394
|
+
mirror?: boolean;
|
|
395
|
+
mode?: 'QVGA' | 'HVGA' | 'SD' | 'HD' | 'FHD' | 'RTC';
|
|
396
|
+
muted?: boolean;
|
|
397
|
+
orientation?: 'vertical' | 'horizontal';
|
|
398
|
+
'picture-in-picture-mode'?: '[]' | 'push' | 'pop';
|
|
399
|
+
'remote-mirror'?: boolean;
|
|
400
|
+
'skin-smoothness'?: number;
|
|
401
|
+
'skin-whiteness'?: number;
|
|
402
|
+
url?: string;
|
|
403
|
+
'video-height'?: number;
|
|
404
|
+
'video-width'?: number;
|
|
405
|
+
'voice-changer-type'?: number;
|
|
406
|
+
'waiting-image'?: string;
|
|
407
|
+
'waiting-image-hash'?: string;
|
|
408
|
+
whiteness?: number;
|
|
409
|
+
zoom?: boolean;
|
|
410
|
+
};
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/weappIntrinsicElements/elements/map.d.ts
|
|
413
|
+
/**
|
|
414
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/map.html
|
|
415
|
+
*/
|
|
416
|
+
type WeappIntrinsicElementMap = WeappIntrinsicElementBaseAttributes & {
|
|
417
|
+
alpha?: number;
|
|
418
|
+
anchor?: Record<string, unknown>;
|
|
419
|
+
anchorX?: number;
|
|
420
|
+
anchorY?: number;
|
|
421
|
+
'aria-label'?: string;
|
|
422
|
+
arrowIconPath?: string;
|
|
423
|
+
arrowLine?: boolean;
|
|
424
|
+
bgColor?: string;
|
|
425
|
+
bindabilityfail?: WeappIntrinsicEventHandler<unknown>;
|
|
426
|
+
bindabilitysuccess?: WeappIntrinsicEventHandler<unknown>;
|
|
427
|
+
bindauthsuccess?: WeappIntrinsicEventHandler<unknown>;
|
|
428
|
+
bindcallouttap?: WeappIntrinsicEventHandler<unknown>;
|
|
429
|
+
bindcontroltap?: WeappIntrinsicEventHandler<unknown>;
|
|
430
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
431
|
+
bindinterpolatepoint?: WeappIntrinsicEventHandler<unknown>;
|
|
432
|
+
bindlabeltap?: WeappIntrinsicEventHandler<unknown>;
|
|
433
|
+
bindmarkertap?: WeappIntrinsicEventHandler<unknown>;
|
|
434
|
+
bindpoitap?: WeappIntrinsicEventHandler<unknown>;
|
|
435
|
+
bindpolylinetap?: WeappIntrinsicEventHandler<unknown>;
|
|
436
|
+
bindregionchange?: WeappIntrinsicEventHandler<unknown>;
|
|
437
|
+
bindtap?: WeappIntrinsicEventHandler<unknown>;
|
|
438
|
+
bindupdated?: WeappIntrinsicEventHandler<unknown>;
|
|
439
|
+
borderColor?: string;
|
|
440
|
+
borderRadius?: number;
|
|
441
|
+
borderWidth?: number;
|
|
442
|
+
callout?: Record<string, unknown>;
|
|
443
|
+
causedBy?: string;
|
|
444
|
+
circles?: unknown[];
|
|
445
|
+
clickable?: boolean;
|
|
446
|
+
clusterId?: number;
|
|
447
|
+
collision?: string;
|
|
448
|
+
collisionRelation?: string;
|
|
449
|
+
color?: string;
|
|
450
|
+
colorList?: unknown[];
|
|
451
|
+
content?: string;
|
|
452
|
+
controls?: unknown[];
|
|
453
|
+
covers?: unknown[];
|
|
454
|
+
customCallout?: Record<string, unknown>;
|
|
455
|
+
dashArray?: number[];
|
|
456
|
+
display?: string;
|
|
457
|
+
dottedLine?: boolean;
|
|
458
|
+
'enable-3D'?: boolean;
|
|
459
|
+
'enable-auto-max-overlooking'?: boolean;
|
|
460
|
+
'enable-building'?: boolean;
|
|
461
|
+
'enable-overlooking'?: boolean;
|
|
462
|
+
'enable-poi'?: boolean;
|
|
463
|
+
'enable-rotate'?: boolean;
|
|
464
|
+
'enable-satellite'?: boolean;
|
|
465
|
+
'enable-scroll'?: boolean;
|
|
466
|
+
'enable-traffic'?: boolean;
|
|
467
|
+
'enable-zoom'?: boolean;
|
|
468
|
+
endIndex?: number;
|
|
469
|
+
fillColor?: string;
|
|
470
|
+
fontSize?: number;
|
|
471
|
+
height?: number;
|
|
472
|
+
iconPath?: string;
|
|
473
|
+
id?: number;
|
|
474
|
+
'include-points'?: unknown[];
|
|
475
|
+
joinCluster?: boolean;
|
|
476
|
+
label?: Record<string, unknown>;
|
|
477
|
+
latitude?: number;
|
|
478
|
+
'layer-style'?: number;
|
|
479
|
+
left?: number;
|
|
480
|
+
level?: string;
|
|
481
|
+
longitude?: number;
|
|
482
|
+
markers?: unknown[];
|
|
483
|
+
'max-scale'?: number;
|
|
484
|
+
'min-scale'?: number;
|
|
485
|
+
name?: string;
|
|
486
|
+
padding?: number;
|
|
487
|
+
points?: unknown[];
|
|
488
|
+
polygons?: unknown[];
|
|
489
|
+
polyline?: unknown[];
|
|
490
|
+
position?: Record<string, unknown>;
|
|
491
|
+
radius?: number;
|
|
492
|
+
rotate?: number;
|
|
493
|
+
scale?: number;
|
|
494
|
+
segmentTexts?: Record<string, unknown>[];
|
|
495
|
+
setting?: Record<string, unknown>;
|
|
496
|
+
'show-compass'?: boolean;
|
|
497
|
+
'show-location'?: boolean;
|
|
498
|
+
'show-scale'?: boolean;
|
|
499
|
+
skew?: number;
|
|
500
|
+
startIndex?: number;
|
|
501
|
+
strokeColor?: string;
|
|
502
|
+
strokeWidth?: number;
|
|
503
|
+
subkey?: string;
|
|
504
|
+
textAlign?: string;
|
|
505
|
+
textColor?: string;
|
|
506
|
+
textStyle?: Record<string, unknown>;
|
|
507
|
+
title?: string;
|
|
508
|
+
top?: number;
|
|
509
|
+
type?: string;
|
|
510
|
+
width?: number;
|
|
511
|
+
x?: number;
|
|
512
|
+
y?: number;
|
|
513
|
+
zIndex?: number;
|
|
514
|
+
};
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region src/weappIntrinsicElements/elements/match-media.d.ts
|
|
517
|
+
/**
|
|
518
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/match-media.html
|
|
519
|
+
*/
|
|
520
|
+
type WeappIntrinsicElementMatchMedia = WeappIntrinsicElementBaseAttributes & {
|
|
521
|
+
height?: number;
|
|
522
|
+
'max-height'?: number;
|
|
523
|
+
'max-width'?: number;
|
|
524
|
+
'min-height'?: number;
|
|
525
|
+
'min-width'?: number;
|
|
526
|
+
orientation?: string;
|
|
527
|
+
width?: number;
|
|
528
|
+
};
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/weappIntrinsicElements/elements/movable-area.d.ts
|
|
531
|
+
/**
|
|
532
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
533
|
+
*/
|
|
534
|
+
type WeappIntrinsicElementMovableArea = WeappIntrinsicElementBaseAttributes & {
|
|
535
|
+
animation?: boolean;
|
|
536
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
537
|
+
bindscale?: WeappIntrinsicEventHandler<unknown>;
|
|
538
|
+
damping?: number;
|
|
539
|
+
direction?: string;
|
|
540
|
+
disabled?: boolean;
|
|
541
|
+
friction?: number;
|
|
542
|
+
htouchmove?: WeappIntrinsicEventHandler<unknown>;
|
|
543
|
+
inertia?: boolean;
|
|
544
|
+
'out-of-bounds'?: boolean;
|
|
545
|
+
scale?: boolean;
|
|
546
|
+
'scale-max'?: number;
|
|
547
|
+
'scale-min'?: number;
|
|
548
|
+
'scale-value'?: number;
|
|
549
|
+
vtouchmove?: WeappIntrinsicEventHandler<unknown>;
|
|
550
|
+
x?: number | string;
|
|
551
|
+
y?: number | string;
|
|
552
|
+
};
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region src/weappIntrinsicElements/elements/movable-view.d.ts
|
|
555
|
+
/**
|
|
556
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
557
|
+
*/
|
|
558
|
+
type WeappIntrinsicElementMovableView = WeappIntrinsicElementBaseAttributes & {
|
|
559
|
+
animation?: boolean;
|
|
560
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
561
|
+
bindscale?: WeappIntrinsicEventHandler<unknown>;
|
|
562
|
+
damping?: number;
|
|
563
|
+
direction?: string;
|
|
564
|
+
disabled?: boolean;
|
|
565
|
+
friction?: number;
|
|
566
|
+
htouchmove?: WeappIntrinsicEventHandler<unknown>;
|
|
567
|
+
inertia?: boolean;
|
|
568
|
+
'out-of-bounds'?: boolean;
|
|
569
|
+
scale?: boolean;
|
|
570
|
+
'scale-max'?: number;
|
|
571
|
+
'scale-min'?: number;
|
|
572
|
+
'scale-value'?: number;
|
|
573
|
+
vtouchmove?: WeappIntrinsicEventHandler<unknown>;
|
|
574
|
+
x?: number | string;
|
|
575
|
+
y?: number | string;
|
|
576
|
+
};
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region src/weappIntrinsicElements/elements/navigation-bar.d.ts
|
|
579
|
+
/**
|
|
580
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
|
|
581
|
+
*/
|
|
582
|
+
type WeappIntrinsicElementNavigationBar = WeappIntrinsicElementBaseAttributes & {
|
|
583
|
+
'background-color'?: string;
|
|
584
|
+
'color-animation-duration'?: number;
|
|
585
|
+
'color-animation-timing-func'?: string;
|
|
586
|
+
'front-color'?: string;
|
|
587
|
+
loading?: boolean;
|
|
588
|
+
title?: string;
|
|
589
|
+
};
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/weappIntrinsicElements/elements/navigator.d.ts
|
|
592
|
+
/**
|
|
593
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
594
|
+
*/
|
|
595
|
+
type WeappIntrinsicElementNavigator = WeappIntrinsicElementBaseAttributes & {
|
|
596
|
+
'app-id'?: string;
|
|
597
|
+
bindcomplete?: string;
|
|
598
|
+
bindfail?: string;
|
|
599
|
+
bindsuccess?: string;
|
|
600
|
+
delta?: number;
|
|
601
|
+
'extra-data'?: Record<string, unknown>;
|
|
602
|
+
'hover-class'?: string;
|
|
603
|
+
'hover-start-time'?: number;
|
|
604
|
+
'hover-stay-time'?: number;
|
|
605
|
+
'hover-stop-propagation'?: boolean;
|
|
606
|
+
'open-type'?: 'navigate' | 'redirect' | 'switchTab' | 'reLaunch' | 'navigateBack' | 'exit';
|
|
607
|
+
path?: string;
|
|
608
|
+
'short-link'?: string;
|
|
609
|
+
target?: 'self' | 'miniProgram';
|
|
610
|
+
url?: string;
|
|
611
|
+
version?: 'develop' | 'trial' | 'release';
|
|
612
|
+
};
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region src/weappIntrinsicElements/elements/official-account.d.ts
|
|
615
|
+
/**
|
|
616
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html
|
|
617
|
+
*/
|
|
618
|
+
type WeappIntrinsicElementOfficialAccount = WeappIntrinsicElementBaseAttributes & {
|
|
619
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
620
|
+
bindload?: WeappIntrinsicEventHandler<unknown>;
|
|
621
|
+
errMsg?: string;
|
|
622
|
+
status?: number;
|
|
623
|
+
};
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/weappIntrinsicElements/elements/open-data.d.ts
|
|
626
|
+
/**
|
|
627
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html
|
|
628
|
+
*/
|
|
629
|
+
type WeappIntrinsicElementOpenData = WeappIntrinsicElementBaseAttributes & {
|
|
630
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
631
|
+
'default-avatar'?: string;
|
|
632
|
+
'default-text'?: string;
|
|
633
|
+
lang?: 'en' | 'zh_CN' | 'zh_TW';
|
|
634
|
+
'open-gid'?: string;
|
|
635
|
+
type?: 'groupName';
|
|
636
|
+
};
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/weappIntrinsicElements/elements/page-container.d.ts
|
|
639
|
+
/**
|
|
640
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
|
|
641
|
+
*/
|
|
642
|
+
type WeappIntrinsicElementPageContainer = WeappIntrinsicElementBaseAttributes & {
|
|
643
|
+
'bind:afterenter'?: WeappIntrinsicEventHandler<unknown>;
|
|
644
|
+
'bind:afterleave'?: WeappIntrinsicEventHandler<unknown>;
|
|
645
|
+
'bind:beforeenter'?: WeappIntrinsicEventHandler<unknown>;
|
|
646
|
+
'bind:beforeleave'?: WeappIntrinsicEventHandler<unknown>;
|
|
647
|
+
'bind:clickoverlay'?: WeappIntrinsicEventHandler<unknown>;
|
|
648
|
+
'bind:enter'?: WeappIntrinsicEventHandler<unknown>;
|
|
649
|
+
'bind:leave'?: WeappIntrinsicEventHandler<unknown>;
|
|
650
|
+
'close-on-slide-down'?: boolean;
|
|
651
|
+
'custom-style'?: string;
|
|
652
|
+
duration?: number;
|
|
653
|
+
overlay?: boolean;
|
|
654
|
+
'overlay-style'?: string;
|
|
655
|
+
position?: string;
|
|
656
|
+
round?: boolean;
|
|
657
|
+
show?: boolean;
|
|
658
|
+
'z-index'?: number;
|
|
659
|
+
};
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region src/weappIntrinsicElements/elements/page-meta.d.ts
|
|
662
|
+
/**
|
|
663
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-meta.html
|
|
664
|
+
*/
|
|
665
|
+
type WeappIntrinsicElementPageMeta = WeappIntrinsicElementBaseAttributes & {
|
|
666
|
+
'background-color'?: string;
|
|
667
|
+
'background-color-bottom'?: string;
|
|
668
|
+
'background-color-top'?: string;
|
|
669
|
+
'background-text-style'?: string;
|
|
670
|
+
bindresize?: WeappIntrinsicEventHandler<unknown>;
|
|
671
|
+
bindscroll?: WeappIntrinsicEventHandler<unknown>;
|
|
672
|
+
bindscrolldone?: WeappIntrinsicEventHandler<unknown>;
|
|
673
|
+
'page-font-size'?: string;
|
|
674
|
+
'page-orientation'?: string;
|
|
675
|
+
'page-style'?: string;
|
|
676
|
+
'root-background-color'?: string;
|
|
677
|
+
'root-font-size'?: string;
|
|
678
|
+
'scroll-duration'?: number;
|
|
679
|
+
'scroll-top'?: string;
|
|
680
|
+
};
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region src/weappIntrinsicElements/elements/picker.d.ts
|
|
683
|
+
/**
|
|
684
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker.html
|
|
685
|
+
*/
|
|
686
|
+
type WeappIntrinsicElementPicker = WeappIntrinsicElementBaseAttributes & {
|
|
687
|
+
bindcancel?: WeappIntrinsicEventHandler<unknown>;
|
|
688
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
689
|
+
bindcolumnchange?: WeappIntrinsicEventHandler<unknown>;
|
|
690
|
+
'custom-item'?: string;
|
|
691
|
+
disabled?: boolean;
|
|
692
|
+
end?: string;
|
|
693
|
+
fields?: string;
|
|
694
|
+
'header-text'?: string;
|
|
695
|
+
level?: string;
|
|
696
|
+
mode?: 'selector' | 'multiSelector' | 'time' | 'date' | 'region';
|
|
697
|
+
range?: unknown[] | Record<string, unknown>[];
|
|
698
|
+
'range-key'?: string;
|
|
699
|
+
start?: string;
|
|
700
|
+
value?: unknown[];
|
|
701
|
+
};
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/weappIntrinsicElements/elements/picker-view.d.ts
|
|
704
|
+
/**
|
|
705
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html
|
|
706
|
+
*/
|
|
707
|
+
type WeappIntrinsicElementPickerView = WeappIntrinsicElementBaseAttributes & {
|
|
708
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
709
|
+
bindpickend?: WeappIntrinsicEventHandler<unknown>;
|
|
710
|
+
bindpickstart?: WeappIntrinsicEventHandler<unknown>;
|
|
711
|
+
'immediate-change'?: boolean;
|
|
712
|
+
'indicator-class'?: string;
|
|
713
|
+
'indicator-style'?: string;
|
|
714
|
+
'mask-class'?: string;
|
|
715
|
+
'mask-style'?: string;
|
|
716
|
+
value?: number[];
|
|
717
|
+
};
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region src/weappIntrinsicElements/elements/picker-view-column.d.ts
|
|
720
|
+
/**
|
|
721
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html
|
|
722
|
+
*/
|
|
723
|
+
type WeappIntrinsicElementPickerViewColumn = WeappIntrinsicElementBaseAttributes & {
|
|
724
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
725
|
+
bindpickend?: WeappIntrinsicEventHandler<unknown>;
|
|
726
|
+
bindpickstart?: WeappIntrinsicEventHandler<unknown>;
|
|
727
|
+
'immediate-change'?: boolean;
|
|
728
|
+
'indicator-class'?: string;
|
|
729
|
+
'indicator-style'?: string;
|
|
730
|
+
'mask-class'?: string;
|
|
731
|
+
'mask-style'?: string;
|
|
732
|
+
value?: number[];
|
|
733
|
+
};
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region src/weappIntrinsicElements/elements/progress.d.ts
|
|
736
|
+
/**
|
|
737
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/progress.html
|
|
738
|
+
*/
|
|
739
|
+
type WeappIntrinsicElementProgress = WeappIntrinsicElementBaseAttributes & {
|
|
740
|
+
active?: boolean;
|
|
741
|
+
'active-mode'?: string;
|
|
742
|
+
activeColor?: string;
|
|
743
|
+
backgroundColor?: string;
|
|
744
|
+
bindactiveend?: WeappIntrinsicEventHandler<unknown>;
|
|
745
|
+
'border-radius'?: number | string;
|
|
746
|
+
color?: string;
|
|
747
|
+
duration?: number;
|
|
748
|
+
'font-size'?: number | string;
|
|
749
|
+
percent?: number;
|
|
750
|
+
'show-info'?: boolean;
|
|
751
|
+
'stroke-width'?: number | string;
|
|
752
|
+
};
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region src/weappIntrinsicElements/elements/radio.d.ts
|
|
755
|
+
/**
|
|
756
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio.html
|
|
757
|
+
*/
|
|
758
|
+
type WeappIntrinsicElementRadio = WeappIntrinsicElementBaseAttributes & {
|
|
759
|
+
checked?: boolean;
|
|
760
|
+
color?: string;
|
|
761
|
+
disabled?: boolean;
|
|
762
|
+
value?: string;
|
|
763
|
+
};
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region src/weappIntrinsicElements/elements/radio-group.d.ts
|
|
766
|
+
/**
|
|
767
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio.html
|
|
768
|
+
*/
|
|
769
|
+
type WeappIntrinsicElementRadioGroup = WeappIntrinsicElementBaseAttributes & {
|
|
770
|
+
checked?: boolean;
|
|
771
|
+
color?: string;
|
|
772
|
+
disabled?: boolean;
|
|
773
|
+
value?: string;
|
|
774
|
+
};
|
|
775
|
+
//#endregion
|
|
776
|
+
//#region src/weappIntrinsicElements/elements/rich-text.d.ts
|
|
777
|
+
/**
|
|
778
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html
|
|
779
|
+
*/
|
|
780
|
+
type WeappIntrinsicElementRichText = WeappIntrinsicElementBaseAttributes & {
|
|
781
|
+
attrs?: Record<string, unknown>;
|
|
782
|
+
children?: unknown[];
|
|
783
|
+
mode?: 'default' | 'compat' | 'aggressive' | 'inline-block' | 'web' | 'web-static';
|
|
784
|
+
name?: string;
|
|
785
|
+
nodes?: unknown[] | string;
|
|
786
|
+
space?: 'ensp' | 'emsp' | 'nbsp';
|
|
787
|
+
text?: string;
|
|
788
|
+
'user-select'?: boolean;
|
|
789
|
+
};
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region src/weappIntrinsicElements/elements/scroll-view.d.ts
|
|
792
|
+
/**
|
|
793
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html
|
|
794
|
+
*/
|
|
795
|
+
type WeappIntrinsicElementScrollView = WeappIntrinsicElementBaseAttributes & {
|
|
796
|
+
'associative-container'?: 'draggable-sheet' | 'nested-scroll-view' | 'pop-gesture';
|
|
797
|
+
'bind:refresherstatuschange'?: WeappIntrinsicEventHandler<unknown>;
|
|
798
|
+
'bind:refresherwillrefresh'?: WeappIntrinsicEventHandler<unknown>;
|
|
799
|
+
'bind:scroll'?: WeappIntrinsicEventHandler<unknown>;
|
|
800
|
+
'bind:scrollend'?: WeappIntrinsicEventHandler<unknown>;
|
|
801
|
+
'bind:scrollstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
802
|
+
binddragend?: WeappIntrinsicEventHandler<unknown>;
|
|
803
|
+
binddragging?: WeappIntrinsicEventHandler<unknown>;
|
|
804
|
+
binddragstart?: WeappIntrinsicEventHandler<unknown>;
|
|
805
|
+
bindrefresherabort?: WeappIntrinsicEventHandler<unknown>;
|
|
806
|
+
bindrefresherpulling?: WeappIntrinsicEventHandler<unknown>;
|
|
807
|
+
bindrefresherrefresh?: WeappIntrinsicEventHandler<unknown>;
|
|
808
|
+
bindrefresherrestore?: WeappIntrinsicEventHandler<unknown>;
|
|
809
|
+
bindscroll?: WeappIntrinsicEventHandler<unknown>;
|
|
810
|
+
bindscrolltolower?: WeappIntrinsicEventHandler<unknown>;
|
|
811
|
+
bindscrolltoupper?: WeappIntrinsicEventHandler<unknown>;
|
|
812
|
+
bounces?: boolean;
|
|
813
|
+
'cache-extent'?: number;
|
|
814
|
+
clip?: boolean;
|
|
815
|
+
'enable-back-to-top'?: boolean;
|
|
816
|
+
'enable-flex'?: boolean;
|
|
817
|
+
'enable-passive'?: boolean;
|
|
818
|
+
enhanced?: boolean;
|
|
819
|
+
'fast-deceleration'?: boolean;
|
|
820
|
+
'lower-threshold'?: number | string;
|
|
821
|
+
'min-drag-distance'?: number;
|
|
822
|
+
padding?: unknown[];
|
|
823
|
+
'paging-enabled'?: boolean;
|
|
824
|
+
'refresher-background'?: string;
|
|
825
|
+
'refresher-ballistic-refresh-enabled'?: boolean;
|
|
826
|
+
'refresher-default-style'?: string;
|
|
827
|
+
'refresher-enabled'?: boolean;
|
|
828
|
+
'refresher-threshold'?: number;
|
|
829
|
+
'refresher-triggered'?: boolean;
|
|
830
|
+
'refresher-two-level-close-threshold'?: number;
|
|
831
|
+
'refresher-two-level-enabled'?: boolean;
|
|
832
|
+
'refresher-two-level-pinned'?: boolean;
|
|
833
|
+
'refresher-two-level-scroll-enabled'?: boolean;
|
|
834
|
+
'refresher-two-level-threshold'?: number;
|
|
835
|
+
'refresher-two-level-triggered'?: boolean;
|
|
836
|
+
reverse?: boolean;
|
|
837
|
+
'scroll-anchoring'?: boolean;
|
|
838
|
+
'scroll-into-view'?: string;
|
|
839
|
+
'scroll-into-view-alignment'?: 'start' | 'center' | 'end' | 'nearest';
|
|
840
|
+
'scroll-into-view-offset'?: number;
|
|
841
|
+
'scroll-into-view-within-extent'?: boolean;
|
|
842
|
+
'scroll-left'?: number | string;
|
|
843
|
+
'scroll-top'?: number | string;
|
|
844
|
+
'scroll-with-animation'?: boolean;
|
|
845
|
+
'scroll-x'?: boolean;
|
|
846
|
+
'scroll-y'?: boolean;
|
|
847
|
+
'show-scrollbar'?: boolean;
|
|
848
|
+
type?: 'list' | 'custom' | 'nested';
|
|
849
|
+
'upper-threshold'?: number | string;
|
|
850
|
+
'using-sticky'?: boolean;
|
|
851
|
+
'worklet:adjust-deceleration-velocity'?: WeappIntrinsicEventHandler<unknown>;
|
|
852
|
+
'worklet:onscrollend'?: WeappIntrinsicEventHandler<unknown>;
|
|
853
|
+
'worklet:onscrollstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
854
|
+
'worklet:onscrollupdate'?: WeappIntrinsicEventHandler<unknown>;
|
|
855
|
+
};
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region src/weappIntrinsicElements/elements/share-element.d.ts
|
|
858
|
+
/**
|
|
859
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/share-element.html
|
|
860
|
+
*/
|
|
861
|
+
type WeappIntrinsicElementShareElement = WeappIntrinsicElementBaseAttributes & {
|
|
862
|
+
duration?: number;
|
|
863
|
+
'easing-function'?: string;
|
|
864
|
+
key?: string;
|
|
865
|
+
'rect-tween-type'?: 'materialRectArc' | 'materialRectCenterArc' | 'linear' | 'elasticIn' | 'elasticOut' | 'elasticInOut' | 'bounceIn' | 'bounceOut' | 'bounceInOut' | 'cubic-bezier(x1, y1, x2, y2';
|
|
866
|
+
'shuttle-on-pop'?: string;
|
|
867
|
+
'shuttle-on-push'?: 'from' | 'to';
|
|
868
|
+
transform?: boolean;
|
|
869
|
+
'transition-on-gesture'?: boolean;
|
|
870
|
+
'worklet:onframe'?: WeappIntrinsicEventHandler<unknown>;
|
|
871
|
+
};
|
|
872
|
+
//#endregion
|
|
873
|
+
//#region src/weappIntrinsicElements/elements/slider.d.ts
|
|
874
|
+
/**
|
|
875
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/slider.html
|
|
876
|
+
*/
|
|
877
|
+
type WeappIntrinsicElementSlider = WeappIntrinsicElementBaseAttributes & {
|
|
878
|
+
activeColor?: string;
|
|
879
|
+
backgroundColor?: string;
|
|
880
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
881
|
+
bindchanging?: WeappIntrinsicEventHandler<unknown>;
|
|
882
|
+
'block-color'?: string;
|
|
883
|
+
'block-size'?: number;
|
|
884
|
+
color?: string;
|
|
885
|
+
disabled?: boolean;
|
|
886
|
+
max?: number;
|
|
887
|
+
min?: number;
|
|
888
|
+
'selected-color'?: string;
|
|
889
|
+
'show-value'?: boolean;
|
|
890
|
+
step?: number;
|
|
891
|
+
value?: number;
|
|
892
|
+
};
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region src/weappIntrinsicElements/elements/slot.d.ts
|
|
895
|
+
/**
|
|
896
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E7%BB%84%E4%BB%B6-wxml-%E7%9A%84-slot
|
|
897
|
+
*/
|
|
898
|
+
type WeappIntrinsicElementSlot = WeappIntrinsicElementBaseAttributes & {
|
|
899
|
+
name?: string;
|
|
900
|
+
};
|
|
901
|
+
//#endregion
|
|
902
|
+
//#region src/weappIntrinsicElements/elements/swiper.d.ts
|
|
903
|
+
/**
|
|
904
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
|
|
905
|
+
*/
|
|
906
|
+
type WeappIntrinsicElementSwiper = WeappIntrinsicElementBaseAttributes & {
|
|
907
|
+
autoplay?: boolean;
|
|
908
|
+
bindanimationfinish?: WeappIntrinsicEventHandler<unknown>;
|
|
909
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
910
|
+
bindtransition?: WeappIntrinsicEventHandler<unknown>;
|
|
911
|
+
'cache-extent'?: number;
|
|
912
|
+
circular?: boolean;
|
|
913
|
+
current?: number;
|
|
914
|
+
direction?: 'all' | 'positive' | 'negative';
|
|
915
|
+
'display-multiple-items'?: number;
|
|
916
|
+
duration?: number;
|
|
917
|
+
'easing-function'?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic';
|
|
918
|
+
'indicator-active-color'?: string;
|
|
919
|
+
'indicator-alignment'?: number[] | string;
|
|
920
|
+
'indicator-color'?: string;
|
|
921
|
+
'indicator-dots'?: boolean;
|
|
922
|
+
'indicator-height'?: number;
|
|
923
|
+
'indicator-margin'?: number;
|
|
924
|
+
'indicator-offset'?: number[];
|
|
925
|
+
'indicator-radius'?: number;
|
|
926
|
+
'indicator-spacing'?: number;
|
|
927
|
+
'indicator-type'?: 'normal' | 'worm' | 'wormThin' | 'wormUnderground' | 'wormThinUnderground' | 'expand' | 'jump' | 'jumpWithOffset' | 'scroll' | 'scrollFixedCenter' | 'slide' | 'slideUnderground' | 'scale' | 'swap' | 'swapYRotation' | 'color';
|
|
928
|
+
'indicator-width'?: number;
|
|
929
|
+
interval?: number;
|
|
930
|
+
'layout-type'?: 'normal' | 'stackLeft' | 'stackRight' | 'tinder' | 'transformer';
|
|
931
|
+
'next-margin'?: string;
|
|
932
|
+
'previous-margin'?: string;
|
|
933
|
+
'scroll-with-animation'?: boolean;
|
|
934
|
+
'snap-to-edge'?: boolean;
|
|
935
|
+
'transformer-type'?: 'scaleAndFade' | 'accordion' | 'threeD' | 'zoomIn' | 'zoomOut' | 'deepthPage';
|
|
936
|
+
vertical?: boolean;
|
|
937
|
+
'worklet:onscrollend'?: WeappIntrinsicEventHandler<unknown>;
|
|
938
|
+
'worklet:onscrollstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
939
|
+
'worklet:onscrollupdate'?: WeappIntrinsicEventHandler<unknown>;
|
|
940
|
+
};
|
|
941
|
+
//#endregion
|
|
942
|
+
//#region src/weappIntrinsicElements/elements/swiper-item.d.ts
|
|
943
|
+
/**
|
|
944
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
|
|
945
|
+
*/
|
|
946
|
+
type WeappIntrinsicElementSwiperItem = WeappIntrinsicElementBaseAttributes & {
|
|
947
|
+
autoplay?: boolean;
|
|
948
|
+
bindanimationfinish?: WeappIntrinsicEventHandler<unknown>;
|
|
949
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
950
|
+
bindtransition?: WeappIntrinsicEventHandler<unknown>;
|
|
951
|
+
'cache-extent'?: number;
|
|
952
|
+
circular?: boolean;
|
|
953
|
+
current?: number;
|
|
954
|
+
direction?: 'all' | 'positive' | 'negative';
|
|
955
|
+
'display-multiple-items'?: number;
|
|
956
|
+
duration?: number;
|
|
957
|
+
'easing-function'?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic';
|
|
958
|
+
'indicator-active-color'?: string;
|
|
959
|
+
'indicator-alignment'?: number[] | string;
|
|
960
|
+
'indicator-color'?: string;
|
|
961
|
+
'indicator-dots'?: boolean;
|
|
962
|
+
'indicator-height'?: number;
|
|
963
|
+
'indicator-margin'?: number;
|
|
964
|
+
'indicator-offset'?: number[];
|
|
965
|
+
'indicator-radius'?: number;
|
|
966
|
+
'indicator-spacing'?: number;
|
|
967
|
+
'indicator-type'?: 'normal' | 'worm' | 'wormThin' | 'wormUnderground' | 'wormThinUnderground' | 'expand' | 'jump' | 'jumpWithOffset' | 'scroll' | 'scrollFixedCenter' | 'slide' | 'slideUnderground' | 'scale' | 'swap' | 'swapYRotation' | 'color';
|
|
968
|
+
'indicator-width'?: number;
|
|
969
|
+
interval?: number;
|
|
970
|
+
'layout-type'?: 'normal' | 'stackLeft' | 'stackRight' | 'tinder' | 'transformer';
|
|
971
|
+
'next-margin'?: string;
|
|
972
|
+
'previous-margin'?: string;
|
|
973
|
+
'scroll-with-animation'?: boolean;
|
|
974
|
+
'snap-to-edge'?: boolean;
|
|
975
|
+
'transformer-type'?: 'scaleAndFade' | 'accordion' | 'threeD' | 'zoomIn' | 'zoomOut' | 'deepthPage';
|
|
976
|
+
vertical?: boolean;
|
|
977
|
+
'worklet:onscrollend'?: WeappIntrinsicEventHandler<unknown>;
|
|
978
|
+
'worklet:onscrollstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
979
|
+
'worklet:onscrollupdate'?: WeappIntrinsicEventHandler<unknown>;
|
|
980
|
+
};
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region src/weappIntrinsicElements/elements/switch.d.ts
|
|
983
|
+
/**
|
|
984
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
985
|
+
*/
|
|
986
|
+
type WeappIntrinsicElementSwitch = WeappIntrinsicElementBaseAttributes & {
|
|
987
|
+
bindchange?: WeappIntrinsicEventHandler<unknown>;
|
|
988
|
+
checked?: boolean;
|
|
989
|
+
color?: string;
|
|
990
|
+
disabled?: boolean;
|
|
991
|
+
type?: string;
|
|
992
|
+
};
|
|
993
|
+
//#endregion
|
|
994
|
+
//#region src/weappIntrinsicElements/elements/template.d.ts
|
|
995
|
+
/**
|
|
996
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/template.html
|
|
997
|
+
*/
|
|
998
|
+
type WeappIntrinsicElementTemplate = WeappIntrinsicElementBaseAttributes & {
|
|
999
|
+
data?: unknown;
|
|
1000
|
+
is?: string;
|
|
1001
|
+
name?: string;
|
|
1002
|
+
};
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region src/weappIntrinsicElements/elements/text.d.ts
|
|
1005
|
+
/**
|
|
1006
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/text.html
|
|
1007
|
+
*/
|
|
1008
|
+
type WeappIntrinsicElementText = WeappIntrinsicElementBaseAttributes & {
|
|
1009
|
+
decode?: boolean;
|
|
1010
|
+
'max-lines'?: number;
|
|
1011
|
+
overflow?: 'clip' | 'fade' | 'ellipsis' | 'visible';
|
|
1012
|
+
selectable?: boolean;
|
|
1013
|
+
space?: 'ensp' | 'emsp' | 'nbsp';
|
|
1014
|
+
'user-select'?: boolean;
|
|
1015
|
+
};
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/weappIntrinsicElements/elements/textarea.d.ts
|
|
1018
|
+
/**
|
|
1019
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html
|
|
1020
|
+
*/
|
|
1021
|
+
type WeappIntrinsicElementTextarea = WeappIntrinsicElementBaseAttributes & {
|
|
1022
|
+
'adjust-keyboard-to'?: 'cursor' | 'bottom';
|
|
1023
|
+
'adjust-position'?: boolean;
|
|
1024
|
+
'auto-focus'?: boolean;
|
|
1025
|
+
'auto-height'?: boolean;
|
|
1026
|
+
'bind:keyboardcompositionend'?: WeappIntrinsicEventHandler<unknown>;
|
|
1027
|
+
'bind:keyboardcompositionstart'?: WeappIntrinsicEventHandler<unknown>;
|
|
1028
|
+
'bind:keyboardcompositionupdate'?: WeappIntrinsicEventHandler<unknown>;
|
|
1029
|
+
'bind:selectionchange'?: WeappIntrinsicEventHandler<unknown>;
|
|
1030
|
+
bindblur?: WeappIntrinsicEventHandler<unknown>;
|
|
1031
|
+
bindconfirm?: WeappIntrinsicEventHandler<unknown>;
|
|
1032
|
+
bindfocus?: WeappIntrinsicEventHandler<unknown>;
|
|
1033
|
+
bindinput?: WeappIntrinsicEventHandler<unknown>;
|
|
1034
|
+
bindkeyboardheightchange?: WeappIntrinsicEventHandler<unknown>;
|
|
1035
|
+
bindlinechange?: WeappIntrinsicEventHandler<unknown>;
|
|
1036
|
+
'confirm-hold'?: boolean;
|
|
1037
|
+
'confirm-type'?: 'send' | 'search' | 'next' | 'go' | 'done' | 'return';
|
|
1038
|
+
cursor?: number;
|
|
1039
|
+
'cursor-spacing'?: number;
|
|
1040
|
+
'disable-default-padding'?: boolean;
|
|
1041
|
+
disabled?: boolean;
|
|
1042
|
+
fixed?: boolean;
|
|
1043
|
+
focus?: boolean;
|
|
1044
|
+
'hold-keyboard'?: boolean;
|
|
1045
|
+
maxlength?: number;
|
|
1046
|
+
placeholder?: string;
|
|
1047
|
+
'placeholder-class'?: string;
|
|
1048
|
+
'placeholder-style'?: string;
|
|
1049
|
+
'selection-end'?: number;
|
|
1050
|
+
'selection-start'?: number;
|
|
1051
|
+
'show-confirm-bar'?: boolean;
|
|
1052
|
+
value?: string;
|
|
1053
|
+
};
|
|
1054
|
+
//#endregion
|
|
1055
|
+
//#region src/weappIntrinsicElements/elements/video.d.ts
|
|
1056
|
+
/**
|
|
1057
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/video.html
|
|
1058
|
+
*/
|
|
1059
|
+
type WeappIntrinsicElementVideo = WeappIntrinsicElementBaseAttributes & {
|
|
1060
|
+
'ad-unit-id'?: string;
|
|
1061
|
+
'auto-pause-if-navigate'?: boolean;
|
|
1062
|
+
'auto-pause-if-open-native'?: boolean;
|
|
1063
|
+
autoplay?: boolean;
|
|
1064
|
+
'background-poster'?: string;
|
|
1065
|
+
bindcastinginterrupt?: WeappIntrinsicEventHandler<unknown>;
|
|
1066
|
+
bindcastingstatechange?: WeappIntrinsicEventHandler<unknown>;
|
|
1067
|
+
bindcastinguserselect?: WeappIntrinsicEventHandler<unknown>;
|
|
1068
|
+
bindcontrolstoggle?: WeappIntrinsicEventHandler<unknown>;
|
|
1069
|
+
bindended?: WeappIntrinsicEventHandler<unknown>;
|
|
1070
|
+
bindenterpictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
1071
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
1072
|
+
bindfullscreenchange?: WeappIntrinsicEventHandler<unknown>;
|
|
1073
|
+
bindleavepictureinpicture?: WeappIntrinsicEventHandler<unknown>;
|
|
1074
|
+
bindloadedmetadata?: WeappIntrinsicEventHandler<unknown>;
|
|
1075
|
+
bindpause?: WeappIntrinsicEventHandler<unknown>;
|
|
1076
|
+
bindplay?: WeappIntrinsicEventHandler<unknown>;
|
|
1077
|
+
bindprogress?: WeappIntrinsicEventHandler<unknown>;
|
|
1078
|
+
bindseekcomplete?: WeappIntrinsicEventHandler<unknown>;
|
|
1079
|
+
bindtimeupdate?: WeappIntrinsicEventHandler<unknown>;
|
|
1080
|
+
bindwaiting?: WeappIntrinsicEventHandler<unknown>;
|
|
1081
|
+
'certificate-url'?: string;
|
|
1082
|
+
controls?: boolean;
|
|
1083
|
+
'danmu-btn'?: boolean;
|
|
1084
|
+
'danmu-list'?: Record<string, unknown>[];
|
|
1085
|
+
direction?: '0' | '90' | '-90';
|
|
1086
|
+
duration?: number;
|
|
1087
|
+
'enable-auto-rotation'?: boolean;
|
|
1088
|
+
'enable-danmu'?: boolean;
|
|
1089
|
+
'enable-play-gesture'?: boolean;
|
|
1090
|
+
'enable-progress-gesture'?: boolean;
|
|
1091
|
+
'initial-time'?: number;
|
|
1092
|
+
'is-drm'?: boolean;
|
|
1093
|
+
'is-live'?: boolean;
|
|
1094
|
+
'license-url'?: string;
|
|
1095
|
+
loop?: boolean;
|
|
1096
|
+
muted?: boolean;
|
|
1097
|
+
'object-fit'?: 'contain' | 'fill' | 'cover';
|
|
1098
|
+
'page-gesture'?: boolean;
|
|
1099
|
+
'picture-in-picture-init-position'?: string;
|
|
1100
|
+
'picture-in-picture-mode'?: '[]' | 'push' | 'pop';
|
|
1101
|
+
'picture-in-picture-show-progress'?: boolean;
|
|
1102
|
+
'play-btn-position'?: 'bottom' | 'center';
|
|
1103
|
+
poster?: string;
|
|
1104
|
+
'poster-for-crawler'?: string;
|
|
1105
|
+
'preferred-peak-bit-rate'?: number;
|
|
1106
|
+
'provision-url'?: string;
|
|
1107
|
+
'referrer-policy'?: 'origin' | 'no-referrer';
|
|
1108
|
+
'show-background-playback-button'?: boolean;
|
|
1109
|
+
'show-bottom-progress'?: boolean;
|
|
1110
|
+
'show-casting-button'?: boolean;
|
|
1111
|
+
'show-center-play-btn'?: boolean;
|
|
1112
|
+
'show-fullscreen-btn'?: boolean;
|
|
1113
|
+
'show-mute-btn'?: boolean;
|
|
1114
|
+
'show-play-btn'?: boolean;
|
|
1115
|
+
'show-progress'?: boolean;
|
|
1116
|
+
'show-screen-lock-button'?: boolean;
|
|
1117
|
+
'show-snapshot-button'?: boolean;
|
|
1118
|
+
src?: string;
|
|
1119
|
+
title?: string;
|
|
1120
|
+
'vslide-gesture'?: boolean;
|
|
1121
|
+
'vslide-gesture-in-fullscreen'?: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region src/weappIntrinsicElements/elements/view.d.ts
|
|
1125
|
+
/**
|
|
1126
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/view.html
|
|
1127
|
+
*/
|
|
1128
|
+
type WeappIntrinsicElementView = WeappIntrinsicElementBaseAttributes & {
|
|
1129
|
+
'hover-class'?: string;
|
|
1130
|
+
'hover-start-time'?: number;
|
|
1131
|
+
'hover-stay-time'?: number;
|
|
1132
|
+
'hover-stop-propagation'?: boolean;
|
|
1133
|
+
};
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region src/weappIntrinsicElements/elements/voip-room.d.ts
|
|
1136
|
+
/**
|
|
1137
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
|
|
1138
|
+
*/
|
|
1139
|
+
type WeappIntrinsicElementVoipRoom = WeappIntrinsicElementBaseAttributes & {
|
|
1140
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
1141
|
+
'device-position'?: 'front' | 'back';
|
|
1142
|
+
mode?: 'camera' | 'video';
|
|
1143
|
+
'object-fit'?: 'fill' | 'contain' | 'cover';
|
|
1144
|
+
openid?: string;
|
|
1145
|
+
};
|
|
1146
|
+
//#endregion
|
|
1147
|
+
//#region src/weappIntrinsicElements/elements/web-view.d.ts
|
|
1148
|
+
/**
|
|
1149
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
1150
|
+
*/
|
|
1151
|
+
type WeappIntrinsicElementWebView = WeappIntrinsicElementBaseAttributes & {
|
|
1152
|
+
binderror?: WeappIntrinsicEventHandler<unknown>;
|
|
1153
|
+
bindload?: WeappIntrinsicEventHandler<unknown>;
|
|
1154
|
+
bindmessage?: WeappIntrinsicEventHandler<unknown>;
|
|
1155
|
+
src?: string;
|
|
1156
|
+
};
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region src/weappIntrinsicElements.d.ts
|
|
1159
|
+
interface WeappIntrinsicElements {
|
|
1160
|
+
ad: WeappIntrinsicElementAd;
|
|
1161
|
+
'ad-custom': WeappIntrinsicElementAdCustom;
|
|
1162
|
+
audio: WeappIntrinsicElementAudio;
|
|
1163
|
+
block: WeappIntrinsicElementBlock;
|
|
1164
|
+
button: WeappIntrinsicElementButton;
|
|
1165
|
+
camera: WeappIntrinsicElementCamera;
|
|
1166
|
+
canvas: WeappIntrinsicElementCanvas;
|
|
1167
|
+
checkbox: WeappIntrinsicElementCheckbox;
|
|
1168
|
+
'checkbox-group': WeappIntrinsicElementCheckboxGroup;
|
|
1169
|
+
'cover-image': WeappIntrinsicElementCoverImage;
|
|
1170
|
+
'cover-view': WeappIntrinsicElementCoverView;
|
|
1171
|
+
editor: WeappIntrinsicElementEditor;
|
|
1172
|
+
form: WeappIntrinsicElementForm;
|
|
1173
|
+
'functional-page-navigator': WeappIntrinsicElementFunctionalPageNavigator;
|
|
1174
|
+
icon: WeappIntrinsicElementIcon;
|
|
1175
|
+
image: WeappIntrinsicElementImage;
|
|
1176
|
+
import: WeappIntrinsicElementImport;
|
|
1177
|
+
include: WeappIntrinsicElementInclude;
|
|
1178
|
+
input: WeappIntrinsicElementInput;
|
|
1179
|
+
'keyboard-accessory': WeappIntrinsicElementKeyboardAccessory;
|
|
1180
|
+
label: WeappIntrinsicElementLabel;
|
|
1181
|
+
'live-player': WeappIntrinsicElementLivePlayer;
|
|
1182
|
+
'live-pusher': WeappIntrinsicElementLivePusher;
|
|
1183
|
+
map: WeappIntrinsicElementMap;
|
|
1184
|
+
'match-media': WeappIntrinsicElementMatchMedia;
|
|
1185
|
+
'movable-area': WeappIntrinsicElementMovableArea;
|
|
1186
|
+
'movable-view': WeappIntrinsicElementMovableView;
|
|
1187
|
+
'navigation-bar': WeappIntrinsicElementNavigationBar;
|
|
1188
|
+
navigator: WeappIntrinsicElementNavigator;
|
|
1189
|
+
'official-account': WeappIntrinsicElementOfficialAccount;
|
|
1190
|
+
'open-data': WeappIntrinsicElementOpenData;
|
|
1191
|
+
'page-container': WeappIntrinsicElementPageContainer;
|
|
1192
|
+
'page-meta': WeappIntrinsicElementPageMeta;
|
|
1193
|
+
picker: WeappIntrinsicElementPicker;
|
|
1194
|
+
'picker-view': WeappIntrinsicElementPickerView;
|
|
1195
|
+
'picker-view-column': WeappIntrinsicElementPickerViewColumn;
|
|
1196
|
+
progress: WeappIntrinsicElementProgress;
|
|
1197
|
+
radio: WeappIntrinsicElementRadio;
|
|
1198
|
+
'radio-group': WeappIntrinsicElementRadioGroup;
|
|
1199
|
+
'rich-text': WeappIntrinsicElementRichText;
|
|
1200
|
+
'scroll-view': WeappIntrinsicElementScrollView;
|
|
1201
|
+
'share-element': WeappIntrinsicElementShareElement;
|
|
1202
|
+
slider: WeappIntrinsicElementSlider;
|
|
1203
|
+
slot: WeappIntrinsicElementSlot;
|
|
1204
|
+
swiper: WeappIntrinsicElementSwiper;
|
|
1205
|
+
'swiper-item': WeappIntrinsicElementSwiperItem;
|
|
1206
|
+
switch: WeappIntrinsicElementSwitch;
|
|
1207
|
+
template: WeappIntrinsicElementTemplate;
|
|
1208
|
+
text: WeappIntrinsicElementText;
|
|
1209
|
+
textarea: WeappIntrinsicElementTextarea;
|
|
1210
|
+
video: WeappIntrinsicElementVideo;
|
|
1211
|
+
view: WeappIntrinsicElementView;
|
|
1212
|
+
'voip-room': WeappIntrinsicElementVoipRoom;
|
|
1213
|
+
'web-view': WeappIntrinsicElementWebView;
|
|
1214
|
+
}
|
|
1215
|
+
//#endregion
|
|
1216
|
+
export { WeappIntrinsicElements as t };
|