@tarojs/components 3.6.2 → 3.6.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/LICENSE +21 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +28 -18
- package/dist/cjs/taro-textarea-core.cjs.entry.js +13 -3
- package/dist/cjs/taro-video-control_3.cjs.entry.js +3 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/grid-view/grid-view.js +11 -0
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/list-view/list-view.js +11 -0
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/sticky-header/sticky-header.js +11 -0
- package/dist/collection/components/sticky-section/sticky-section.js +11 -0
- package/dist/collection/components/swiper/swiper-item.js +16 -9
- package/dist/collection/components/swiper/swiper.js +12 -9
- package/dist/collection/components/textarea/textarea.js +23 -6
- package/dist/collection/components/video/video.js +3 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/taro-grid-view-core.d.ts +11 -0
- package/dist/components/taro-grid-view-core.js +33 -0
- package/dist/components/taro-input-core.js +1 -1
- package/dist/components/taro-list-view-core.d.ts +11 -0
- package/dist/components/taro-list-view-core.js +33 -0
- package/dist/components/taro-picker-core.js +1 -1
- package/dist/components/taro-sticky-header-core.d.ts +11 -0
- package/dist/components/taro-sticky-header-core.js +33 -0
- package/dist/components/taro-sticky-section-core.d.ts +11 -0
- package/dist/components/taro-sticky-section-core.js +33 -0
- package/dist/components/taro-swiper-core.js +12 -9
- package/dist/components/taro-swiper-item-core.js +16 -9
- package/dist/components/taro-textarea-core.js +14 -4
- package/dist/components/taro-video-core.js +3 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +17 -0
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +17 -0
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +17 -0
- package/dist/esm/taro-sticky-section-core.entry.js +17 -0
- package/dist/esm/taro-swiper-core_2.entry.js +28 -18
- package/dist/esm/taro-textarea-core.entry.js +13 -3
- package/dist/esm/taro-video-control_3.entry.js +3 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -0
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -0
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/taro-components/p-02aa7366.system.entry.js +1 -0
- package/dist/taro-components/p-05c757b7.entry.js +1 -0
- package/dist/taro-components/{p-4d390d17.entry.js → p-0b8b3af5.entry.js} +1 -1
- package/dist/taro-components/p-1c446c65.system.js +1 -1
- package/dist/taro-components/p-1eac7c75.system.entry.js +1 -0
- package/dist/taro-components/{p-3e23fa46.system.entry.js → p-39685396.system.entry.js} +1 -1
- package/dist/taro-components/p-4402972b.system.entry.js +1 -0
- package/dist/taro-components/{p-e53feb03.system.entry.js → p-58f9a827.system.entry.js} +1 -1
- package/dist/taro-components/p-5931c82e.entry.js +1 -0
- package/dist/taro-components/{p-ab84c88e.entry.js → p-7704e165.entry.js} +1 -1
- package/dist/taro-components/p-7c1fc8f5.system.entry.js +1 -0
- package/dist/taro-components/p-7df9de66.system.entry.js +1 -0
- package/dist/taro-components/{p-10046f1a.system.entry.js → p-a5afdc47.system.entry.js} +1 -1
- package/dist/taro-components/p-affb28de.entry.js +1 -0
- package/dist/taro-components/{p-8267b686.entry.js → p-c30d1b2d.entry.js} +1 -1
- package/dist/taro-components/p-dfc405a5.entry.js +1 -0
- package/dist/taro-components/p-e753b776.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/grid-view/grid-view.d.ts +5 -0
- package/dist/types/components/list-view/list-view.d.ts +5 -0
- package/dist/types/components/sticky-header/sticky-header.d.ts +5 -0
- package/dist/types/components/sticky-section/sticky-section.d.ts +5 -0
- package/dist/types/components/textarea/textarea.d.ts +2 -1
- package/dist/types/components.d.ts +52 -0
- package/lib/react/_virtual/_commonjsHelpers.js +35 -0
- package/lib/react/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/react/_virtual/index.js +4 -0
- package/lib/react/_virtual/index.js.map +1 -0
- package/lib/react/_virtual/index2.js +4 -0
- package/lib/react/_virtual/index2.js.map +1 -0
- package/lib/react/_virtual/index3.js +7 -0
- package/lib/react/_virtual/index3.js.map +1 -0
- package/lib/react/_virtual/index4.js +7 -0
- package/lib/react/_virtual/index4.js.map +1 -0
- package/lib/react/_virtual/index5.js +4 -0
- package/lib/react/_virtual/index5.js.map +1 -0
- package/lib/react/_virtual/react-dom.development.js +2 -0
- package/lib/react/_virtual/react-dom.development.js.map +1 -0
- package/lib/react/_virtual/react-dom.development2.js +4 -0
- package/lib/react/_virtual/react-dom.development2.js.map +1 -0
- package/lib/react/_virtual/react-dom.production.min.js +2 -0
- package/lib/react/_virtual/react-dom.production.min.js.map +1 -0
- package/lib/react/_virtual/react-dom.production.min2.js +4 -0
- package/lib/react/_virtual/react-dom.production.min2.js.map +1 -0
- package/lib/react/_virtual/react.development.js +7 -0
- package/lib/react/_virtual/react.development.js.map +1 -0
- package/lib/react/_virtual/react.development2.js +4 -0
- package/lib/react/_virtual/react.development2.js.map +1 -0
- package/lib/react/_virtual/react.production.min.js +2 -0
- package/lib/react/_virtual/react.production.min.js.map +1 -0
- package/lib/react/_virtual/react.production.min2.js +4 -0
- package/lib/react/_virtual/react.production.min2.js.map +1 -0
- package/lib/react/_virtual/scheduler.development.js +2 -0
- package/lib/react/_virtual/scheduler.development.js.map +1 -0
- package/lib/react/_virtual/scheduler.development2.js +4 -0
- package/lib/react/_virtual/scheduler.development2.js.map +1 -0
- package/lib/react/_virtual/scheduler.production.min.js +2 -0
- package/lib/react/_virtual/scheduler.production.min.js.map +1 -0
- package/lib/react/_virtual/scheduler.production.min2.js +4 -0
- package/lib/react/_virtual/scheduler.production.min2.js.map +1 -0
- package/lib/react/component-lib/index.js +3 -2
- package/lib/react/component-lib/index.js.map +1 -1
- package/lib/react/component-lib/input.js +1 -1
- package/lib/react/component-lib/reactify-wc.js +4 -3
- package/lib/react/component-lib/reactify-wc.js.map +1 -1
- package/lib/react/components.d.ts +81 -77
- package/lib/react/components.js +86 -80
- package/lib/react/components.js.map +1 -1
- package/lib/react/index.js +1 -1
- package/lib/react/{interfaces-4f837811.d.ts → interfaces-f526f1a2.d.ts} +4 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js +29893 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.js +337 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js +52 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.development.js +2749 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.development.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.production.min.js +34 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.production.min.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js +21 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js +641 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.production.min.js +27 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.production.min.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/index.js +21 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/index.js.map +1 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js +221 -0
- package/lib/react/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/react/react-component-lib/createComponent.d.ts +5 -1
- package/lib/react/react-component-lib/createComponent.js +9 -6
- package/lib/react/react-component-lib/createComponent.js.map +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -1
- package/lib/react/react-component-lib/createOverlayComponent.js +4 -3
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/lib/react/react-component-lib/utils/attachProps.d.ts +2 -6
- package/lib/react/react-component-lib/utils/attachProps.js +41 -36
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/react/react-component-lib/utils/case.d.ts +4 -0
- package/lib/react/react-component-lib/utils/case.js +4 -0
- package/lib/react/react-component-lib/utils/case.js.map +1 -1
- package/lib/react/react-component-lib/utils/index.d.ts +5 -1
- package/lib/react/react-component-lib/utils/index.js +5 -1
- package/lib/react/react-component-lib/utils/index.js.map +1 -1
- package/lib/vue2/component-lib/index.js +1 -1
- package/lib/vue2/components-loader.d.ts +2 -0
- package/lib/vue2/components-loader.js +21 -0
- package/lib/vue2/components-loader.js.map +1 -0
- package/lib/vue2/components.d.ts +5 -1
- package/lib/vue2/components.js +142 -225
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.d.ts +0 -2
- package/lib/vue2/index.js +1 -22
- package/lib/vue2/index.js.map +1 -1
- package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue@2.6.14/node_modules/vue/dist/vue.runtime.esm.js +8494 -0
- package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue@2.6.14/node_modules/vue/dist/vue.runtime.esm.js.map +1 -0
- package/lib/vue2/vue-component-lib/utils.d.ts +7 -3
- package/lib/vue2/vue-component-lib/utils.js +42 -25
- package/lib/vue2/vue-component-lib/utils.js.map +1 -1
- package/lib/vue3/component-lib/createComponent.js +2 -1
- package/lib/vue3/component-lib/createComponent.js.map +1 -1
- package/lib/vue3/component-lib/createFormsComponent.js +3 -1
- package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
- package/lib/vue3/component-lib/forwardRef.js +2 -1
- package/lib/vue3/component-lib/forwardRef.js.map +1 -1
- package/lib/vue3/component-lib/icon.js +2 -1
- package/lib/vue3/component-lib/icon.js.map +1 -1
- package/lib/vue3/component-lib/image.js +2 -1
- package/lib/vue3/component-lib/image.js.map +1 -1
- package/lib/vue3/component-lib/scroll-view.js +2 -1
- package/lib/vue3/component-lib/scroll-view.js.map +1 -1
- package/lib/vue3/component-lib/text.js +2 -1
- package/lib/vue3/component-lib/text.js.map +1 -1
- package/lib/vue3/components-loader.d.ts +2 -0
- package/lib/vue3/components-loader.js +13 -0
- package/lib/vue3/components-loader.js.map +1 -0
- package/lib/vue3/components.d.ts +5 -1
- package/lib/vue3/components.js +84 -78
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.d.ts +0 -2
- package/lib/vue3/index.js +1 -14
- package/lib/vue3/index.js.map +1 -1
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1252 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js.map +1 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +7856 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js.map +1 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1702 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js.map +1 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js +597 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js +24 -0
- package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js.map +1 -0
- package/lib/vue3/vue-component-lib/utils.js +14 -5
- package/lib/vue3/vue-component-lib/utils.js.map +1 -1
- package/package.json +11 -8
- package/types/Ad.d.ts +2 -31
- package/types/AdCustom.d.ts +0 -4
- package/types/AnimationVideo.d.ts +0 -9
- package/types/AnimationView.d.ts +0 -6
- package/types/ArCamera.d.ts +0 -7
- package/types/Audio.d.ts +0 -18
- package/types/AwemeData.d.ts +0 -6
- package/types/Button.d.ts +3 -106
- package/types/Camera.d.ts +0 -28
- package/types/Canvas.d.ts +2 -17
- package/types/ChannelLive.d.ts +0 -2
- package/types/ChannelVideo.d.ts +0 -6
- package/types/Checkbox.d.ts +1 -8
- package/types/CheckboxGroup.d.ts +0 -2
- package/types/CommentDetail.d.ts +4 -10
- package/types/CommentList.d.ts +4 -20
- package/types/ContactButton.d.ts +0 -7
- package/types/CoverImage.d.ts +0 -11
- package/types/CoverView.d.ts +0 -26
- package/types/Editor.d.ts +0 -10
- package/types/FollowSwan.d.ts +0 -3
- package/types/Form.d.ts +1 -9
- package/types/FunctionalPageNavigator.d.ts +0 -11
- package/types/GridView.d.ts +37 -0
- package/types/Icon.d.ts +0 -14
- package/types/Image.d.ts +0 -31
- package/types/InlinePaymentPanel.d.ts +0 -9
- package/types/Input.d.ts +0 -62
- package/types/Label.d.ts +3 -2
- package/types/Lifestyle.d.ts +0 -3
- package/types/Like.d.ts +0 -17
- package/types/ListView.d.ts +12 -0
- package/types/LivePlayer.d.ts +1 -58
- package/types/LivePusher.d.ts +0 -77
- package/types/Login.d.ts +0 -5
- package/types/Lottie.d.ts +0 -16
- package/types/Map.d.ts +19 -136
- package/types/MatchMedia.d.ts +0 -7
- package/types/MovableArea.d.ts +0 -1
- package/types/MovableView.d.ts +0 -35
- package/types/NavigationBar.d.ts +0 -6
- package/types/Navigator.d.ts +0 -27
- package/types/OfficialAccount.d.ts +0 -12
- package/types/OpenData.d.ts +0 -20
- package/types/PageContainer.d.ts +0 -21
- package/types/PageMeta.d.ts +0 -16
- package/types/Picker.d.ts +17 -45
- package/types/PickerView.d.ts +1 -12
- package/types/Progress.d.ts +0 -13
- package/types/Radio.d.ts +1 -8
- package/types/RadioGroup.d.ts +0 -2
- package/types/RichText.d.ts +1 -22
- package/types/RootPortal.d.ts +1 -2
- package/types/RtcRoom.d.ts +0 -16
- package/types/RtcRoomItem.d.ts +0 -3
- package/types/ScrollView.d.ts +43 -46
- package/types/ShareElement.d.ts +2 -7
- package/types/Slider.d.ts +0 -19
- package/types/StickyHeader.d.ts +12 -0
- package/types/StickySection.d.ts +18 -0
- package/types/Swiper.d.ts +0 -44
- package/types/SwiperItem.d.ts +0 -2
- package/types/Switch.d.ts +2 -11
- package/types/TabItem.d.ts +0 -4
- package/types/Tabs.d.ts +0 -8
- package/types/Text.d.ts +0 -7
- package/types/Textarea.d.ts +2 -38
- package/types/Video.d.ts +1 -112
- package/types/View.d.ts +0 -25
- package/types/VoipRoom.d.ts +0 -6
- package/types/WebView.d.ts +0 -6
- package/types/index.d.ts +4 -0
- package/types/index.vue3.d.ts +8 -0
- package/dist/taro-components/p-0895120a.system.entry.js +0 -1
- package/dist/taro-components/p-0aaf66d2.entry.js +0 -1
package/types/LivePlayer.d.ts
CHANGED
|
@@ -5,139 +5,114 @@ interface LivePlayerProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp, swan, tt, qq, jd
|
|
6
6
|
*/
|
|
7
7
|
src?: string
|
|
8
|
-
|
|
9
8
|
/** 模式
|
|
10
9
|
* @default "live"
|
|
11
10
|
* @supported weapp, qq, jd
|
|
12
11
|
*/
|
|
13
12
|
mode?: keyof LivePlayerProps.Mode
|
|
14
|
-
|
|
15
13
|
/** 自动播放
|
|
16
14
|
* @default false
|
|
17
15
|
* @supported weapp, swan, tt, qq, jd
|
|
18
16
|
*/
|
|
19
17
|
autoplay?: boolean
|
|
20
|
-
|
|
21
18
|
/** 是否静音
|
|
22
19
|
* @default false
|
|
23
20
|
* @supported weapp, swan, tt, qq, jd
|
|
24
21
|
*/
|
|
25
22
|
muted?: boolean
|
|
26
|
-
|
|
27
23
|
/** 画面方向
|
|
28
24
|
* @default "vertical"
|
|
29
25
|
* @supported weapp, swan, tt, qq, jd
|
|
30
26
|
*/
|
|
31
27
|
orientation?: keyof LivePlayerProps.Orientation
|
|
32
|
-
|
|
33
28
|
/** 填充模式
|
|
34
29
|
* @default "contain"
|
|
35
30
|
* @supported weapp, swan, tt, qq, jd
|
|
36
31
|
*/
|
|
37
32
|
objectFit?: keyof LivePlayerProps.objectFit
|
|
38
|
-
|
|
39
33
|
/** 进入后台时是否静音(已废弃,默认退台静音)
|
|
40
34
|
* @default false
|
|
41
35
|
* @supported weapp, swan
|
|
42
36
|
* @deprecated
|
|
43
37
|
*/
|
|
44
38
|
backgroundMute?: boolean
|
|
45
|
-
|
|
46
39
|
/** 最小缓冲区,单位s
|
|
47
40
|
* @default 1
|
|
48
41
|
* @supported weapp, swan, qq
|
|
49
42
|
*/
|
|
50
43
|
minCache?: number
|
|
51
|
-
|
|
52
44
|
/** 最大缓冲区,单位s
|
|
53
45
|
* @default 3
|
|
54
46
|
* @supported weapp, swan, qq
|
|
55
47
|
*/
|
|
56
48
|
maxCache?: number
|
|
57
|
-
|
|
58
49
|
/** 声音输出方式
|
|
59
50
|
* @default "speaker"
|
|
60
51
|
* @supported weapp, qq, jd
|
|
61
52
|
*/
|
|
62
53
|
soundMode?: keyof LivePlayerProps.soundMode
|
|
63
|
-
|
|
64
54
|
/** 当跳转到本小程序的其他页面时,是否自动暂停本页面的实时音视频播放
|
|
65
55
|
* @default true
|
|
66
56
|
* @supported weapp, qq
|
|
67
57
|
*/
|
|
68
58
|
autoPauseIfNavigate?: boolean
|
|
69
|
-
|
|
70
59
|
/** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
|
|
71
60
|
* @supported weapp
|
|
72
61
|
*/
|
|
73
62
|
pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | ''
|
|
74
|
-
|
|
75
63
|
/** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放
|
|
76
64
|
* @supported weapp, qq
|
|
77
65
|
*/
|
|
78
66
|
autoPauseIfOpenNative?: string
|
|
79
|
-
|
|
80
67
|
/** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
|
|
81
68
|
* @supported weapp
|
|
82
69
|
*/
|
|
83
70
|
referrerPolicy?: 'origin' | 'no-referrer'
|
|
84
|
-
|
|
85
71
|
/** 设置署名水印
|
|
86
72
|
* @supported tt
|
|
87
73
|
*/
|
|
88
74
|
signature?: string
|
|
89
|
-
|
|
90
75
|
/** 是否回调metadata
|
|
91
76
|
* @supported qq
|
|
92
77
|
*/
|
|
93
78
|
enableMetadata?: string
|
|
94
|
-
|
|
95
79
|
/** live-player 属性的唯一标志符
|
|
96
80
|
* @supported swan
|
|
97
81
|
*/
|
|
98
82
|
id?: string
|
|
99
|
-
|
|
100
83
|
/** 是否开启手机横屏时自动全屏,当系统设置开启自动旋转时生效
|
|
101
84
|
* @supported weapp
|
|
102
85
|
* @default false
|
|
103
86
|
*/
|
|
104
|
-
enableAutoRotation?:
|
|
105
|
-
|
|
87
|
+
enableAutoRotation?: boolean
|
|
106
88
|
/** 播放状态变化事件,detail = {code}
|
|
107
89
|
* @supported weapp, swan, tt, qq, jd
|
|
108
90
|
*/
|
|
109
91
|
onStateChange?: CommonEventFunction<LivePlayerProps.onStateChangeEventDetail>
|
|
110
|
-
|
|
111
92
|
/** 全屏变化事件,detail = {direction, fullScreen}
|
|
112
93
|
* @supported weapp, swan, tt, qq, jd
|
|
113
94
|
*/
|
|
114
95
|
onFullScreenChange?: CommonEventFunction<LivePlayerProps.onFullScreenChangeEventDetail>
|
|
115
|
-
|
|
116
96
|
/** 网络状态通知,detail = {info}
|
|
117
97
|
* @supported weapp, swan, qq
|
|
118
98
|
*/
|
|
119
99
|
onNetStatus?: CommonEventFunction<LivePlayerProps.onNetStatusEventDetail>
|
|
120
|
-
|
|
121
100
|
/** 播放音量大小通知,detail = {}
|
|
122
101
|
* @supported weapp
|
|
123
102
|
*/
|
|
124
103
|
onAudioVolumeNotify?: CommonEventFunction<{}>
|
|
125
|
-
|
|
126
104
|
/** 播放器进入小窗
|
|
127
105
|
* @supported weapp
|
|
128
106
|
*/
|
|
129
107
|
onEnterPictureInPicture?: CommonEventFunction
|
|
130
|
-
|
|
131
108
|
/** 播放器退出小窗
|
|
132
109
|
* @supported weapp
|
|
133
110
|
*/
|
|
134
111
|
onLeavePictureInPicture?: CommonEventFunction
|
|
135
|
-
|
|
136
112
|
/** 播放错误事件
|
|
137
113
|
* @supported tt
|
|
138
114
|
*/
|
|
139
115
|
onError?: CommonEventFunction
|
|
140
|
-
|
|
141
116
|
/** metadata通知,detail = {info}
|
|
142
117
|
* @supported qq
|
|
143
118
|
*/
|
|
@@ -148,34 +123,27 @@ declare namespace LivePlayerProps {
|
|
|
148
123
|
interface Mode {
|
|
149
124
|
/** 直播 */
|
|
150
125
|
live
|
|
151
|
-
|
|
152
126
|
/** 实时通话,该模式时延更低 */
|
|
153
127
|
RTC
|
|
154
128
|
}
|
|
155
|
-
|
|
156
129
|
/** orientation 的合法值 */
|
|
157
130
|
interface Orientation {
|
|
158
131
|
/** 竖直 */
|
|
159
132
|
vertical
|
|
160
|
-
|
|
161
133
|
/** 水平 */
|
|
162
134
|
horizontal
|
|
163
135
|
}
|
|
164
|
-
|
|
165
136
|
/** objectFit 的合法值 */
|
|
166
137
|
interface objectFit {
|
|
167
138
|
/** 图像长边填满屏幕,短边区域会被填充⿊⾊ */
|
|
168
139
|
contain
|
|
169
|
-
|
|
170
140
|
/** 图像铺满屏幕,超出显示区域的部分将被截掉 */
|
|
171
141
|
fillCrop
|
|
172
142
|
}
|
|
173
|
-
|
|
174
143
|
/** soundMode 的合法值 */
|
|
175
144
|
interface soundMode {
|
|
176
145
|
/** 扬声器 */
|
|
177
146
|
speaker
|
|
178
|
-
|
|
179
147
|
/** 听筒 */
|
|
180
148
|
ear
|
|
181
149
|
}
|
|
@@ -186,87 +154,62 @@ declare namespace LivePlayerProps {
|
|
|
186
154
|
interface onFullScreenChangeEventDetail {
|
|
187
155
|
/** 方向 */
|
|
188
156
|
direction: number
|
|
189
|
-
|
|
190
157
|
/** 全屏 */
|
|
191
158
|
fullScreen: number | boolean
|
|
192
159
|
}
|
|
193
160
|
interface onNetStatusEventDetail {
|
|
194
161
|
info: NetStatus
|
|
195
162
|
}
|
|
196
|
-
|
|
197
163
|
/** 状态码 */
|
|
198
164
|
interface Status {
|
|
199
165
|
/** 已经连接服务器 */
|
|
200
166
|
2001
|
|
201
|
-
|
|
202
167
|
/** 已经连接 RTMP 服务器,开始拉流 */
|
|
203
168
|
2002
|
|
204
|
-
|
|
205
169
|
/** 网络接收到首个视频数据包(IDR) */
|
|
206
170
|
2003
|
|
207
|
-
|
|
208
171
|
/** 视频播放开始 */
|
|
209
172
|
2004
|
|
210
|
-
|
|
211
173
|
/** 视频播放进度 */
|
|
212
174
|
2005
|
|
213
|
-
|
|
214
175
|
/** 视频播放结束 */
|
|
215
176
|
2006
|
|
216
|
-
|
|
217
177
|
/** 视频播放Loading */
|
|
218
178
|
2007
|
|
219
|
-
|
|
220
179
|
/** 解码器启动 */
|
|
221
180
|
2008
|
|
222
|
-
|
|
223
181
|
/** 视频分辨率改变 */
|
|
224
182
|
2009
|
|
225
|
-
|
|
226
183
|
/** 网络断连,且经多次重连抢救无效,更多重试请自行重启播放 */
|
|
227
184
|
'-2301'
|
|
228
|
-
|
|
229
185
|
/** 获取加速拉流地址失败 */
|
|
230
186
|
'-2302'
|
|
231
|
-
|
|
232
187
|
/** 当前视频帧解码失败 */
|
|
233
188
|
2101
|
|
234
|
-
|
|
235
189
|
/** 当前音频帧解码失败 */
|
|
236
190
|
2102
|
|
237
|
-
|
|
238
191
|
/** 网络断连, 已启动自动重连 */
|
|
239
192
|
2103
|
|
240
|
-
|
|
241
193
|
/** 网络来包不稳:可能是下行带宽不足,或由于主播端出流不均匀 */
|
|
242
194
|
2104
|
|
243
|
-
|
|
244
195
|
/** 当前视频播放出现卡顿 */
|
|
245
196
|
2105
|
|
246
|
-
|
|
247
197
|
/** 硬解启动失败,采用软解 */
|
|
248
198
|
2106
|
|
249
|
-
|
|
250
199
|
/** 当前视频帧不连续,可能丢帧 */
|
|
251
200
|
2107
|
|
252
|
-
|
|
253
201
|
/** 当前流硬解第一个I帧失败,SDK自动切软解 */
|
|
254
202
|
2108
|
|
255
|
-
|
|
256
203
|
/** RTMP -DNS解析失败 */
|
|
257
204
|
3001
|
|
258
|
-
|
|
259
205
|
/** RTMP服务器连接失败 */
|
|
260
206
|
3002
|
|
261
|
-
|
|
262
207
|
/** RTMP服务器握手失败 */
|
|
263
208
|
3003
|
|
264
|
-
|
|
265
209
|
/** RTMP 读/写失败 */
|
|
266
210
|
3005
|
|
267
211
|
}
|
|
268
212
|
}
|
|
269
|
-
|
|
270
213
|
/** 实时音视频播放。相关api:Taro.createLivePlayerContext
|
|
271
214
|
*
|
|
272
215
|
* 需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
package/types/LivePusher.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StandardProps, CommonEventFunction, NetStatus } from './common'
|
|
3
|
-
|
|
4
3
|
/** 实时音视频录制。
|
|
5
4
|
* 需要用户授权 scope.camera、scope.record
|
|
6
5
|
* 暂只针对国内主体如下类目的小程序开放,需要先通过类目审核,再在小程序管理后台,“设置”-“接口设置”中自助开通该组件权限。
|
|
@@ -10,120 +9,100 @@ interface LivePusherProps extends StandardProps {
|
|
|
10
9
|
* @supported weapp, qq
|
|
11
10
|
*/
|
|
12
11
|
url?: string
|
|
13
|
-
|
|
14
12
|
/** SD(标清), HD(高清), FHD(超清), RTC(实时通话)
|
|
15
13
|
* @default "RTC"
|
|
16
14
|
* @supported weapp, qq
|
|
17
15
|
*/
|
|
18
16
|
mode?: 'SD' | 'HD' | 'FHD' | 'RTC'
|
|
19
|
-
|
|
20
17
|
/** 自动推流
|
|
21
18
|
* @default false
|
|
22
19
|
* @supported weapp, qq
|
|
23
20
|
*/
|
|
24
21
|
autopush?: boolean
|
|
25
|
-
|
|
26
22
|
/** 自定义渲染,允许开发者自行处理所采集的视频帧
|
|
27
23
|
* @default false
|
|
28
24
|
* @supported weapp
|
|
29
25
|
*/
|
|
30
26
|
enableVideoCustomRender?: boolean
|
|
31
|
-
|
|
32
27
|
/** 是否静音。即将废弃,可用 enable-mic 替代
|
|
33
28
|
* @default false
|
|
34
29
|
* @deprecated
|
|
35
30
|
* @supported weapp, qq
|
|
36
31
|
*/
|
|
37
32
|
muted?: boolean
|
|
38
|
-
|
|
39
33
|
/** 开启摄像头
|
|
40
34
|
* @default true
|
|
41
35
|
* @supported weapp, qq
|
|
42
36
|
*/
|
|
43
37
|
enableCamera?: boolean
|
|
44
|
-
|
|
45
38
|
/** 自动聚集
|
|
46
39
|
* @default true
|
|
47
40
|
* @supported weapp, qq
|
|
48
41
|
*/
|
|
49
42
|
autoFocus?: boolean
|
|
50
|
-
|
|
51
43
|
/** 画面方向
|
|
52
44
|
* @default "vertical"
|
|
53
45
|
* @supported weapp, qq
|
|
54
46
|
*/
|
|
55
47
|
orientation?: keyof LivePusherProps.Orientation
|
|
56
|
-
|
|
57
48
|
/** 美颜,取值范围 0-9 ,0 表示关闭
|
|
58
49
|
* @default 0
|
|
59
50
|
* @supported weapp, qq
|
|
60
51
|
*/
|
|
61
52
|
beauty?: number
|
|
62
|
-
|
|
63
53
|
/** 美白,取值范围 0-9 ,0 表示关闭
|
|
64
54
|
* @default 0
|
|
65
55
|
* @supported weapp, qq
|
|
66
56
|
*/
|
|
67
57
|
whiteness?: number
|
|
68
|
-
|
|
69
58
|
/** 宽高比,可选值有 3:4, 9:16
|
|
70
59
|
* @default "9:16"
|
|
71
60
|
* @supported weapp, qq
|
|
72
61
|
*/
|
|
73
62
|
aspect?: '9:16' | '3:4'
|
|
74
|
-
|
|
75
63
|
/** 最小码率
|
|
76
64
|
* @default 200
|
|
77
65
|
* @supported weapp, qq
|
|
78
66
|
*/
|
|
79
67
|
minBitrate?: number
|
|
80
|
-
|
|
81
68
|
/** 最大码率
|
|
82
69
|
* @default 1000
|
|
83
70
|
* @supported weapp, qq
|
|
84
71
|
*/
|
|
85
72
|
maxBitrate?: number
|
|
86
|
-
|
|
87
73
|
/** 高音质(48KHz)或低音质(16KHz),值为high, low
|
|
88
74
|
* @default "high"
|
|
89
75
|
* @supported weapp, qq
|
|
90
76
|
*/
|
|
91
77
|
audioQuality?: string
|
|
92
|
-
|
|
93
78
|
/** 进入后台时推流的等待画面
|
|
94
79
|
* @supported weapp, qq
|
|
95
80
|
*/
|
|
96
81
|
waitingImage?: string
|
|
97
|
-
|
|
98
82
|
/** 等待画面资源的MD5值
|
|
99
83
|
* @supported weapp, qq
|
|
100
84
|
*/
|
|
101
85
|
waitingImageHash?: string
|
|
102
|
-
|
|
103
86
|
/** 调整焦距
|
|
104
87
|
* @default false
|
|
105
88
|
* @supported weapp, qq
|
|
106
89
|
*/
|
|
107
90
|
zoom?: boolean
|
|
108
|
-
|
|
109
91
|
/** 前置或后置,值为front, back
|
|
110
92
|
* @default "front"
|
|
111
93
|
* @supported weapp, qq
|
|
112
94
|
*/
|
|
113
95
|
devicePosition?: string
|
|
114
|
-
|
|
115
96
|
/** 进入后台时是否静音
|
|
116
97
|
* @default false
|
|
117
98
|
* @supported weapp, qq
|
|
118
99
|
*/
|
|
119
100
|
backgroundMute?: boolean
|
|
120
|
-
|
|
121
101
|
/** 设置推流画面是否镜像,产生的效果在 LivePlayer 反应到
|
|
122
102
|
* @default false
|
|
123
103
|
* @supported weapp, qq
|
|
124
104
|
*/
|
|
125
105
|
mirror?: boolean
|
|
126
|
-
|
|
127
106
|
/** 设置推流画面是否镜像,产生的效果在 LivePlayer 反应到
|
|
128
107
|
*
|
|
129
108
|
* **Note:** 同 mirror 属性,后续 mirror 将废弃
|
|
@@ -131,142 +110,117 @@ interface LivePusherProps extends StandardProps {
|
|
|
131
110
|
* @supported weapp
|
|
132
111
|
*/
|
|
133
112
|
remoteMirror?: boolean
|
|
134
|
-
|
|
135
113
|
/** 控制本地预览画面是否镜像
|
|
136
114
|
* @default "auto"
|
|
137
115
|
* @supported weapp
|
|
138
116
|
*/
|
|
139
117
|
localMirror?: keyof LivePusherProps.LocalMirror
|
|
140
|
-
|
|
141
118
|
/** 音频混响类型
|
|
142
119
|
* @default 0
|
|
143
120
|
* @supported weapp, qq
|
|
144
121
|
*/
|
|
145
122
|
audioReverbType?: keyof LivePusherProps.AudioReverbType
|
|
146
|
-
|
|
147
123
|
/** 开启或关闭麦克风
|
|
148
124
|
* @default true
|
|
149
125
|
* @supported weapp
|
|
150
126
|
*/
|
|
151
127
|
enableMic?: boolean
|
|
152
|
-
|
|
153
128
|
/** 是否开启音频自动增益
|
|
154
129
|
* @default false
|
|
155
130
|
* @supported weapp
|
|
156
131
|
*/
|
|
157
132
|
enableAgc?: boolean
|
|
158
|
-
|
|
159
133
|
/** 是否开启音频噪声抑制
|
|
160
134
|
* @default false
|
|
161
135
|
* @supported weapp
|
|
162
136
|
*/
|
|
163
137
|
enableAns?: boolean
|
|
164
|
-
|
|
165
138
|
/** 音量类型
|
|
166
139
|
* @default "voicecall"
|
|
167
140
|
* @supported weapp
|
|
168
141
|
*/
|
|
169
142
|
audioVolumeType?: keyof LivePusherProps.AudioVolumeType
|
|
170
|
-
|
|
171
143
|
/** 上推的视频流的分辨率宽度
|
|
172
144
|
* @default 360
|
|
173
145
|
* @supported weapp
|
|
174
146
|
*/
|
|
175
147
|
videoWidth?: number
|
|
176
|
-
|
|
177
148
|
/** 上推的视频流的分辨率高度
|
|
178
149
|
* @default 640
|
|
179
150
|
* @supported weapp
|
|
180
151
|
*/
|
|
181
152
|
videoHeight?: number
|
|
182
|
-
|
|
183
153
|
/** 设置美颜类型
|
|
184
154
|
* @default smooth
|
|
185
155
|
* @supported weapp
|
|
186
156
|
*/
|
|
187
157
|
beautyStyle?: keyof LivePusherProps.BeautyStyleType
|
|
188
|
-
|
|
189
158
|
/** 设置色彩滤镜
|
|
190
159
|
* @default standard
|
|
191
160
|
* @supported weapp
|
|
192
161
|
*/
|
|
193
162
|
filter?: keyof LivePusherProps.FilterType
|
|
194
|
-
|
|
195
163
|
/** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
|
|
196
164
|
* @supported weapp
|
|
197
165
|
*/
|
|
198
166
|
pictureInPictureMode?: string | any[]
|
|
199
|
-
|
|
200
167
|
/** 是否启动自定义特效,设定后不能更改
|
|
201
168
|
* @supported weapp
|
|
202
169
|
* @default false
|
|
203
170
|
*/
|
|
204
171
|
customEffect?: boolean
|
|
205
|
-
|
|
206
172
|
/** 自定义特效美白效果,取值 0~1。需要开启 custom-effect
|
|
207
173
|
* @supported weapp
|
|
208
174
|
* @default 0
|
|
209
175
|
*/
|
|
210
176
|
skinWhiteness?: number
|
|
211
|
-
|
|
212
177
|
/** 自定义特效磨皮效果,取值 0~1。需要开启 custom-effect
|
|
213
178
|
* @supported weapp
|
|
214
179
|
* @default 0
|
|
215
180
|
*/
|
|
216
181
|
skinSmoothness?: number
|
|
217
|
-
|
|
218
182
|
/** 自定义特效瘦脸效果,取值 0~1。需要开启 custom-effect
|
|
219
183
|
* @supported weapp
|
|
220
184
|
* @default 0
|
|
221
185
|
*/
|
|
222
186
|
faceThinness?: number
|
|
223
|
-
|
|
224
187
|
/** 自定义特效大眼效果,取值 0~1。需要开启 custom-effect
|
|
225
188
|
* @supported weapp
|
|
226
189
|
* @default 0
|
|
227
190
|
*/
|
|
228
191
|
eyeBigness?: number
|
|
229
|
-
|
|
230
192
|
/** 状态变化事件,detail = {code}
|
|
231
193
|
* @supported weapp, qq
|
|
232
194
|
*/
|
|
233
195
|
onStateChange?: CommonEventFunction<LivePusherProps.onStateChangeEventDetail>
|
|
234
|
-
|
|
235
196
|
/** 渲染错误事件,detail = {errMsg, errCode}
|
|
236
197
|
* @supported weapp, qq
|
|
237
198
|
*/
|
|
238
199
|
onError?: CommonEventFunction<LivePusherProps.onErrorEventDetail>
|
|
239
|
-
|
|
240
200
|
/** 背景音进度变化时触发,detail = {progress, duration}
|
|
241
201
|
* @supported weapp, qq
|
|
242
202
|
*/
|
|
243
203
|
onBgmProgress?: CommonEventFunction<LivePusherProps.onBgmProgressEventDetail>
|
|
244
|
-
|
|
245
204
|
/** 背景音播放完成时触发
|
|
246
205
|
* @supported weapp, qq
|
|
247
206
|
*/
|
|
248
207
|
onBgmComplete?: CommonEventFunction
|
|
249
|
-
|
|
250
208
|
/** 返回麦克风采集的音量大小
|
|
251
209
|
* @supported weapp
|
|
252
210
|
*/
|
|
253
211
|
onAudioVolumeNotify?: CommonEventFunction
|
|
254
|
-
|
|
255
212
|
/** 网络状态通知,detail = {info}
|
|
256
213
|
* @supported weapp, qq
|
|
257
214
|
*/
|
|
258
215
|
onNetStatus?: CommonEventFunction
|
|
259
|
-
|
|
260
216
|
/** 进入小窗
|
|
261
217
|
* @supported weapp
|
|
262
218
|
*/
|
|
263
219
|
onEnterPictureInPicture?: string
|
|
264
|
-
|
|
265
220
|
/** 退出小窗
|
|
266
221
|
* @supported weapp
|
|
267
222
|
*/
|
|
268
223
|
onLeavePictureInPicture?: string
|
|
269
|
-
|
|
270
224
|
/** 背景音开始播放时触发
|
|
271
225
|
* @supported weapp, qq
|
|
272
226
|
*/
|
|
@@ -277,103 +231,75 @@ declare namespace LivePusherProps {
|
|
|
277
231
|
interface Orientation {
|
|
278
232
|
/** 竖直 */
|
|
279
233
|
vertical
|
|
280
|
-
|
|
281
234
|
/** 水平 */
|
|
282
235
|
horizontal
|
|
283
236
|
}
|
|
284
|
-
|
|
285
237
|
/** localMirror 的合法值 */
|
|
286
238
|
interface LocalMirror {
|
|
287
239
|
/** 前置摄像头镜像,后置摄像头不镜像 */
|
|
288
240
|
auto
|
|
289
|
-
|
|
290
241
|
/** 前后置摄像头均镜像 */
|
|
291
242
|
enable
|
|
292
|
-
|
|
293
243
|
/** 前后置摄像头均不镜像 */
|
|
294
244
|
disable
|
|
295
245
|
}
|
|
296
|
-
|
|
297
246
|
/** audioReverbType 的合法值 */
|
|
298
247
|
interface AudioReverbType {
|
|
299
248
|
/** 关闭 */
|
|
300
249
|
0
|
|
301
|
-
|
|
302
250
|
/** KTV */
|
|
303
251
|
1
|
|
304
|
-
|
|
305
252
|
/** 小房间 */
|
|
306
253
|
2
|
|
307
|
-
|
|
308
254
|
/** 大会堂 */
|
|
309
255
|
3
|
|
310
|
-
|
|
311
256
|
/** 低沉 */
|
|
312
257
|
4
|
|
313
|
-
|
|
314
258
|
/** 洪亮 */
|
|
315
259
|
5
|
|
316
|
-
|
|
317
260
|
/** 金属声 */
|
|
318
261
|
6
|
|
319
|
-
|
|
320
262
|
/** 磁性 */
|
|
321
263
|
7
|
|
322
264
|
}
|
|
323
|
-
|
|
324
265
|
/** audioVolumeType 的合法值 */
|
|
325
266
|
interface AudioVolumeType {
|
|
326
267
|
/** 自动 */
|
|
327
268
|
auto
|
|
328
|
-
|
|
329
269
|
/** 媒体音量 */
|
|
330
270
|
media
|
|
331
|
-
|
|
332
271
|
/** 通话音量 */
|
|
333
272
|
voicecall
|
|
334
273
|
}
|
|
335
|
-
|
|
336
274
|
/** beautyStyleType 的合法值 */
|
|
337
275
|
interface BeautyStyleType {
|
|
338
276
|
/** 光滑美颜 */
|
|
339
277
|
smooth
|
|
340
|
-
|
|
341
278
|
/** 自然美颜 */
|
|
342
279
|
nature
|
|
343
280
|
}
|
|
344
|
-
|
|
345
281
|
/** filterType 的合法值 */
|
|
346
282
|
interface FilterType {
|
|
347
283
|
/** 标准 */
|
|
348
284
|
standard
|
|
349
|
-
|
|
350
285
|
/** 粉嫩 */
|
|
351
286
|
pink
|
|
352
|
-
|
|
353
287
|
/** 怀旧 */
|
|
354
288
|
nostalgia
|
|
355
|
-
|
|
356
289
|
/** 蓝调 */
|
|
357
290
|
blues
|
|
358
|
-
|
|
359
291
|
/** 浪漫 */
|
|
360
292
|
romantic
|
|
361
|
-
|
|
362
293
|
/** 清凉 */
|
|
363
294
|
cool
|
|
364
|
-
|
|
365
295
|
/** 清新 */
|
|
366
296
|
fresher
|
|
367
|
-
|
|
368
297
|
/** 日系 */
|
|
369
298
|
solor
|
|
370
|
-
|
|
371
299
|
/** 唯美 */
|
|
372
300
|
aestheticism
|
|
373
|
-
|
|
374
301
|
/** 美白 */
|
|
375
302
|
whitening
|
|
376
|
-
|
|
377
303
|
/** 樱红 */
|
|
378
304
|
cerisered
|
|
379
305
|
}
|
|
@@ -388,19 +314,16 @@ declare namespace LivePusherProps {
|
|
|
388
314
|
interface onErrorEventDetail {
|
|
389
315
|
/** 错误信息 */
|
|
390
316
|
errMsg: string
|
|
391
|
-
|
|
392
317
|
/** 错误码 */
|
|
393
318
|
errCode: string | number
|
|
394
319
|
}
|
|
395
320
|
interface onBgmProgressEventDetail {
|
|
396
321
|
/** 进展 */
|
|
397
322
|
progress
|
|
398
|
-
|
|
399
323
|
/** 持续时间 */
|
|
400
324
|
duration: number
|
|
401
325
|
}
|
|
402
326
|
}
|
|
403
|
-
|
|
404
327
|
/** 实时音视频录制。需要用户授权 scope.camera、scope.record
|
|
405
328
|
* 需要先通过类目审核,再在小程序管理后台,「开发」-「接口设置」中自助开通该组件权限。
|
|
406
329
|
* @classification media
|
package/types/Login.d.ts
CHANGED
|
@@ -5,20 +5,17 @@ interface LoginProps extends StandardProps {
|
|
|
5
5
|
* @supported swan
|
|
6
6
|
*/
|
|
7
7
|
buttonClass?: string
|
|
8
|
-
|
|
9
8
|
/** 组件中用户授权勾选框选中时的颜色,同 CSS 的 color
|
|
10
9
|
* @supported swan
|
|
11
10
|
* @default "#3388FF"
|
|
12
11
|
*/
|
|
13
12
|
checkedColor?: string
|
|
14
|
-
|
|
15
13
|
/** 主题颜色,设置后将应用于 “用户授权按钮背景色” 和 “用户授权勾选框选中时的颜色”
|
|
16
14
|
* 注:theme-color 的优先级低于 button-class 和 checked-color,且当 button-class 存在时,theme-color 不生效
|
|
17
15
|
* @supported swan
|
|
18
16
|
* @default "#3388FF"
|
|
19
17
|
*/
|
|
20
18
|
themeColor?: string
|
|
21
|
-
|
|
22
19
|
/** 用户完成授权后,获取用户手机号:
|
|
23
20
|
* detail.errMsg 值为"getPhoneNumber:ok" 时代表用户信息获取成功;
|
|
24
21
|
* detail.errMsg 值为"getPhoneNumber:fail auth deny"时代表用户信息获取失败。
|
|
@@ -29,13 +26,11 @@ interface LoginProps extends StandardProps {
|
|
|
29
26
|
* @supported swan
|
|
30
27
|
*/
|
|
31
28
|
onGetPhoneNumber?: CommonEventFunction
|
|
32
|
-
|
|
33
29
|
/** 组件加载失败回调
|
|
34
30
|
* @supported swan
|
|
35
31
|
*/
|
|
36
32
|
onLoadError?: CommonEventFunction
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
/** 联合登录 / 手机号授权内嵌组件
|
|
40
35
|
* @classification open
|
|
41
36
|
* @supported swan
|