@tarojs/components 3.5.10 → 3.5.12
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/taro-swiper-core_2.cjs.entry.js +60 -21
- package/dist/collection/components/swiper/swiper-item.js +37 -2
- package/dist/collection/components/swiper/swiper.js +24 -22
- package/dist/esm/taro-swiper-core_2.entry.js +60 -21
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/taro-components/p-0380841f.system.js +1 -1
- package/dist/taro-components/{p-a5496bf5.system.entry.js → p-d8a10125.system.entry.js} +1 -1
- package/dist/taro-components/{p-34178401.entry.js → p-eeb6de57.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/swiper/swiper-item.d.ts +2 -0
- package/package.json +4 -4
- package/types/Button.d.ts +1 -1
- package/types/Camera.d.ts +1 -1
- package/types/ChannelLive.d.ts +22 -0
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CoverImage.d.ts +1 -1
- package/types/CustomWrapper.d.ts +1 -0
- package/types/Form.d.ts +7 -1
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +1 -1
- package/types/Input.d.ts +16 -1
- package/types/Label.d.ts +1 -1
- package/types/LivePusher.d.ts +15 -0
- package/types/NativeSlot.d.ts +1 -0
- package/types/NavigationBar.d.ts +2 -1
- package/types/Navigator.d.ts +1 -1
- package/types/Picker.d.ts +1 -1
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +1 -1
- package/types/RichText.d.ts +1 -1
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +2 -7
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +2 -1
- package/types/Swiper.d.ts +1 -1
- package/types/SwiperItem.d.ts +1 -1
- package/types/Switch.d.ts +1 -1
- package/types/Textarea.d.ts +2 -1
- package/types/Video.d.ts +7 -1
- package/types/View.d.ts +1 -1
- package/types/WebView.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/virtual-list/index.d.ts +0 -1
- package/virtual-list/react/index.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-eeb6de57",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],zoom:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-2ec47545",[[0,"taro-ad-core"]]],["p-7d329ab0",[[0,"taro-ad-custom-core"]]],["p-8c8be53b",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-72f858e4",[[0,"taro-block-core"]]],["p-3549b6d2",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-9234cc1d",[[0,"taro-camera-core"]]],["p-ff84986d",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-ffefd74f",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-362998cf",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-8aea3de3",[[0,"taro-custom-wrapper-core"]]],["p-d5f3080c",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-cf048af9",[[0,"taro-functional-page-navigator-core"]]],["p-b2800ccd",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-888fac99",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-56c86512",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-afbcd093",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-55266a1f",[[0,"taro-live-player-core"]]],["p-028e2728",[[0,"taro-live-pusher-core"]]],["p-6aa557f0",[[0,"taro-map-core"]]],["p-7374537f",[[0,"taro-match-media-core"]]],["p-42630f45",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-4262d1b6",[[0,"taro-movable-view-core",{x:[8],y:[8],direction:[1],outOfBounds:[4,"out-of-bounds"],inertia:[4],friction:[2],damping:[2],disabled:[4],scale:[4],scaleMin:[2,"scale-min"],scaleMax:[2,"scale-max"],scaleValue:[2,"scale-value"],animation:[4],setParent:[64],endScale:[64],setScale:[64]}]]],["p-57a2a441",[[0,"taro-navigation-bar-core"]]],["p-3c6090fd",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-62fc514e",[[0,"taro-official-account-core"]]],["p-5a374cb9",[[0,"taro-open-data-core"]]],["p-b1ae9401",[[0,"taro-page-container-core"]]],["p-4d826fb7",[[0,"taro-page-meta-core"]]],["p-9a0e70b1",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-9b39a940",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-b3b677fc",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-eec00033",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7407013d",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b60820b4",[[0,"taro-root-portal-core"]]],["p-ef006b23",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-4cf436f9",[[0,"taro-share-element-core"]]],["p-886571e5",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-59d93770",[[0,"taro-slot-core"]]],["p-4ada10aa",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-5733124c",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-dff55efd",[[4,"taro-text-core",{selectable:[4]}]]],["p-bd706d39",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-8b1dfd32",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-06178a0c",[[0,"taro-voip-room-core"]]],["p-25df0ce9",[[0,"taro-web-view-core",{src:[1]}]]],["p-fa2a9bab",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-99d17a1a",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.12",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"resolve-pathname": "^3.0.0",
|
|
37
37
|
"swiper": "6.8.0",
|
|
38
38
|
"weui": "^1.1.2",
|
|
39
|
-
"@tarojs/router": "3.5.
|
|
40
|
-
"@tarojs/taro": "3.5.
|
|
39
|
+
"@tarojs/router": "3.5.12",
|
|
40
|
+
"@tarojs/taro": "3.5.12"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/generator": "^7.14.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jquery": "^3.4.1",
|
|
54
54
|
"karmatic": "^2.1.0",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
|
-
"miniapp-types": "1.
|
|
56
|
+
"miniapp-types": "1.2.0",
|
|
57
57
|
"simulant": "^0.2.2",
|
|
58
58
|
"style-loader": "1.3.0",
|
|
59
59
|
"ts-node": "^10.9.1",
|
package/types/Button.d.ts
CHANGED
|
@@ -526,7 +526,7 @@ declare namespace ButtonProps {
|
|
|
526
526
|
|
|
527
527
|
/** 按钮
|
|
528
528
|
* @classification forms
|
|
529
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
529
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
530
530
|
* @example_react
|
|
531
531
|
* ```tsx
|
|
532
532
|
* export default class PageButton extends Component {
|
package/types/Camera.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare namespace CameraProps {
|
|
|
149
149
|
|
|
150
150
|
/** 系统相机
|
|
151
151
|
* @classification media
|
|
152
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
152
|
+
* @supported weapp, alipay, swan, tt, qq, jd, rn, harmony
|
|
153
153
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
154
154
|
*/
|
|
155
155
|
declare const Camera: ComponentType<CameraProps>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
interface ChannelLiveProps extends StandardProps {
|
|
5
|
+
/** 视频 feedId
|
|
6
|
+
* @supported weapp
|
|
7
|
+
*/
|
|
8
|
+
feedId: string
|
|
9
|
+
|
|
10
|
+
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
|
|
11
|
+
* @supported weapp
|
|
12
|
+
*/
|
|
13
|
+
finderUserName: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。
|
|
18
|
+
* @supported weapp
|
|
19
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/channel-live.html
|
|
20
|
+
*/
|
|
21
|
+
declare const ChannelLive: ComponentType<ChannelLiveProps>
|
|
22
|
+
export { ChannelLive, ChannelLiveProps }
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ interface CheckboxProps extends StandardProps {
|
|
|
43
43
|
|
|
44
44
|
/** 多选项目
|
|
45
45
|
* @classification forms
|
|
46
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
46
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
47
47
|
* @example_react
|
|
48
48
|
* ```tsx
|
|
49
49
|
* export default class PageCheckbox extends Component {
|
package/types/CheckboxGroup.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
|
|
|
16
16
|
|
|
17
17
|
/** 多项选择器,内部由多个checkbox组成
|
|
18
18
|
* @classification forms
|
|
19
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
19
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
20
20
|
* @example
|
|
21
21
|
* ```tsx
|
|
22
22
|
* export default class PageCheckbox extends Component {
|
package/types/CoverImage.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface CoverImageProps extends StandardProps {
|
|
|
59
59
|
|
|
60
60
|
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
|
|
61
61
|
* @classification viewContainer
|
|
62
|
-
* @supported weapp, alipay, swan, qq, h5
|
|
62
|
+
* @supported weapp, alipay, swan, qq, h5, harmony
|
|
63
63
|
* @example_react
|
|
64
64
|
* ```tsx
|
|
65
65
|
* // js
|
package/types/CustomWrapper.d.ts
CHANGED
package/types/Form.d.ts
CHANGED
|
@@ -36,6 +36,12 @@ interface FormProps extends StandardProps {
|
|
|
36
36
|
*/
|
|
37
37
|
subscribeId?: string
|
|
38
38
|
|
|
39
|
+
/** 是否开启免授权订阅。report-type 为 subscribe,template-id 与 subscribe-id 必填时设置该属性生效。
|
|
40
|
+
* 注意:只有白名单内小程序可使用此功能。
|
|
41
|
+
* @supported swan
|
|
42
|
+
*/
|
|
43
|
+
skipSubscribeAuthorize?: boolean
|
|
44
|
+
|
|
39
45
|
/** 携带 form 中的数据触发 submit 事件
|
|
40
46
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
41
47
|
*/
|
|
@@ -66,7 +72,7 @@ declare namespace FormProps {
|
|
|
66
72
|
*
|
|
67
73
|
* 当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。
|
|
68
74
|
* @classification forms
|
|
69
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
75
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
70
76
|
* @example_react
|
|
71
77
|
* ```tsx
|
|
72
78
|
* class App extends Component {
|
package/types/Icon.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare namespace IconProps {
|
|
|
62
62
|
|
|
63
63
|
/** 图标。组件属性的长度单位默认为 px
|
|
64
64
|
* @classification base
|
|
65
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
65
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
66
66
|
* @example_react
|
|
67
67
|
* ```tsx
|
|
68
68
|
* export default class PageView extends Component {
|
package/types/Image.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare namespace ImageProps {
|
|
|
155
155
|
*
|
|
156
156
|
* **Note:** 为实现小程序的 `mode` 特性,在 H5 组件中使用一个 `div` 容器来对内部的 `img` 进行展示区域的裁剪,因此请勿使用元素选择器来重置 `img` 的样式!
|
|
157
157
|
* @classification media
|
|
158
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
158
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
159
159
|
* @example_react
|
|
160
160
|
* ```tsx
|
|
161
161
|
* export default class PageView extends Component {
|
package/types/Input.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ interface InputProps extends StandardProps, FormItemProps {
|
|
|
190
190
|
/** 使用原生键盘
|
|
191
191
|
* @default true
|
|
192
192
|
* @supported alipay
|
|
193
|
+
* @ignore
|
|
193
194
|
*/
|
|
194
195
|
enableNative?: boolean
|
|
195
196
|
|
|
@@ -231,52 +232,66 @@ declare namespace InputProps {
|
|
|
231
232
|
* @supported weapp, alipay, h5, rn
|
|
232
233
|
*/
|
|
233
234
|
text
|
|
235
|
+
|
|
234
236
|
/** 数字输入键盘
|
|
235
237
|
* @supported weapp, alipay, h5, rn
|
|
236
238
|
*/
|
|
237
239
|
number
|
|
240
|
+
|
|
238
241
|
/** 身份证输入键盘
|
|
239
242
|
*@supported weapp, alipay, rn
|
|
240
243
|
*/
|
|
241
244
|
idcard
|
|
245
|
+
|
|
242
246
|
/** 带小数点的数字键盘
|
|
243
247
|
* @supported weapp, alipay, h5, rn
|
|
244
248
|
*/
|
|
245
249
|
digit
|
|
250
|
+
|
|
246
251
|
/** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
|
|
247
252
|
* @supported weapp, alipay
|
|
248
253
|
*/
|
|
249
254
|
'safe-password'
|
|
255
|
+
|
|
250
256
|
/** 昵称输入键盘
|
|
251
257
|
* @supported weapp, alipay
|
|
252
258
|
*/
|
|
253
259
|
nickname
|
|
260
|
+
|
|
254
261
|
/** 数字输入键盘
|
|
255
262
|
* @supported alipay
|
|
256
263
|
*/
|
|
257
264
|
numberpad
|
|
265
|
+
|
|
258
266
|
/** 带小数点的数字键盘
|
|
259
267
|
* @supported alipay
|
|
260
268
|
*/
|
|
261
269
|
digitpad
|
|
270
|
+
|
|
262
271
|
/** 身份证输入键盘
|
|
263
272
|
* @supported alipay
|
|
264
273
|
*/
|
|
265
274
|
idcardpad
|
|
266
275
|
}
|
|
276
|
+
|
|
267
277
|
/** Confirm 类型 */
|
|
268
278
|
interface ConfirmType {
|
|
269
279
|
/** 右下角按钮为“发送” */
|
|
270
280
|
send
|
|
281
|
+
|
|
271
282
|
/** 右下角按钮为“搜索” */
|
|
272
283
|
search
|
|
284
|
+
|
|
273
285
|
/** 右下角按钮为“下一个” */
|
|
274
286
|
next
|
|
287
|
+
|
|
275
288
|
/** 右下角按钮为“前往” */
|
|
276
289
|
go
|
|
290
|
+
|
|
277
291
|
/** 右下角按钮为“完成” */
|
|
278
292
|
done
|
|
279
293
|
}
|
|
294
|
+
|
|
280
295
|
/** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
|
|
281
296
|
interface inputEventDetail {
|
|
282
297
|
/** 输入值 */
|
|
@@ -310,7 +325,7 @@ declare namespace InputProps {
|
|
|
310
325
|
|
|
311
326
|
/** 输入框。该组件是原生组件,使用时请注意相关限制
|
|
312
327
|
* @classification forms
|
|
313
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
328
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
314
329
|
* @example_react
|
|
315
330
|
* ```tsx
|
|
316
331
|
* class App extends Component {
|
package/types/Label.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface LabelProps extends StandardProps {
|
|
|
9
9
|
*
|
|
10
10
|
* 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
|
|
11
11
|
* @classification forms
|
|
12
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
12
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
13
13
|
* @example_react
|
|
14
14
|
* ```tsx
|
|
15
15
|
* class App extends Components {
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -23,6 +23,12 @@ interface LivePusherProps extends StandardProps {
|
|
|
23
23
|
*/
|
|
24
24
|
autopush?: boolean
|
|
25
25
|
|
|
26
|
+
/** 自定义渲染,允许开发者自行处理所采集的视频帧
|
|
27
|
+
* @default false
|
|
28
|
+
* @supported weapp
|
|
29
|
+
*/
|
|
30
|
+
enableVideoCustomRender?: boolean
|
|
31
|
+
|
|
26
32
|
/** 是否静音。即将废弃,可用 enable-mic 替代
|
|
27
33
|
* @default false
|
|
28
34
|
* @deprecated
|
|
@@ -191,6 +197,12 @@ interface LivePusherProps extends StandardProps {
|
|
|
191
197
|
*/
|
|
192
198
|
pictureInPictureMode?: string | any[]
|
|
193
199
|
|
|
200
|
+
/** 自定义渲染,允许开发者自行处理所采集的视频帧,详见LivePusherContext
|
|
201
|
+
* @supported weapp
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
enableVideoCustomRender?: boolean
|
|
205
|
+
|
|
194
206
|
/** 状态变化事件,detail = {code}
|
|
195
207
|
* @supported weapp, qq
|
|
196
208
|
*/
|
|
@@ -287,6 +299,9 @@ declare namespace LivePusherProps {
|
|
|
287
299
|
|
|
288
300
|
/** audioVolumeType 的合法值 */
|
|
289
301
|
interface AudioVolumeType {
|
|
302
|
+
/** 自动 */
|
|
303
|
+
auto
|
|
304
|
+
|
|
290
305
|
/** 媒体音量 */
|
|
291
306
|
media
|
|
292
307
|
|
package/types/NativeSlot.d.ts
CHANGED
package/types/NavigationBar.d.ts
CHANGED
|
@@ -36,7 +36,8 @@ interface NavigationBarProps extends StandardProps {
|
|
|
36
36
|
|
|
37
37
|
/** 页面导航条配置节点,用于指定导航栏的一些属性。只能是 PageMeta 组件内的第一个节点,需要配合它一同使用。
|
|
38
38
|
* 通过这个节点可以获得类似于调用 Taro.setNavigationBarTitle Taro.setNavigationBarColor 等接口调用的效果。
|
|
39
|
-
* @
|
|
39
|
+
* @classification navig
|
|
40
|
+
* @supported weapp, harmony
|
|
40
41
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
|
|
41
42
|
*/
|
|
42
43
|
declare const NavigationBar: ComponentType<NavigationBarProps>
|
package/types/Navigator.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ declare namespace NavigatorProps {
|
|
|
138
138
|
|
|
139
139
|
/** 页面链接
|
|
140
140
|
* @classification navig
|
|
141
|
-
* @supported weapp, alipay, swan, tt, qq, jd
|
|
141
|
+
* @supported weapp, alipay, swan, tt, qq, jd, harmony
|
|
142
142
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
143
143
|
*/
|
|
144
144
|
declare const Navigator: ComponentType<NavigatorProps>
|
package/types/Picker.d.ts
CHANGED
|
@@ -302,7 +302,7 @@ declare namespace PickerRegionProps {
|
|
|
302
302
|
/**
|
|
303
303
|
* 从底部弹起的滚动选择器
|
|
304
304
|
* @classification forms
|
|
305
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
305
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
306
306
|
* @example_react
|
|
307
307
|
* ```tsx
|
|
308
308
|
* export default class PagePicker extends Component {
|
package/types/PickerView.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare namespace PickerViewProps {
|
|
|
66
66
|
/** 嵌入页面的滚动选择器
|
|
67
67
|
* 其中只可放置 picker-view-column 组件,其它节点不会显示
|
|
68
68
|
* @classification forms
|
|
69
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
69
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
70
70
|
* @example_react
|
|
71
71
|
* ```tsx
|
|
72
72
|
* export default class Picks extends Component {
|
|
@@ -5,7 +5,7 @@ type PickerViewColumnProps = StandardProps
|
|
|
5
5
|
/** 滚动选择器子项
|
|
6
6
|
* 仅可放置于 `<PickerView />` 中,其孩子节点的高度会自动设置成与 picker-view 的选中框的高度一致
|
|
7
7
|
* @classification forms
|
|
8
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
8
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
9
9
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
|
|
10
10
|
*/
|
|
11
11
|
declare const PickerViewColumn: ComponentType<StandardProps>
|
package/types/Progress.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ interface ProgressProps extends StandardProps {
|
|
|
81
81
|
|
|
82
82
|
/** 进度条。组件属性的长度单位默认为 px
|
|
83
83
|
* @classification base
|
|
84
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
84
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
85
85
|
* @example_react
|
|
86
86
|
* ```tsx
|
|
87
87
|
* export default class PageView extends Component {
|
package/types/Radio.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface RadioProps extends StandardProps {
|
|
|
44
44
|
|
|
45
45
|
/** 单选项目
|
|
46
46
|
* @classification forms
|
|
47
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
47
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
48
48
|
* @example_react
|
|
49
49
|
* ```tsx
|
|
50
50
|
* export default class PageRadio extends Component {
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare namespace RadioGroupProps {
|
|
|
19
19
|
|
|
20
20
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
21
21
|
* @classification forms
|
|
22
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
22
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
23
23
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
24
24
|
*/
|
|
25
25
|
declare const RadioGroup: ComponentType<RadioGroupProps>
|
package/types/RichText.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare namespace RichTextProps {
|
|
|
118
118
|
|
|
119
119
|
/** 富文本
|
|
120
120
|
* @classification base
|
|
121
|
-
* @supported weapp, swan, alipay, tt, h5, rn
|
|
121
|
+
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|
|
122
122
|
* @example_react
|
|
123
123
|
* ```tsx
|
|
124
124
|
* class App extends Components {
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ declare namespace ScrollViewProps {
|
|
|
262
262
|
* H5 中 ScrollView 组件是通过一个高度(或宽度)固定的容器内部滚动来实现的,因此务必正确的设置容器的高度。例如: 如果 ScrollView 的高度将 body 撑开,就会同时存在两个滚动条(body 下的滚动条,以及 ScrollView 的滚动条)。
|
|
263
263
|
* 微信小程序 中 ScrollView 组件如果设置 scrollX 横向滚动时,并且子元素为多个时(单个子元素时设置固定宽度则可以正常横向滚动),需要通过 WXSS 设置 `white-space: nowrap` 来保证元素不换行,并对 ScrollView 内部元素设置 `display: inline-block` 来使其能够横向滚动。
|
|
264
264
|
* @classification viewContainer
|
|
265
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
265
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
266
266
|
* @example_react
|
|
267
267
|
* ```tsx
|
|
268
268
|
* export default class PageView extends Component {
|
package/types/ShareElement.d.ts
CHANGED
|
@@ -2,17 +2,12 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface ShareElementProps extends StandardProps {
|
|
4
4
|
/** 映射标记
|
|
5
|
-
* @supported weapp
|
|
5
|
+
* @supported weapp
|
|
6
6
|
*/
|
|
7
7
|
key?: string
|
|
8
8
|
|
|
9
9
|
/** 映射标记
|
|
10
|
-
* @supported
|
|
11
|
-
*/
|
|
12
|
-
mapkey?: string
|
|
13
|
-
|
|
14
|
-
/** 映射标记
|
|
15
|
-
* @supported alipay
|
|
10
|
+
* @supported alipay
|
|
16
11
|
*/
|
|
17
12
|
name?: string
|
|
18
13
|
|
package/types/Slider.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare namespace SliderProps {
|
|
|
118
118
|
|
|
119
119
|
/** 滑动选择器
|
|
120
120
|
* @classification forms
|
|
121
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
121
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
122
122
|
* @example_react
|
|
123
123
|
* ```tsx
|
|
124
124
|
* export default class PageView extends Component {
|
package/types/Slot.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ interface SlotProps {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/** slot 插槽
|
|
17
|
-
* @
|
|
17
|
+
* @classification viewContainer
|
|
18
|
+
* @supported weapp, swan, alipay, tt, jd, qq, harmony
|
|
18
19
|
* @example
|
|
19
20
|
* ```tsx
|
|
20
21
|
* import { Slot, View, Text } from '@tarojs/components'
|
package/types/Swiper.d.ts
CHANGED
|
@@ -247,7 +247,7 @@ declare namespace SwiperProps {
|
|
|
247
247
|
/** 滑块视图容器。其中只可放置 swiper-item 组件,否则会导致未定义的行为。
|
|
248
248
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
249
249
|
* @classification viewContainer
|
|
250
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
250
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
251
251
|
* @example_react
|
|
252
252
|
* ```tsx
|
|
253
253
|
* class App extends Component {
|
package/types/SwiperItem.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface SwiperItemProps extends StandardProps {
|
|
|
16
16
|
/** 仅可放置在 swiper 组件中,宽高自动设置为100%
|
|
17
17
|
* > 不要为 `SwiperItem` 设置 **style** 属性,可以通过 class 设置样式。[7147](https://github.com/NervJS/taro/issues/7147)
|
|
18
18
|
* @classification viewContainer
|
|
19
|
-
* @supported weapp, alipay, swan, tt, jd, h5, rn
|
|
19
|
+
* @supported weapp, alipay, swan, tt, jd, h5, rn, harmony
|
|
20
20
|
* @example_react
|
|
21
21
|
* ```tsx
|
|
22
22
|
* class App extends Component {
|
package/types/Switch.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare namespace SwitchProps {
|
|
|
93
93
|
* </view>
|
|
94
94
|
* </template>
|
|
95
95
|
* ```
|
|
96
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
96
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
97
97
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
98
98
|
*/
|
|
99
99
|
declare const Switch: ComponentType<SwitchProps>
|
package/types/Textarea.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ interface TextareaProps extends StandardProps, FormItemProps {
|
|
|
139
139
|
/** 使用原生键盘
|
|
140
140
|
* @default false
|
|
141
141
|
* @supported alipay
|
|
142
|
+
* @ignore
|
|
142
143
|
*/
|
|
143
144
|
enableNative?: boolean
|
|
144
145
|
|
|
@@ -224,7 +225,7 @@ declare namespace TextareaProps {
|
|
|
224
225
|
|
|
225
226
|
/** 多行输入框。该组件是原生组件,使用时请注意相关限制
|
|
226
227
|
* @classification forms
|
|
227
|
-
* @supported weapp, alipay, swan, tt, qq, h5, rn
|
|
228
|
+
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
|
228
229
|
* @example_react
|
|
229
230
|
* ```tsx
|
|
230
231
|
* export default class PageView extends Component {
|
package/types/Video.d.ts
CHANGED
|
@@ -285,6 +285,7 @@ interface VideoProps extends StandardProps {
|
|
|
285
285
|
/** 使用原生
|
|
286
286
|
* @default true
|
|
287
287
|
* @supported alipay
|
|
288
|
+
* @ignore
|
|
288
289
|
*/
|
|
289
290
|
enableNative?: boolean
|
|
290
291
|
|
|
@@ -352,6 +353,11 @@ interface VideoProps extends StandardProps {
|
|
|
352
353
|
*/
|
|
353
354
|
preferredPeakBitRate?: number
|
|
354
355
|
|
|
356
|
+
/** 是否为直播源
|
|
357
|
+
* @supported weapp
|
|
358
|
+
*/
|
|
359
|
+
isLive?: boolean
|
|
360
|
+
|
|
355
361
|
/** 当开始/继续播放时触发 play 事件
|
|
356
362
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
357
363
|
*/
|
|
@@ -643,7 +649,7 @@ declare namespace VideoProps {
|
|
|
643
649
|
|
|
644
650
|
/** 视频。相关api:Taro.createVideoContext
|
|
645
651
|
* @classification media
|
|
646
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
652
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
647
653
|
* @example_react
|
|
648
654
|
* ```tsx
|
|
649
655
|
* export default class PageView extends Component {
|
package/types/View.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ interface ViewProps extends StandardProps {
|
|
|
142
142
|
|
|
143
143
|
/** 视图容器
|
|
144
144
|
* @classification viewContainer
|
|
145
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
145
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
146
146
|
* @example_react
|
|
147
147
|
* ```tsx
|
|
148
148
|
* export default class PageView extends Component {
|
package/types/WebView.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare namespace WebViewProps {
|
|
|
49
49
|
|
|
50
50
|
/** web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。
|
|
51
51
|
* @classification open
|
|
52
|
-
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
52
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
|
53
53
|
* @example_react
|
|
54
54
|
* ```tsx
|
|
55
55
|
* class App extends Component {
|
package/types/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { NavigationBar } from './NavigationBar'
|
|
|
51
51
|
/** 媒体组件 */
|
|
52
52
|
export { Audio } from './Audio'
|
|
53
53
|
export { Camera } from './Camera'
|
|
54
|
+
export { ChannelLive } from './ChannelLive'
|
|
54
55
|
export { Image } from './Image'
|
|
55
56
|
export { LivePlayer } from './LivePlayer'
|
|
56
57
|
export { LivePusher } from './LivePusher'
|
package/virtual-list/index.d.ts
CHANGED