@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/PageMeta.d.ts
CHANGED
|
@@ -5,71 +5,58 @@ interface PageMetaProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp
|
|
6
6
|
*/
|
|
7
7
|
backgroundTextStyle?: string
|
|
8
|
-
|
|
9
8
|
/** 窗口的背景色,必须为十六进制颜色值
|
|
10
9
|
* @supported weapp, alipay
|
|
11
10
|
*/
|
|
12
11
|
backgroundColor?: string
|
|
13
|
-
|
|
14
12
|
/** 顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持
|
|
15
13
|
* @supported weapp, alipay
|
|
16
14
|
*/
|
|
17
15
|
backgroundColorTop?: string
|
|
18
|
-
|
|
19
16
|
/** 底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持
|
|
20
17
|
* @supported weapp, alipay
|
|
21
18
|
*/
|
|
22
19
|
backgroundColorBottom?: string
|
|
23
|
-
|
|
24
20
|
/** 滚动位置,可以使用 px 或者 rpx 为单位,在被设置时,页面会滚动到对应位置
|
|
25
21
|
* @default ""
|
|
26
22
|
* @supported weapp, alipay
|
|
27
23
|
*/
|
|
28
24
|
scrollTop?: string
|
|
29
|
-
|
|
30
25
|
/** 滚动动画时长
|
|
31
26
|
* @default 300
|
|
32
27
|
* @supported weapp, alipay
|
|
33
28
|
*/
|
|
34
29
|
scrollDuration?: number
|
|
35
|
-
|
|
36
30
|
/** 页面根节点样式,页面根节点是所有页面节点的祖先节点,相当于 HTML 中的 body 节点
|
|
37
31
|
* @default ""
|
|
38
32
|
* @supported weapp, alipay
|
|
39
33
|
*/
|
|
40
34
|
pageStyle?: string
|
|
41
|
-
|
|
42
35
|
/** 页面的根字体大小,页面中的所有 rem 单位,将使用这个字体大小作为参考值,即 1rem 等于这个字体大小
|
|
43
36
|
* @default ""
|
|
44
37
|
* @supported weapp, alipay
|
|
45
38
|
*/
|
|
46
39
|
rootFontSize?: string
|
|
47
|
-
|
|
48
40
|
/** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
|
|
49
41
|
* @supported weapp, alipay
|
|
50
42
|
*/
|
|
51
43
|
rootBackgroundColor?: string
|
|
52
|
-
|
|
53
44
|
/** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
|
|
54
45
|
* @supported weapp, alipay
|
|
55
46
|
*/
|
|
56
47
|
pageFontSize?: string
|
|
57
|
-
|
|
58
48
|
/** 页面的方向,可为 auto portrait 或 landscape
|
|
59
49
|
* @supported weapp
|
|
60
50
|
*/
|
|
61
51
|
pageOrientation?: string
|
|
62
|
-
|
|
63
52
|
/** 页面尺寸变化时会触发 resize 事件
|
|
64
53
|
* @supported weapp
|
|
65
54
|
*/
|
|
66
55
|
onResize?: CommonEventFunction<PageMetaProps.onResizeEventDetail>
|
|
67
|
-
|
|
68
56
|
/** 页面滚动时会触发 scroll 事件
|
|
69
57
|
* @supported weapp, alipay
|
|
70
58
|
*/
|
|
71
59
|
onScroll?: CommonEventFunction<PageMetaProps.onScrollEventDetail>
|
|
72
|
-
|
|
73
60
|
/** 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件
|
|
74
61
|
* @supported weapp
|
|
75
62
|
*/
|
|
@@ -80,12 +67,10 @@ declare namespace PageMetaProps {
|
|
|
80
67
|
/** 窗口尺寸 */
|
|
81
68
|
size: resizeType
|
|
82
69
|
}
|
|
83
|
-
|
|
84
70
|
/** 窗口尺寸类型 */
|
|
85
71
|
interface resizeType {
|
|
86
72
|
/** 窗口宽度 */
|
|
87
73
|
windowWidth: number
|
|
88
|
-
|
|
89
74
|
/** 窗口高度 */
|
|
90
75
|
windowHeight: number
|
|
91
76
|
}
|
|
@@ -93,7 +78,6 @@ declare namespace PageMetaProps {
|
|
|
93
78
|
scrollTop: number
|
|
94
79
|
}
|
|
95
80
|
}
|
|
96
|
-
|
|
97
81
|
/** 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。可以配合 navigation-bar 组件一同使用。
|
|
98
82
|
* 通过这个节点可以获得类似于调用 Taro.setBackgroundTextStyle Taro.setBackgroundColor 等接口调用的效果。
|
|
99
83
|
* @supported weapp, alipay
|
package/types/Picker.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StyleProp, TextStyle, ViewStyle } from 'react-native'
|
|
3
3
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
4
|
-
|
|
5
4
|
/** 选择器通用参数 */
|
|
6
5
|
interface PickerStandardProps extends StandardProps, FormItemProps {
|
|
7
6
|
/**
|
|
@@ -10,14 +9,12 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
|
|
|
10
9
|
* @supported weapp, h5, rn
|
|
11
10
|
*/
|
|
12
11
|
mode?: keyof PickerStandardProps.Mode
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* 是否禁用
|
|
16
14
|
* @default false
|
|
17
15
|
* @supported weapp, h5, rn
|
|
18
16
|
*/
|
|
19
17
|
disabled?: boolean
|
|
20
|
-
|
|
21
18
|
/**
|
|
22
19
|
* 取消选择或点遮罩层收起 picker 时触发
|
|
23
20
|
* @supported weapp, h5, rn
|
|
@@ -29,60 +26,49 @@ declare namespace PickerStandardProps {
|
|
|
29
26
|
interface Mode {
|
|
30
27
|
/** 普通选择器 */
|
|
31
28
|
selector
|
|
32
|
-
|
|
33
29
|
/** 多列选择器 */
|
|
34
30
|
multiSelector
|
|
35
|
-
|
|
36
31
|
/** 时间选择器 */
|
|
37
32
|
time
|
|
38
|
-
|
|
39
33
|
/** 日期选择器 */
|
|
40
34
|
date
|
|
41
|
-
|
|
42
35
|
/** 省市区选择器 */
|
|
43
36
|
region
|
|
44
37
|
}
|
|
45
38
|
}
|
|
46
|
-
|
|
47
39
|
/** 普通选择器:mode = selector */
|
|
48
40
|
interface PickerSelectorProps extends PickerStandardProps {
|
|
49
41
|
/** 选择器类型 */
|
|
50
42
|
mode?: 'selector'
|
|
51
|
-
|
|
52
43
|
/**
|
|
53
44
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
54
45
|
* @supported weapp, h5, rn
|
|
55
46
|
* @default []
|
|
56
47
|
*/
|
|
57
48
|
range: string[] | number[] | Record<string, any>[]
|
|
58
|
-
|
|
59
49
|
/**
|
|
60
50
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
61
51
|
* @supported weapp, h5, rn
|
|
62
52
|
*/
|
|
63
53
|
rangeKey?: string
|
|
64
|
-
|
|
65
54
|
/**
|
|
66
55
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
67
56
|
* @supported weapp, h5, rn
|
|
68
57
|
* @default 0
|
|
69
58
|
*/
|
|
70
59
|
value?: number
|
|
71
|
-
|
|
72
60
|
/**
|
|
73
61
|
* mode为 selector 或 multiSelector 时 itemStyle 有效
|
|
74
62
|
* @supported rn
|
|
75
63
|
* @default {}
|
|
76
64
|
*/
|
|
77
65
|
itemStyle?: StyleProp<TextStyle>
|
|
78
|
-
|
|
79
66
|
/**
|
|
80
67
|
* mode为 selector 或 multiSelector 时 indicatorStyle 有效
|
|
81
68
|
* @supported rn
|
|
82
69
|
* @default {}
|
|
83
70
|
*/
|
|
84
71
|
indicatorStyle?: StyleProp<ViewStyle>
|
|
85
|
-
|
|
86
72
|
/**
|
|
87
73
|
* value 改变时触发 change 事件
|
|
88
74
|
* @supported weapp, h5, rn
|
|
@@ -95,52 +81,44 @@ declare namespace PickerSelectorProps {
|
|
|
95
81
|
value: string | number
|
|
96
82
|
}
|
|
97
83
|
}
|
|
98
|
-
|
|
99
84
|
/** 多列选择器:mode = multiSelector */
|
|
100
85
|
interface PickerMultiSelectorProps extends PickerStandardProps {
|
|
101
86
|
/** 选择器类型 */
|
|
102
87
|
mode: 'multiSelector'
|
|
103
|
-
|
|
104
88
|
/**
|
|
105
89
|
* mode为 selector 或 multiSelector 时,range 有效
|
|
106
90
|
* @supported weapp, h5, rn
|
|
107
91
|
* @default []
|
|
108
92
|
*/
|
|
109
93
|
range: Array<string[]> | Array<number[]> | Array<Record<string, any>[]>
|
|
110
|
-
|
|
111
94
|
/**
|
|
112
95
|
* 当 range 是一个 Object Array 时,通过 rangeKey 来指定 Object 中 key 的值作为选择器显示内容
|
|
113
96
|
* @supported weapp, h5, rn
|
|
114
97
|
*/
|
|
115
98
|
rangeKey?: string
|
|
116
|
-
|
|
117
99
|
/**
|
|
118
100
|
* 表示选择了 range 中的第几个(下标从 0 开始)
|
|
119
101
|
* @supported weapp, h5, rn
|
|
120
102
|
* @default []
|
|
121
103
|
*/
|
|
122
104
|
value: number[] | string[] | Record<string, any>[]
|
|
123
|
-
|
|
124
105
|
/**
|
|
125
106
|
* mode为 selector 或 multiSelector 时 itemStyle 有效
|
|
126
107
|
* @supported rn
|
|
127
108
|
* @default {}
|
|
128
109
|
*/
|
|
129
110
|
itemStyle?: StyleProp<TextStyle>
|
|
130
|
-
|
|
131
111
|
/**
|
|
132
112
|
* mode为 selector 或 multiSelector 时 indicatorStyle 有效
|
|
133
113
|
* @supported rn
|
|
134
114
|
* @default {}
|
|
135
115
|
*/
|
|
136
116
|
indicatorStyle?: StyleProp<ViewStyle>
|
|
137
|
-
|
|
138
117
|
/**
|
|
139
118
|
* 当 value 改变时触发 change 事件
|
|
140
119
|
* @supported weapp, h5, rn
|
|
141
120
|
*/
|
|
142
121
|
onChange: CommonEventFunction<PickerMultiSelectorProps.ChangeEventDetail>
|
|
143
|
-
|
|
144
122
|
/**
|
|
145
123
|
* 列改变时触发
|
|
146
124
|
* @supported weapp, h5, rn
|
|
@@ -155,35 +133,29 @@ declare namespace PickerMultiSelectorProps {
|
|
|
155
133
|
interface ColumnChangeEventDetail {
|
|
156
134
|
/** 表示改变了第几列(下标从0开始) */
|
|
157
135
|
column: number
|
|
158
|
-
|
|
159
136
|
/** 表示变更值的下标 */
|
|
160
137
|
value: number
|
|
161
138
|
}
|
|
162
139
|
}
|
|
163
|
-
|
|
164
140
|
/** 时间选择器:mode = time */
|
|
165
141
|
interface PickerTimeProps extends PickerStandardProps {
|
|
166
142
|
/** 选择器类型 */
|
|
167
143
|
mode: 'time'
|
|
168
|
-
|
|
169
144
|
/**
|
|
170
145
|
* value 的值表示选择了 range 中的第几个(下标从 0 开始)
|
|
171
146
|
* @supported weapp, h5, rn
|
|
172
147
|
*/
|
|
173
148
|
value: string
|
|
174
|
-
|
|
175
149
|
/**
|
|
176
150
|
* 仅当 mode = time|date 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
|
|
177
151
|
* @supported weapp, h5, rn
|
|
178
152
|
*/
|
|
179
153
|
start?: string
|
|
180
|
-
|
|
181
154
|
/**
|
|
182
155
|
* 仅当 mode = time|date 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
|
|
183
156
|
* @supported weapp, h5, rn
|
|
184
157
|
*/
|
|
185
158
|
end?: string
|
|
186
|
-
|
|
187
159
|
/**
|
|
188
160
|
* value 改变时触发 change 事件
|
|
189
161
|
* @supported weapp, h5, rn
|
|
@@ -196,38 +168,32 @@ declare namespace PickerTimeProps {
|
|
|
196
168
|
value: string
|
|
197
169
|
}
|
|
198
170
|
}
|
|
199
|
-
|
|
200
171
|
/** 日期选择器:mode = date */
|
|
201
172
|
interface PickerDateProps extends PickerStandardProps {
|
|
202
173
|
/** 选择器类型 */
|
|
203
174
|
mode: 'date'
|
|
204
|
-
|
|
205
175
|
/**
|
|
206
176
|
* 表示选中的日期,格式为"YYYY-MM-DD"
|
|
207
177
|
* @supported weapp, h5, rn
|
|
208
178
|
* @default 0
|
|
209
179
|
*/
|
|
210
180
|
value: string
|
|
211
|
-
|
|
212
181
|
/**
|
|
213
182
|
* 仅当 mode = time|date 时有效,表示有效时间范围的开始,字符串格式为"hh:mm"
|
|
214
183
|
* @supported weapp, h5, rn
|
|
215
184
|
*/
|
|
216
185
|
start?: string
|
|
217
|
-
|
|
218
186
|
/**
|
|
219
187
|
* 仅当 mode = time|date 时有效,表示有效时间范围的结束,字符串格式为"hh:mm"
|
|
220
188
|
* @supported weapp, h5, rn
|
|
221
189
|
*/
|
|
222
190
|
end?: string
|
|
223
|
-
|
|
224
191
|
/**
|
|
225
192
|
* 有效值 year, month, day,表示选择器的粒度
|
|
226
193
|
* @supported weapp, h5, rn
|
|
227
194
|
* @default "day"
|
|
228
195
|
*/
|
|
229
196
|
fields?: keyof PickerDateProps.Fields
|
|
230
|
-
|
|
231
197
|
/**
|
|
232
198
|
* value 改变时触发 change 事件
|
|
233
199
|
* @supported weapp, h5, rn
|
|
@@ -238,10 +204,8 @@ declare namespace PickerDateProps {
|
|
|
238
204
|
interface Fields {
|
|
239
205
|
/** 选择器粒度为年 */
|
|
240
206
|
year
|
|
241
|
-
|
|
242
207
|
/** 选择器粒度为月份 */
|
|
243
208
|
month
|
|
244
|
-
|
|
245
209
|
/** 选择器粒度为天 */
|
|
246
210
|
day
|
|
247
211
|
}
|
|
@@ -250,31 +214,32 @@ declare namespace PickerDateProps {
|
|
|
250
214
|
value: string
|
|
251
215
|
}
|
|
252
216
|
}
|
|
253
|
-
|
|
254
217
|
/** 省市区选择器:mode = region */
|
|
255
218
|
interface PickerRegionProps extends PickerStandardProps {
|
|
256
219
|
/** 选择器类型 */
|
|
257
220
|
mode: 'region'
|
|
258
|
-
|
|
259
221
|
/**
|
|
260
222
|
* 表示选中的省市区,默认选中每一列的第一个值
|
|
261
223
|
* @supported weapp, h5, rn
|
|
262
224
|
* @default []
|
|
263
225
|
*/
|
|
264
|
-
value
|
|
265
|
-
|
|
226
|
+
value?: string[]
|
|
266
227
|
/**
|
|
267
228
|
* 可为每一列的顶部添加一个自定义的项
|
|
268
229
|
* @supported weapp, h5, rn
|
|
269
230
|
*/
|
|
270
231
|
customItem?: string
|
|
271
|
-
|
|
232
|
+
/**
|
|
233
|
+
* 选择器层级
|
|
234
|
+
* @supported weapp
|
|
235
|
+
* @default "region"
|
|
236
|
+
*/
|
|
237
|
+
level?: keyof PickerRegionProps.Level
|
|
272
238
|
/**
|
|
273
239
|
* 自定义省市区数据
|
|
274
240
|
* @supported rn
|
|
275
241
|
*/
|
|
276
242
|
regionData?: PickerRegionProps.RegionData[]
|
|
277
|
-
|
|
278
243
|
/**
|
|
279
244
|
* value 改变时触发 change 事件
|
|
280
245
|
* @supported weapp, h5, rn
|
|
@@ -285,10 +250,8 @@ declare namespace PickerRegionProps {
|
|
|
285
250
|
interface ChangeEventDetail {
|
|
286
251
|
/** 表示选中的省市区 */
|
|
287
252
|
value: string[]
|
|
288
|
-
|
|
289
253
|
/** 统计用区划代码 */
|
|
290
254
|
code: string[]
|
|
291
|
-
|
|
292
255
|
/** 邮政编码 */
|
|
293
256
|
postcode?: string
|
|
294
257
|
}
|
|
@@ -297,8 +260,17 @@ declare namespace PickerRegionProps {
|
|
|
297
260
|
code: string
|
|
298
261
|
postcode?: string
|
|
299
262
|
}
|
|
263
|
+
interface Level {
|
|
264
|
+
/** 省级选择器 */
|
|
265
|
+
province
|
|
266
|
+
/** 市级选择器 */
|
|
267
|
+
city
|
|
268
|
+
/** 区级选择器 */
|
|
269
|
+
region
|
|
270
|
+
/** 街道选择器 */
|
|
271
|
+
'sub-district'
|
|
272
|
+
}
|
|
300
273
|
}
|
|
301
|
-
|
|
302
274
|
/**
|
|
303
275
|
* 从底部弹起的滚动选择器
|
|
304
276
|
* @classification forms
|
package/types/PickerView.d.ts
CHANGED
|
@@ -5,53 +5,43 @@ interface PickerViewProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
6
6
|
*/
|
|
7
7
|
value?: number[]
|
|
8
|
-
|
|
9
8
|
/** 设置选择器中间选中框的样式
|
|
10
9
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
11
10
|
*/
|
|
12
11
|
indicatorStyle?: string
|
|
13
|
-
|
|
14
12
|
/** 设置选择器中间选中框的类名
|
|
15
13
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
16
14
|
*/
|
|
17
15
|
indicatorClass?: string
|
|
18
|
-
|
|
19
16
|
/** 设置蒙层的样式
|
|
20
17
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
21
18
|
*/
|
|
22
19
|
maskStyle?: string
|
|
23
|
-
|
|
24
20
|
/** 设置蒙层的类名
|
|
25
21
|
* @supported weapp, alipay, swan, tt, qq, jd
|
|
26
22
|
*/
|
|
27
23
|
maskClass?: string
|
|
28
|
-
|
|
29
24
|
/** 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件。
|
|
30
|
-
* @supported weapp, tt
|
|
25
|
+
* @supported weapp, alipay, tt
|
|
31
26
|
* @default false
|
|
32
27
|
*/
|
|
33
28
|
immediateChange?: boolean
|
|
34
|
-
|
|
35
29
|
/** 选择器标题,建议标题控制在 12 个中文汉字长度内,避免出现截断现象, 截断部分将以 ... 形式展示
|
|
36
30
|
* @supported swan
|
|
37
31
|
*/
|
|
38
32
|
title?: string
|
|
39
|
-
|
|
40
33
|
/** 无障碍访问,(属性)元素的额外描述
|
|
41
34
|
* @supported qq
|
|
42
35
|
*/
|
|
43
36
|
ariaLabel?: string
|
|
44
|
-
|
|
45
37
|
/** 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
|
|
46
38
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
47
39
|
*/
|
|
48
40
|
onChange?: CommonEventFunction<PickerViewProps.onChangeEventDetail>
|
|
49
|
-
|
|
50
41
|
/** 当滚动选择开始时候触发事件
|
|
51
42
|
* @supported weapp, alipay, tt, qq
|
|
52
43
|
*/
|
|
53
44
|
onPickStart?: CommonEventFunction
|
|
54
|
-
|
|
55
45
|
/** 当滚动选择结束时候触发事件
|
|
56
46
|
* @supported weapp, alipay, tt, qq
|
|
57
47
|
*/
|
|
@@ -62,7 +52,6 @@ declare namespace PickerViewProps {
|
|
|
62
52
|
value: number[]
|
|
63
53
|
}
|
|
64
54
|
}
|
|
65
|
-
|
|
66
55
|
/** 嵌入页面的滚动选择器
|
|
67
56
|
* 其中只可放置 picker-view-column 组件,其它节点不会显示
|
|
68
57
|
* @classification forms
|
package/types/Progress.d.ts
CHANGED
|
@@ -5,55 +5,46 @@ interface ProgressProps extends StandardProps {
|
|
|
5
5
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
6
|
*/
|
|
7
7
|
percent?: number
|
|
8
|
-
|
|
9
8
|
/** 在进度条右侧显示百分比
|
|
10
9
|
* @default false
|
|
11
10
|
* @supported weapp, alipay, swan, qq, jd, h5, rn
|
|
12
11
|
*/
|
|
13
12
|
showInfo?: boolean
|
|
14
|
-
|
|
15
13
|
/** 圆角大小
|
|
16
14
|
* @default 0
|
|
17
15
|
* @supported weapp, swan, qq, jd, h5
|
|
18
16
|
*/
|
|
19
17
|
borderRadius?: number | string
|
|
20
|
-
|
|
21
18
|
/** 右侧百分比字体大小
|
|
22
19
|
* @default 16
|
|
23
20
|
* @supported weapp, swan, qq, jd, h5
|
|
24
21
|
*/
|
|
25
22
|
fontSize?: number | string
|
|
26
|
-
|
|
27
23
|
/** 进度条线的宽度
|
|
28
24
|
* @default 6
|
|
29
25
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
30
26
|
*/
|
|
31
27
|
strokeWidth?: number | string
|
|
32
|
-
|
|
33
28
|
/** 进度条颜色 (请使用 activeColor)
|
|
34
29
|
* @default "#09BB07"
|
|
35
30
|
* @supported weapp, swan, qq, jd, h5
|
|
36
31
|
*/
|
|
37
32
|
color?: string
|
|
38
|
-
|
|
39
33
|
/** 已选择的进度条的颜色
|
|
40
34
|
* @default "#09BB07"
|
|
41
35
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
42
36
|
*/
|
|
43
37
|
activeColor?: string
|
|
44
|
-
|
|
45
38
|
/** 未选择的进度条的颜色
|
|
46
39
|
* @default "#EBEBEB"
|
|
47
40
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
48
41
|
*/
|
|
49
42
|
backgroundColor?: string
|
|
50
|
-
|
|
51
43
|
/** 进度条从左往右的动画
|
|
52
44
|
* @default false
|
|
53
45
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
54
46
|
*/
|
|
55
47
|
active?: boolean
|
|
56
|
-
|
|
57
48
|
/** backwards: 动画从头播
|
|
58
49
|
*
|
|
59
50
|
* forwards: 动画从上次结束点接着播
|
|
@@ -61,24 +52,20 @@ interface ProgressProps extends StandardProps {
|
|
|
61
52
|
* @supported weapp, swan, tt, qq, jd, h5, rn
|
|
62
53
|
*/
|
|
63
54
|
activeMode?: 'backwards' | 'forwards'
|
|
64
|
-
|
|
65
55
|
/** 进度增加 1% 所需毫秒数
|
|
66
56
|
* @default 30
|
|
67
57
|
* @supported weapp, swan, jd, h5
|
|
68
58
|
*/
|
|
69
59
|
duration?: number
|
|
70
|
-
|
|
71
60
|
/** 无障碍访问,(属性)元素的额外描述
|
|
72
61
|
* @supported qq
|
|
73
62
|
*/
|
|
74
63
|
ariaLabel?: string
|
|
75
|
-
|
|
76
64
|
/** 动画完成事件
|
|
77
65
|
* @supported weapp, qq, jd, h5
|
|
78
66
|
*/
|
|
79
67
|
onActiveEnd?: CommonEventFunction
|
|
80
68
|
}
|
|
81
|
-
|
|
82
69
|
/** 进度条。组件属性的长度单位默认为 px
|
|
83
70
|
* @classification base
|
|
84
71
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
package/types/Radio.d.ts
CHANGED
|
@@ -2,38 +2,32 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction, FormItemProps } from './common'
|
|
3
3
|
interface RadioProps extends StandardProps {
|
|
4
4
|
/** `<Radio/>` 标识。当该`<Radio/>` 选中时,`<RadioGroup/>`的 change 事件会携带`<Radio/>`的 value
|
|
5
|
-
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
5
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
6
6
|
*/
|
|
7
7
|
value?: string
|
|
8
|
-
|
|
9
8
|
/** 当前是否选中
|
|
10
9
|
* @default false
|
|
11
10
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
12
11
|
*/
|
|
13
12
|
checked?: boolean
|
|
14
|
-
|
|
15
13
|
/** 是否禁用
|
|
16
14
|
* @default false
|
|
17
15
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
18
16
|
*/
|
|
19
17
|
disabled?: boolean
|
|
20
|
-
|
|
21
18
|
/** Radio 的颜色,同 css 的 color
|
|
22
19
|
* @default "#09BB07"
|
|
23
20
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
24
21
|
*/
|
|
25
22
|
color?: string
|
|
26
|
-
|
|
27
23
|
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
28
24
|
* @supported h5
|
|
29
25
|
*/
|
|
30
26
|
nativeProps?: Record<string, unknown>
|
|
31
|
-
|
|
32
27
|
/** 无障碍访问,(属性)元素的额外描述
|
|
33
28
|
* @supported qq
|
|
34
29
|
*/
|
|
35
30
|
ariaLabel?: string
|
|
36
|
-
|
|
37
31
|
/** <radio-group/> 中的选中项发生变化时触发 change 事件
|
|
38
32
|
* @supported h5, rn
|
|
39
33
|
*/
|
|
@@ -41,7 +35,6 @@ interface RadioProps extends StandardProps {
|
|
|
41
35
|
value?: string
|
|
42
36
|
}>
|
|
43
37
|
}
|
|
44
|
-
|
|
45
38
|
/** 单选项目
|
|
46
39
|
* @classification forms
|
|
47
40
|
* @supported weapp, alipay, swan, tt, qq, h5, rn, harmony
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ interface RadioGroupProps extends StandardProps, FormItemProps {
|
|
|
5
5
|
* @supported alipay, tt
|
|
6
6
|
*/
|
|
7
7
|
name?: string
|
|
8
|
-
|
|
9
8
|
/** RadioGroup 中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}
|
|
10
9
|
* @supported weapp, alipay, swan, tt, qq, jd, h5
|
|
11
10
|
*/
|
|
@@ -16,7 +15,6 @@ declare namespace RadioGroupProps {
|
|
|
16
15
|
value: string[]
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
/** 单项选择器,内部由多个 Radio 组成。
|
|
21
19
|
* @classification forms
|
|
22
20
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
|
package/types/RichText.d.ts
CHANGED
|
@@ -6,63 +6,51 @@ interface RichTextProps extends StandardProps {
|
|
|
6
6
|
* @supported weapp
|
|
7
7
|
*/
|
|
8
8
|
userSelect?: boolean
|
|
9
|
-
|
|
10
9
|
/** 节点列表/ HTML String */
|
|
11
10
|
nodes?: Nodes
|
|
12
|
-
|
|
13
11
|
/** 显示连续空格
|
|
14
|
-
* @supported weapp, qq, rn
|
|
12
|
+
* @supported weapp, alipay, qq, rn
|
|
15
13
|
*/
|
|
16
14
|
space?: keyof RichTextProps.TSpace
|
|
17
|
-
|
|
18
15
|
/** 富文本是否可以长按选中,可用于复制,粘贴,长按搜索等场景
|
|
19
16
|
* @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
|
|
20
17
|
* @supported swan
|
|
21
18
|
*/
|
|
22
19
|
selectable?: string
|
|
23
|
-
|
|
24
20
|
/** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
|
|
25
21
|
* @default false
|
|
26
22
|
* @supported swan
|
|
27
23
|
*/
|
|
28
24
|
imageMenuPrevent?: string
|
|
29
|
-
|
|
30
25
|
/** 富文本中的图片是否可点击预览。在不设置的情况下,若 rich-text 未监听点击事件,则默认开启。未显示设置 preview 时会进行点击默认预览判断,建议显示设置 preview
|
|
31
26
|
* @supported swan
|
|
32
27
|
*/
|
|
33
28
|
preview?: string
|
|
34
|
-
|
|
35
29
|
/** 触摸。
|
|
36
30
|
* @supported alipay
|
|
37
31
|
*/
|
|
38
32
|
onTap?: CommonEventFunction
|
|
39
|
-
|
|
40
33
|
/** 触摸动作开始。
|
|
41
34
|
* @supported alipay
|
|
42
35
|
*/
|
|
43
36
|
onTouchstart?: CommonEventFunction
|
|
44
|
-
|
|
45
37
|
/** 触摸移动事件。
|
|
46
38
|
* @supported alipay
|
|
47
39
|
*/
|
|
48
40
|
onTouchmove?: CommonEventFunction
|
|
49
|
-
|
|
50
41
|
/** 触摸动作被打断。
|
|
51
42
|
* @supported alipay
|
|
52
43
|
*/
|
|
53
44
|
onTouchcancel?: CommonEventFunction
|
|
54
|
-
|
|
55
45
|
/** 触摸动作结束。
|
|
56
46
|
* @supported alipay
|
|
57
47
|
*/
|
|
58
48
|
onTouchend?: CommonEventFunction
|
|
59
|
-
|
|
60
49
|
/** 触摸后,超过 500ms 再离开。
|
|
61
50
|
* @supported alipay
|
|
62
51
|
*/
|
|
63
52
|
onLongtap?: CommonEventFunction
|
|
64
53
|
}
|
|
65
|
-
|
|
66
54
|
/** 节点类型
|
|
67
55
|
* > 现支持两种节点,通过type来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的HTML节点 元素节点:type = node*
|
|
68
56
|
*/
|
|
@@ -72,50 +60,41 @@ declare namespace RichTextProps {
|
|
|
72
60
|
interface TSpace {
|
|
73
61
|
/** 中文字符空格一半大小 */
|
|
74
62
|
ensp
|
|
75
|
-
|
|
76
63
|
/** 中文字符空格大小 */
|
|
77
64
|
emsp
|
|
78
|
-
|
|
79
65
|
/** 根据字体设置的空格大小 */
|
|
80
66
|
nbsp
|
|
81
67
|
}
|
|
82
|
-
|
|
83
68
|
/** 文本节点 */
|
|
84
69
|
interface Text {
|
|
85
70
|
/** 文本类型 */
|
|
86
71
|
type: 'text'
|
|
87
|
-
|
|
88
72
|
/** 文本字符串
|
|
89
73
|
* @remarks 支持 entities
|
|
90
74
|
* @default ""
|
|
91
75
|
*/
|
|
92
76
|
text: string
|
|
93
77
|
}
|
|
94
|
-
|
|
95
78
|
/** 元素节点,默认为元素节点
|
|
96
79
|
* 全局支持class和style属性,不支持 id 属性。
|
|
97
80
|
*/
|
|
98
81
|
interface HTMLElement {
|
|
99
82
|
/** HTML 类型 */
|
|
100
83
|
type?: 'node'
|
|
101
|
-
|
|
102
84
|
/** 标签名
|
|
103
85
|
* @remarks 支持部分受信任的 HTML 节点
|
|
104
86
|
*/
|
|
105
87
|
name: string
|
|
106
|
-
|
|
107
88
|
/** 属性
|
|
108
89
|
* @remarks 支持部分受信任的属性,遵循 Pascal 命名法
|
|
109
90
|
*/
|
|
110
91
|
attrs?: Object
|
|
111
|
-
|
|
112
92
|
/** 子节点列表
|
|
113
93
|
* @remarks 结构和 nodes 一致
|
|
114
94
|
*/
|
|
115
95
|
children?: Nodes
|
|
116
96
|
}
|
|
117
97
|
}
|
|
118
|
-
|
|
119
98
|
/** 富文本
|
|
120
99
|
* @classification base
|
|
121
100
|
* @supported weapp, swan, alipay, tt, h5, rn, harmony
|