@tarojs/components 3.7.0-alpha.1 → 3.7.0-alpha.11
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/cjs/hls-00fec546.js +25673 -0
- package/dist/{esm/index-394db4c1.js → cjs/index-f6805218.js} +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +5 -4
- package/dist/cjs/taro-input-core.cjs.entry.js +6 -11
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +23 -20
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +3 -3
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +6 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +5 -4
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +37 -36
- package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +9 -6
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -8
- package/dist/cjs/taro-video-control_3.cjs.entry.js +3 -3
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/button/style/index.css +12 -0
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/image/image.js +6 -4
- package/dist/collection/components/input/input.js +9 -13
- package/dist/collection/components/picker/picker-group.js +29 -26
- package/dist/collection/components/picker/picker.js +42 -16
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/dist/collection/components/pull-to-refresh/style/index.css +0 -1
- package/dist/collection/components/rich-text/rich-text.js +71 -0
- package/dist/collection/components/rich-text/style/index.css +16 -0
- package/dist/collection/components/scroll-view/scroll-view.js +22 -4
- package/dist/collection/components/swiper/swiper-item.js +34 -35
- package/dist/collection/components/swiper/swiper.js +2 -0
- package/dist/collection/components/text/style/index.css +20 -3
- package/dist/collection/components/text/text.js +66 -6
- package/dist/collection/components/textarea/textarea.js +4 -10
- package/dist/collection/components/video/video.js +1 -1
- package/dist/components/hls.js +23206 -24210
- package/dist/components/index2.js +1 -7
- package/dist/components/picker-group.js +9 -9
- package/dist/components/taro-button-core.js +1 -1
- package/dist/components/taro-checkbox-core.js +1 -1
- package/dist/components/taro-image-core.js +6 -4
- package/dist/components/taro-input-core.js +7 -12
- package/dist/components/taro-picker-core.js +16 -13
- package/dist/components/taro-pull-to-refresh.js +2 -2
- package/dist/components/taro-rich-text-core.js +10 -1
- package/dist/components/taro-scroll-view-core.js +5 -3
- package/dist/components/taro-swiper-core.js +2 -0
- package/dist/components/taro-swiper-item-core.js +34 -35
- package/dist/components/taro-text-core.js +13 -7
- package/dist/components/taro-textarea-core.js +2 -9
- package/dist/components/taro-video-core.js +2 -2
- package/dist/esm/hls-4018c7ea.js +25671 -0
- package/dist/{cjs/index-067a58c1.js → esm/index-c3e4004b.js} +1 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-button-core.entry.js +2 -2
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +5 -4
- package/dist/esm/taro-input-core.entry.js +6 -11
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +23 -20
- package/dist/esm/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
- package/dist/esm/taro-rich-text-core.entry.js +6 -0
- package/dist/esm/taro-scroll-view-core.entry.js +5 -4
- package/dist/esm/taro-swiper-core_2.entry.js +37 -36
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +9 -6
- package/dist/esm/taro-textarea-core.entry.js +1 -8
- package/dist/esm/taro-video-control_3.entry.js +3 -3
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/hls-4018c7ea.js +1 -0
- package/dist/esm-es5/index-c3e4004b.js +7 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/taro-components/{p-1e43a2d5.entry.js → p-0114a2e4.entry.js} +1 -1
- package/dist/taro-components/p-01e163f8.system.entry.js +1 -0
- package/dist/taro-components/p-085076c5.system.entry.js +1 -0
- package/dist/taro-components/p-0fa96970.entry.js +1 -0
- package/dist/taro-components/{p-edbb1a17.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
- package/dist/taro-components/{p-c0ec2f41.system.entry.js → p-2de2a3fd.system.entry.js} +1 -1
- package/dist/taro-components/p-2ec68968.system.js +7 -0
- package/dist/taro-components/{p-18703731.system.entry.js → p-416cc4dd.system.entry.js} +1 -1
- package/dist/taro-components/p-425c209a.entry.js +1 -0
- package/dist/taro-components/p-43efbf30.js +1 -0
- package/dist/taro-components/p-478deb81.entry.js +1 -0
- package/dist/taro-components/{p-2c89af5b.system.entry.js → p-657cb6e4.system.entry.js} +1 -1
- package/dist/taro-components/p-6cde180b.entry.js +1 -0
- package/dist/taro-components/{p-b898d734.entry.js → p-78e4805e.entry.js} +1 -1
- package/dist/taro-components/{p-c490cd45.entry.js → p-7b68dee8.entry.js} +1 -1
- package/dist/taro-components/{p-5905e3ef.system.entry.js → p-7e998213.system.entry.js} +1 -1
- package/dist/taro-components/p-982bb5bf.entry.js +1 -0
- package/dist/taro-components/{p-16336cc6.system.entry.js → p-98f9f50f.system.entry.js} +1 -1
- package/dist/taro-components/p-9edea30f.system.entry.js +1 -0
- package/dist/taro-components/{p-3f9f3448.entry.js → p-9fe49bab.entry.js} +1 -1
- package/dist/taro-components/{p-31bba7c3.entry.js → p-a20ecd3b.entry.js} +1 -1
- package/dist/taro-components/p-a20fed0a.entry.js +1 -0
- package/dist/taro-components/{p-e5f78321.system.entry.js → p-a4882902.system.entry.js} +1 -1
- package/dist/taro-components/{p-7c2454dd.system.entry.js → p-a8925584.system.entry.js} +1 -1
- package/dist/taro-components/p-a8e7cf87.entry.js +1 -0
- package/dist/taro-components/{p-c2322741.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
- package/dist/taro-components/p-ba3b2aa5.system.entry.js +1 -0
- package/dist/taro-components/p-c39a46ca.system.entry.js +1 -0
- package/dist/taro-components/{p-ca3a269f.entry.js → p-c4b8851b.entry.js} +1 -1
- package/dist/taro-components/p-ce33f1f3.entry.js +1 -0
- package/dist/taro-components/p-dab28e1f.system.entry.js +1 -0
- package/dist/taro-components/p-de951a46.js +7 -0
- package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
- package/dist/taro-components/{p-df4c2f21.entry.js → p-e33f3592.entry.js} +1 -1
- package/dist/taro-components/p-e78775ce.system.js +1 -0
- package/dist/taro-components/p-ebc7b6fc.entry.js +1 -0
- package/dist/taro-components/p-ed331c06.system.js +1 -1
- package/dist/taro-components/p-f02b6f70.entry.js +1 -0
- package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
- package/dist/taro-components/taro-components.css +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/image/image.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/picker/picker-group.d.ts +3 -3
- package/dist/types/components/picker/picker.d.ts +7 -2
- package/dist/types/components/rich-text/rich-text.d.ts +4 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -0
- package/dist/types/components/text/text.d.ts +4 -0
- package/dist/types/components/textarea/textarea.d.ts +0 -1
- package/dist/types/components.d.ts +28 -8
- package/lib/react/component-lib/index.js +50 -50
- package/lib/react/component-lib/index.js.map +1 -1
- package/lib/react/component-lib/reactify-wc.js +1 -1
- package/lib/react/component-lib/reactify-wc.js.map +1 -1
- package/lib/react/components.d.ts +1 -3
- package/lib/react/components.js +2 -2
- package/lib/react/components.js.map +1 -1
- package/lib/react/helper.d.ts +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/lib/react/react-component-lib/utils/attachProps.js +21 -5
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/vue2/component-lib/index.js +0 -5
- package/lib/vue2/component-lib/index.js.map +1 -1
- package/lib/vue2/components-loader.js +1 -1
- package/lib/vue2/components-loader.js.map +1 -1
- package/lib/vue2/components.d.ts +10 -3
- package/lib/vue2/components.js +13 -6
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/vue-component-lib/utils.js.map +1 -1
- package/lib/vue3/component-lib/index.js +48 -48
- package/lib/vue3/component-lib/index.js.map +1 -1
- package/lib/vue3/components.d.ts +1 -1
- package/lib/vue3/components.js +14 -6
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +13 -11
- package/types/Button.d.ts +71 -8
- package/types/ChannelVideo.d.ts +4 -0
- package/types/Form.d.ts +11 -0
- package/types/Image.d.ts +5 -0
- package/types/Input.d.ts +6 -1
- package/types/LivePlayer.d.ts +17 -0
- package/types/LivePusher.d.ts +10 -0
- package/types/Picker.d.ts +9 -0
- package/types/Progress.d.ts +2 -2
- package/types/RichText.d.ts +6 -4
- package/types/ScrollView.d.ts +7 -7
- package/types/ShareElement.d.ts +39 -0
- package/types/StickySection.d.ts +0 -1
- package/types/Swiper.d.ts +10 -0
- package/types/Text.d.ts +8 -3
- package/types/Textarea.d.ts +11 -4
- package/types/Video.d.ts +12 -0
- package/types/View.d.ts +1 -1
- package/types/index.vue3.d.ts +18 -9
- package/virtual-list/index.js +2 -2
- package/dist/cjs/hls-0f2d4d85.js +0 -26677
- package/dist/esm/hls-0e83e558.js +0 -26675
- package/dist/esm-es5/hls-0e83e558.js +0 -289
- package/dist/esm-es5/index-394db4c1.js +0 -7
- package/dist/taro-components/p-198000d8.system.js +0 -289
- package/dist/taro-components/p-25adb80c.entry.js +0 -1
- package/dist/taro-components/p-2fad2a65.js +0 -7
- package/dist/taro-components/p-385d8aed.entry.js +0 -1
- package/dist/taro-components/p-387314fa.system.js +0 -7
- package/dist/taro-components/p-3e701660.js +0 -289
- package/dist/taro-components/p-4e9bd4f6.entry.js +0 -1
- package/dist/taro-components/p-589293fd.entry.js +0 -1
- package/dist/taro-components/p-58b19305.system.entry.js +0 -1
- package/dist/taro-components/p-5b67a98e.entry.js +0 -1
- package/dist/taro-components/p-6800ccdc.system.entry.js +0 -1
- package/dist/taro-components/p-735c2a72.system.entry.js +0 -1
- package/dist/taro-components/p-97f0ad72.system.entry.js +0 -1
- package/dist/taro-components/p-a132ebb9.entry.js +0 -1
- package/dist/taro-components/p-ab2d4f12.entry.js +0 -1
- package/dist/taro-components/p-c43c5e89.system.entry.js +0 -1
- package/dist/taro-components/p-cc7b95fd.system.entry.js +0 -1
- package/dist/taro-components/p-cd90bead.system.entry.js +0 -1
- package/dist/taro-components/p-d9e2e3aa.entry.js +0 -1
- package/dist/taro-components/p-dcbb7b2d.entry.js +0 -1
- package/dist/taro-components/p-ed011ff9.entry.js +0 -1
- package/dist/taro-components/p-fa43177b.system.entry.js +0 -1
package/types/Form.d.ts
CHANGED
|
@@ -31,6 +31,17 @@ interface FormProps extends StandardProps {
|
|
|
31
31
|
* @supported swan
|
|
32
32
|
*/
|
|
33
33
|
subscribeId?: string
|
|
34
|
+
/** 用于分发目的。取值:0 或 1,其中 0 表示默认,1 表示留资目标,需要和留资分发配置一起使用,详情见留资分发配置
|
|
35
|
+
* @supported tt
|
|
36
|
+
* @default 0
|
|
37
|
+
*/
|
|
38
|
+
conversionTarget?: number
|
|
39
|
+
/** 用于分发目的。开发者在【小程序开发者后台 -> 进入目标小程序 -> 运营 -> 流量配置 -> 抖音 -> 留资分发配置】复制创建的配置 ID,需要和留资分发配置一起使用,详情见留资分发配置
|
|
40
|
+
*
|
|
41
|
+
* @supported tt
|
|
42
|
+
* @default ""
|
|
43
|
+
*/
|
|
44
|
+
clueComponentId?: string
|
|
34
45
|
/** 携带 form 中的数据触发 submit 事件
|
|
35
46
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
36
47
|
*/
|
package/types/Image.d.ts
CHANGED
|
@@ -60,6 +60,11 @@ interface ImageProps extends StandardProps {
|
|
|
60
60
|
* @supported qq
|
|
61
61
|
*/
|
|
62
62
|
ariaLabel?: string
|
|
63
|
+
/** 是否渐显
|
|
64
|
+
* @supported weapp
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
fadeIn?: boolean
|
|
63
68
|
/** 当错误发生时,发布到 AppService 的事件名,事件对象
|
|
64
69
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
65
70
|
*/
|
package/types/Input.d.ts
CHANGED
|
@@ -160,6 +160,11 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
160
160
|
* @supported qq
|
|
161
161
|
*/
|
|
162
162
|
ariaLabel?: string
|
|
163
|
+
/** 用于分发目的。取值:0 和 1,其中 0 表示默认,1 表示手机号,需要和留资分发配置一起使用,详情见留资分发配置。
|
|
164
|
+
* @supported tt
|
|
165
|
+
* @default 0
|
|
166
|
+
*/
|
|
167
|
+
clueType?: number
|
|
163
168
|
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
164
169
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
165
170
|
*/
|
|
@@ -177,7 +182,7 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
177
182
|
*/
|
|
178
183
|
onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
|
|
179
184
|
/** 键盘高度发生变化的时候触发此事件
|
|
180
|
-
* @supported weapp, qq
|
|
185
|
+
* @supported weapp, tt, qq
|
|
181
186
|
*/
|
|
182
187
|
onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
|
|
183
188
|
/** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效,event.detail = { pass, timeout }
|
package/types/LivePlayer.d.ts
CHANGED
|
@@ -85,6 +85,11 @@ interface LivePlayerProps extends StandardProps {
|
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
enableAutoRotation?: boolean
|
|
88
|
+
/** 是否支持投屏。开启后,可以通过 LivePlayerContext 上相关方法进行操作。
|
|
89
|
+
* @supported weapp
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
enableCasting?: boolean
|
|
88
93
|
/** 播放状态变化事件,detail = {code}
|
|
89
94
|
* @supported weapp, swan, tt, qq, jd
|
|
90
95
|
*/
|
|
@@ -117,6 +122,18 @@ interface LivePlayerProps extends StandardProps {
|
|
|
117
122
|
* @supported qq
|
|
118
123
|
*/
|
|
119
124
|
onMetaDataChange?: CommonEventFunction
|
|
125
|
+
/** 用户选择投屏设备时触发 detail = { state: "success"/"fail" }
|
|
126
|
+
* @supported weapp
|
|
127
|
+
*/
|
|
128
|
+
onCastingUserSelect?: CommonEventFunction
|
|
129
|
+
/** 投屏成功/失败时触发 detail = { type, state: "success"/"fail" }
|
|
130
|
+
* @supported weapp
|
|
131
|
+
*/
|
|
132
|
+
onCastingStateChange?: CommonEventFunction
|
|
133
|
+
/** 投屏被中断时触发
|
|
134
|
+
* @supported weapp
|
|
135
|
+
*/
|
|
136
|
+
onCastingInterrupt?: CommonEventFunction
|
|
120
137
|
}
|
|
121
138
|
declare namespace LivePlayerProps {
|
|
122
139
|
/** mode 的合法值 */
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -189,6 +189,16 @@ interface LivePusherProps extends StandardProps {
|
|
|
189
189
|
* @default 0
|
|
190
190
|
*/
|
|
191
191
|
eyeBigness?: number
|
|
192
|
+
/** 0:关闭变声;1:熊孩子;2:萝莉;3:大叔;4:重金属;6:外国人;7:困兽;8:死肥仔;9:强电流;10:重机械;11:空灵
|
|
193
|
+
* @supported weapp
|
|
194
|
+
* @default 0
|
|
195
|
+
*/
|
|
196
|
+
voiceChangerType?: number
|
|
197
|
+
/** 帧率,有效值为 1~30
|
|
198
|
+
* @supported weapp
|
|
199
|
+
* @default 15
|
|
200
|
+
*/
|
|
201
|
+
fps?: number
|
|
192
202
|
/** 状态变化事件,detail = {code}
|
|
193
203
|
* @supported weapp, qq
|
|
194
204
|
*/
|
package/types/Picker.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ declare namespace PickerStandardProps {
|
|
|
35
35
|
/** 省市区选择器 */
|
|
36
36
|
region
|
|
37
37
|
}
|
|
38
|
+
interface PickerText {
|
|
39
|
+
okText?: string
|
|
40
|
+
cancelText?: string
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
/** 普通选择器:mode = selector */
|
|
40
44
|
interface PickerSelectorProps extends PickerStandardProps {
|
|
@@ -74,6 +78,11 @@ interface PickerSelectorProps extends PickerStandardProps {
|
|
|
74
78
|
* @supported weapp, h5, rn
|
|
75
79
|
*/
|
|
76
80
|
onChange: CommonEventFunction<PickerSelectorProps.ChangeEventDetail>
|
|
81
|
+
/**
|
|
82
|
+
* 用于替换组件内部文本
|
|
83
|
+
* @supported h5
|
|
84
|
+
*/
|
|
85
|
+
textProps?: PickerStandardProps.PickerText
|
|
77
86
|
}
|
|
78
87
|
declare namespace PickerSelectorProps {
|
|
79
88
|
interface ChangeEventDetail {
|
package/types/Progress.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ interface ProgressProps extends StandardProps {
|
|
|
54
54
|
activeMode?: 'backwards' | 'forwards'
|
|
55
55
|
/** 进度增加 1% 所需毫秒数
|
|
56
56
|
* @default 30
|
|
57
|
-
* @supported weapp, swan, jd, h5
|
|
57
|
+
* @supported weapp, swan, tt, jd, h5
|
|
58
58
|
*/
|
|
59
59
|
duration?: number
|
|
60
60
|
/** 无障碍访问,(属性)元素的额外描述
|
|
@@ -62,7 +62,7 @@ interface ProgressProps extends StandardProps {
|
|
|
62
62
|
*/
|
|
63
63
|
ariaLabel?: string
|
|
64
64
|
/** 动画完成事件
|
|
65
|
-
* @supported weapp, qq, jd, h5
|
|
65
|
+
* @supported weapp, tt, qq, jd, h5
|
|
66
66
|
*/
|
|
67
67
|
onActiveEnd?: CommonEventFunction
|
|
68
68
|
}
|
package/types/RichText.d.ts
CHANGED
|
@@ -3,18 +3,20 @@ import { CommonEventFunction, StandardProps } from './common'
|
|
|
3
3
|
interface RichTextProps extends StandardProps {
|
|
4
4
|
/** 文本是否可选,该属性会使节点显示为 block
|
|
5
5
|
* @default false
|
|
6
|
-
* @supported weapp
|
|
6
|
+
* @supported weapp, h5
|
|
7
7
|
*/
|
|
8
8
|
userSelect?: boolean
|
|
9
|
-
/** 节点列表/ HTML String
|
|
9
|
+
/** 节点列表/ HTML String
|
|
10
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
11
|
+
*/
|
|
10
12
|
nodes?: Nodes
|
|
11
13
|
/** 显示连续空格
|
|
12
|
-
* @supported weapp, alipay, qq, rn
|
|
14
|
+
* @supported weapp, alipay, tt, qq, h5, rn
|
|
13
15
|
*/
|
|
14
16
|
space?: keyof RichTextProps.TSpace
|
|
15
17
|
/** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
|
|
16
18
|
* @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
|
|
17
|
-
* @supported swan
|
|
19
|
+
* @supported swan, h5
|
|
18
20
|
*/
|
|
19
21
|
selectable?: string
|
|
20
22
|
/** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { BaseEventOrigFunction, CommonEventFunction, StandardProps } from './common'
|
|
3
3
|
interface ScrollViewProps extends StandardProps {
|
|
4
4
|
/** 允许横向滚动
|
|
5
5
|
* @default false
|
|
@@ -46,7 +46,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
46
46
|
*/
|
|
47
47
|
enableBackToTop?: boolean
|
|
48
48
|
/** 启用 flexbox 布局。开启后,当前节点声明了 `display: flex` 就会成为 flex container,并作用于其孩子节点。
|
|
49
|
-
* @supported weapp
|
|
49
|
+
* @supported weapp, jd
|
|
50
50
|
* @default false
|
|
51
51
|
*/
|
|
52
52
|
enableFlex?: boolean
|
|
@@ -81,12 +81,12 @@ interface ScrollViewProps extends StandardProps {
|
|
|
81
81
|
*/
|
|
82
82
|
refresherTriggered?: boolean
|
|
83
83
|
/** 启用 scroll-view 增强特性
|
|
84
|
-
* @supported weapp
|
|
84
|
+
* @supported weapp, swan
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
enhanced?: boolean
|
|
88
88
|
/** iOS 下 scroll-view 边界弹性控制 (同时开启 enhanced 属性后生效)
|
|
89
|
-
* @supported weapp
|
|
89
|
+
* @supported weapp, swan
|
|
90
90
|
* @default true
|
|
91
91
|
*/
|
|
92
92
|
bounces?: boolean
|
|
@@ -157,7 +157,7 @@ interface ScrollViewProps extends StandardProps {
|
|
|
157
157
|
* center - 目标节点显示在视口中间
|
|
158
158
|
* end - 目标节点显示在视口结束处
|
|
159
159
|
* nearest - 目标节点在就近的视口边缘显示,若节点已在视口内则不触发滚动
|
|
160
|
-
* @supported weapp
|
|
160
|
+
* @supported weapp, h5
|
|
161
161
|
* @default 'start'
|
|
162
162
|
*/
|
|
163
163
|
scrollIntoViewAlignment?: 'start' | 'center' | 'end' | 'nearest'
|
|
@@ -176,11 +176,11 @@ interface ScrollViewProps extends StandardProps {
|
|
|
176
176
|
/** 滚动开始事件
|
|
177
177
|
* @supported weapp
|
|
178
178
|
*/
|
|
179
|
-
onScrollStart?:BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
179
|
+
onScrollStart?: BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
180
180
|
/** 滚动结束事件
|
|
181
181
|
* @supported weapp
|
|
182
182
|
*/
|
|
183
|
-
onScrollEnd?:BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
183
|
+
onScrollEnd?: BaseEventOrigFunction<ScrollViewProps.onScrollDetail>
|
|
184
184
|
/** 自定义下拉刷新控件被下拉
|
|
185
185
|
* @supported weapp
|
|
186
186
|
*/
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -3,8 +3,13 @@ import { StandardProps, CommonEventFunction } from './common'
|
|
|
3
3
|
interface ShareElementProps extends StandardProps {
|
|
4
4
|
/** 映射标记
|
|
5
5
|
* @supported weapp
|
|
6
|
+
* @deprecated 使用mapkey替换key
|
|
6
7
|
*/
|
|
7
8
|
key?: string
|
|
9
|
+
/** 映射标记
|
|
10
|
+
* @supported weapp
|
|
11
|
+
*/
|
|
12
|
+
mapkey?: string
|
|
8
13
|
/** 映射标记
|
|
9
14
|
* @supported alipay
|
|
10
15
|
*/
|
|
@@ -24,6 +29,40 @@ interface ShareElementProps extends StandardProps {
|
|
|
24
29
|
* @supported weapp, alipay
|
|
25
30
|
*/
|
|
26
31
|
easingFunction?: string
|
|
32
|
+
/** 手势返回时是否进行动画
|
|
33
|
+
* @supported weapp
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
transitionOnGesture?: boolean
|
|
37
|
+
/** 指定 push 阶段的飞跃物
|
|
38
|
+
* @supported weapp
|
|
39
|
+
* @default "to"
|
|
40
|
+
*/
|
|
41
|
+
shuttleOnPush?: 'from' | 'to' | 'from' | 'to'
|
|
42
|
+
/** 指定 pop 阶段的飞跃物
|
|
43
|
+
* @supported weapp
|
|
44
|
+
* @default "to"
|
|
45
|
+
*/
|
|
46
|
+
shuttleOnPop?: string
|
|
47
|
+
/** 动画插值曲线
|
|
48
|
+
* @supported weapp
|
|
49
|
+
* @default "materialRectArc"
|
|
50
|
+
*/
|
|
51
|
+
rectTweenType?:
|
|
52
|
+
| 'materialRectArc'
|
|
53
|
+
| 'materialRectCenterArc'
|
|
54
|
+
| 'linear'
|
|
55
|
+
| 'elasticIn'
|
|
56
|
+
| 'elasticOut'
|
|
57
|
+
| 'elasticInOut'
|
|
58
|
+
| 'bounceIn'
|
|
59
|
+
| 'bounceOut'
|
|
60
|
+
| 'bounceInOut'
|
|
61
|
+
| 'cubic-bezier(x1,'
|
|
62
|
+
/** 动画帧回调
|
|
63
|
+
* @supported weapp
|
|
64
|
+
*/
|
|
65
|
+
onFrame?: string
|
|
27
66
|
}
|
|
28
67
|
/** 共享元素
|
|
29
68
|
*
|
package/types/StickySection.d.ts
CHANGED
package/types/Swiper.d.ts
CHANGED
|
@@ -139,6 +139,16 @@ interface SwiperProps extends StandardProps {
|
|
|
139
139
|
* @supported swan
|
|
140
140
|
*/
|
|
141
141
|
disableTouchmove?: string
|
|
142
|
+
/** 改变 current 时使用动画过渡
|
|
143
|
+
* @supported weapp
|
|
144
|
+
* @default true
|
|
145
|
+
*/
|
|
146
|
+
scrollWithAnimation?: boolean
|
|
147
|
+
/** 缓存区域大小,值为 1 表示提前渲染上下各一屏区域(swiper 容器大小)
|
|
148
|
+
* @supported weapp
|
|
149
|
+
* @default 0
|
|
150
|
+
*/
|
|
151
|
+
cacheExtent?: number
|
|
142
152
|
/** current 改变时会触发 change 事件
|
|
143
153
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
144
154
|
*/
|
package/types/Text.d.ts
CHANGED
|
@@ -8,22 +8,27 @@ interface TextProps extends StandardProps {
|
|
|
8
8
|
selectable?: boolean
|
|
9
9
|
/** 文本是否可选,该属性会使文本节点显示为 inline-block
|
|
10
10
|
* @default false
|
|
11
|
-
* @supported weapp
|
|
11
|
+
* @supported weapp, h5
|
|
12
12
|
*/
|
|
13
13
|
userSelect?: boolean
|
|
14
14
|
/** 显示连续空格
|
|
15
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
15
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
16
16
|
*/
|
|
17
17
|
space?: keyof TextProps.TSpace
|
|
18
18
|
/** 是否解码
|
|
19
19
|
* @default false
|
|
20
20
|
* @supported weapp, alipay, tt, qq, jd
|
|
21
|
+
* @h5 默认解码,不支持设置
|
|
21
22
|
*/
|
|
22
23
|
decode?: boolean
|
|
23
24
|
/** 多行省略,值须大于等于 1,表现同 css 的 -webkit-line-clamp 属性一致。
|
|
24
25
|
* @supported alipay
|
|
25
26
|
*/
|
|
26
|
-
numberOfLines?:
|
|
27
|
+
numberOfLines?: number
|
|
28
|
+
/** 限制文本最大行数
|
|
29
|
+
* @supported weapp
|
|
30
|
+
*/
|
|
31
|
+
maxLines?: number
|
|
27
32
|
}
|
|
28
33
|
declare namespace TextProps {
|
|
29
34
|
/** space 的合法值 */
|
package/types/Textarea.d.ts
CHANGED
|
@@ -99,23 +99,30 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
99
99
|
/** 点击键盘右下角按钮时是否保持键盘不收起
|
|
100
100
|
* @supported weapp, swan, tt
|
|
101
101
|
*/
|
|
102
|
-
confirmHold?:
|
|
102
|
+
confirmHold?: boolean
|
|
103
103
|
/** 组件名字,用于表单提交获取数据。
|
|
104
104
|
* @supported alipay
|
|
105
105
|
*/
|
|
106
106
|
name?: string
|
|
107
107
|
/** 是否渲染字数统计功能(是否删除默认计数器/是否显示字数统计)。
|
|
108
|
+
* @default true
|
|
108
109
|
* @supported alipay
|
|
109
110
|
*/
|
|
110
|
-
showCount?:
|
|
111
|
+
showCount?: boolean
|
|
111
112
|
/** 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。
|
|
113
|
+
* @default false
|
|
112
114
|
* @supported alipay
|
|
113
115
|
*/
|
|
114
|
-
controlled?:
|
|
116
|
+
controlled?: boolean
|
|
115
117
|
/** 无障碍访问,(属性)元素的额外描述
|
|
116
118
|
* @supported qq
|
|
117
119
|
*/
|
|
118
120
|
ariaLabel?: string
|
|
121
|
+
/** 键盘对齐位置
|
|
122
|
+
* @supported weapp
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
adjustKeyboardTo?: boolean
|
|
119
126
|
/** 输入框聚焦时触发
|
|
120
127
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
121
128
|
*/
|
|
@@ -139,7 +146,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
139
146
|
*/
|
|
140
147
|
onConfirm?: CommonEventFunction<TextareaProps.onConfirmEventDetail>
|
|
141
148
|
/** 键盘高度发生变化的时候触发此事件
|
|
142
|
-
* @supported weapp
|
|
149
|
+
* @supported weapp, tt
|
|
143
150
|
*/
|
|
144
151
|
onKeyboardHeightChange?: CommonEventFunction<TextareaProps.onKeyboardHeightChangeEventDetail>
|
|
145
152
|
}
|
package/types/Video.d.ts
CHANGED
|
@@ -443,6 +443,18 @@ interface VideoProps extends StandardProps {
|
|
|
443
443
|
* @supported tt
|
|
444
444
|
*/
|
|
445
445
|
onAdLoad?: CommonEventFunction
|
|
446
|
+
/** 用户选择投屏设备时触发 detail = { state: "success"/"fail" }
|
|
447
|
+
* @supported weapp
|
|
448
|
+
*/
|
|
449
|
+
onCastingUserSelect?: CommonEventFunction
|
|
450
|
+
/** 投屏成功/失败时触发 detail = { type, state: "success"/"fail" }
|
|
451
|
+
* @supported weapp
|
|
452
|
+
*/
|
|
453
|
+
onCastingStateChange?: CommonEventFunction
|
|
454
|
+
/** 投屏被中断时触发
|
|
455
|
+
* @supported weapp
|
|
456
|
+
*/
|
|
457
|
+
onCastingInterrupt?: CommonEventFunction
|
|
446
458
|
}
|
|
447
459
|
declare namespace VideoProps {
|
|
448
460
|
/** direction 的合法值 */
|
package/types/View.d.ts
CHANGED
package/types/index.vue3.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ import { AdCustomProps } from './AdCustom'
|
|
|
18
18
|
import { AudioProps } from './Audio'
|
|
19
19
|
import { ButtonProps } from './Button'
|
|
20
20
|
import { CameraProps } from './Camera'
|
|
21
|
+
import { CanvasProps } from './Canvas'
|
|
21
22
|
import { ChannelLiveProps } from './ChannelLive'
|
|
22
23
|
import { ChannelVideoProps } from './ChannelVideo'
|
|
23
|
-
import { CanvasProps } from './Canvas'
|
|
24
24
|
import { CheckboxProps } from './Checkbox'
|
|
25
25
|
import { CheckboxGroupProps } from './CheckboxGroup'
|
|
26
26
|
import { StandardProps } from './common'
|
|
@@ -30,17 +30,20 @@ import { CustomWrapperProps } from './CustomWrapper'
|
|
|
30
30
|
import { EditorProps } from './Editor'
|
|
31
31
|
import { FormProps } from './Form'
|
|
32
32
|
import { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
|
|
33
|
+
import { GridViewProps } from './GridView'
|
|
33
34
|
import { IconProps } from './Icon'
|
|
34
35
|
import { ImageProps } from './Image'
|
|
35
36
|
import { InputProps } from './Input'
|
|
36
37
|
import { KeyboardAccessoryProps } from './KeyboardAccessory'
|
|
37
38
|
import { LabelProps } from './Label'
|
|
39
|
+
import { ListViewProps } from './ListView'
|
|
38
40
|
import { LivePlayerProps } from './LivePlayer'
|
|
39
41
|
import { LivePusherProps } from './LivePusher'
|
|
40
42
|
import { MapProps } from './Map'
|
|
41
43
|
import { MatchMediaProps } from './MatchMedia'
|
|
42
44
|
import { MovableAreaProps } from './MovableArea'
|
|
43
45
|
import { MovableViewProps } from './MovableView'
|
|
46
|
+
import { NativeSlotProps } from './NativeSlot'
|
|
44
47
|
import { NavigationBarProps } from './NavigationBar'
|
|
45
48
|
import { NavigatorProps } from './Navigator'
|
|
46
49
|
import { OfficialAccountProps } from './OfficialAccount'
|
|
@@ -52,14 +55,18 @@ import {
|
|
|
52
55
|
PickerRegionProps, PickerSelectorProps, PickerTimeProps
|
|
53
56
|
} from './Picker'
|
|
54
57
|
import { PickerViewProps } from './PickerView'
|
|
58
|
+
import { PickerViewColumnProps } from './PickerViewColumn'
|
|
55
59
|
import { ProgressProps } from './Progress'
|
|
56
60
|
import { RadioProps } from './Radio'
|
|
57
61
|
import { RadioGroupProps } from './RadioGroup'
|
|
58
62
|
import { RichTextProps } from './RichText'
|
|
63
|
+
import { RootPortalProps } from './RootPortal'
|
|
59
64
|
import { ScrollViewProps } from './ScrollView'
|
|
60
65
|
import { ShareElementProps } from './ShareElement'
|
|
61
66
|
import { SliderProps } from './Slider'
|
|
62
67
|
import { SlotProps } from './Slot'
|
|
68
|
+
import { StickyHeaderProps } from './StickyHeader'
|
|
69
|
+
import { StickySectionProps } from './StickySection'
|
|
63
70
|
import { SwiperProps } from './Swiper'
|
|
64
71
|
import { SwiperItemProps } from './SwiperItem'
|
|
65
72
|
import { SwitchProps } from './Switch'
|
|
@@ -69,16 +76,18 @@ import { VideoProps } from './Video'
|
|
|
69
76
|
import { ViewProps } from './View'
|
|
70
77
|
import { VoipRoomProps } from './VoipRoom'
|
|
71
78
|
import { WebViewProps } from './WebView'
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
|
|
80
|
+
/** 因为react的事件是CamelCase而vue得是Camelcase, 所以需要转换 */
|
|
81
|
+
type OnCamelCaseToOnCamelcase<T extends string> = T extends `on${infer Rest}`
|
|
82
|
+
? `on${Capitalize<Lowercase<Rest>>}`
|
|
83
|
+
: T;
|
|
84
|
+
|
|
85
|
+
type TransformCamelCase<T extends Record<string, any>> = {
|
|
86
|
+
[key in keyof T as OnCamelCaseToOnCamelcase<key>]: T[key]
|
|
87
|
+
}
|
|
79
88
|
|
|
80
89
|
/** 联合类型不能用omit(比如picker) */
|
|
81
|
-
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K
|
|
90
|
+
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? TransformCamelCase<Omit<T, K>> : never
|
|
82
91
|
|
|
83
92
|
interface SlimProps {
|
|
84
93
|
class?: any
|
package/virtual-list/index.js
CHANGED