@tarojs/components 3.7.0-alpha.1 → 3.7.0-alpha.3
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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +6 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
- 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/checkbox/checkbox.js +4 -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/rich-text/rich-text.js +71 -0
- package/dist/collection/components/rich-text/style/index.css +16 -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-checkbox-core.js +1 -1
- package/dist/components/taro-input-core.js +7 -12
- package/dist/components/taro-picker-core.js +16 -13
- package/dist/components/taro-rich-text-core.js +10 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +6 -0
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +1 -1
- 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-01e163f8.system.entry.js +1 -0
- package/dist/taro-components/p-085076c5.system.entry.js +1 -0
- package/dist/taro-components/{p-25adb80c.entry.js → p-091a7153.entry.js} +1 -1
- package/dist/taro-components/{p-cd90bead.system.entry.js → p-0cf235de.system.entry.js} +1 -1
- 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-2accb92c.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-385d8aed.entry.js → p-4874f671.entry.js} +1 -1
- 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-c490cd45.entry.js → p-7152d85b.entry.js} +1 -1
- package/dist/taro-components/{p-ab2d4f12.entry.js → p-719e1eaf.entry.js} +1 -1
- package/dist/taro-components/{p-b898d734.entry.js → p-78e4805e.entry.js} +1 -1
- package/dist/taro-components/{p-6800ccdc.system.entry.js → p-7ff654e6.system.entry.js} +1 -1
- 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-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-5905e3ef.system.entry.js → p-a96b4b19.system.entry.js} +1 -1
- package/dist/taro-components/{p-c2322741.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
- 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-e5f78321.system.entry.js → p-cdb76676.system.entry.js} +1 -1
- 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-1e43a2d5.entry.js → p-f07cd1de.entry.js} +1 -1
- 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/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/text/text.d.ts +4 -0
- package/dist/types/components/textarea/textarea.d.ts +0 -1
- package/dist/types/components.d.ts +26 -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 +1 -4
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/vue2/components.d.ts +9 -3
- package/lib/vue2/components.js +12 -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 +13 -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 +9 -7
- 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 +5 -5
- 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 +10 -3
- package/types/Video.d.ts +12 -0
- package/types/View.d.ts +1 -1
- 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-2fad2a65.js +0 -7
- 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-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-c43c5e89.system.entry.js +0 -1
- package/dist/taro-components/p-cc7b95fd.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/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
|
@@ -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
|
|
@@ -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
|
@@ -105,17 +105,24 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
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/virtual-list/index.js
CHANGED