@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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '../node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js';
|
|
2
2
|
import reactifyWebComponent from './reactify-wc.js';
|
|
3
3
|
export { default as Input } from './input.js';
|
|
4
|
+
import { r as react } from '../_virtual/index.js';
|
|
4
5
|
|
|
5
6
|
// 视图容器
|
|
6
7
|
const CoverImage = reactifyWebComponent('taro-cover-image-core');
|
|
@@ -61,7 +62,7 @@ const WebView = reactifyWebComponent('taro-web-view-core');
|
|
|
61
62
|
// 页面属性配置节点
|
|
62
63
|
const PageMeta = reactifyWebComponent('taro-page-meta-core');
|
|
63
64
|
// 其他
|
|
64
|
-
const Block = Fragment;
|
|
65
|
+
const Block = react.exports.Fragment;
|
|
65
66
|
const CustomWrapper = reactifyWebComponent('taro-custom-wrapper-core');
|
|
66
67
|
|
|
67
68
|
export { Ad, AdCustom, Audio, Block, Button, Camera, Canvas, Checkbox, CheckboxGroup, CoverImage, CoverView, CustomWrapper, Editor, Form, FunctionalPageNavigator, Icon, Image, KeyboardAccessory, Label, LivePlayer, LivePusher, Map, MatchMedia, MovableArea, MovableView, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, ScrollView, ShareElement, Slider, Swiper, SwiperItem, Switch, Text, Textarea, Video, View, VoipRoom, WebView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../taro-components-library-react/src/component-lib/index.ts"],"sourcesContent":["import { Fragment } from 'react'\n\nimport reactifyWc from './reactify-wc'\n\n// 视图容器\nexport const CoverImage = reactifyWc('taro-cover-image-core')\nexport const CoverView = reactifyWc('taro-cover-view-core')\nexport const MatchMedia = reactifyWc('taro-match-media-core')\nexport const MovableArea = reactifyWc('taro-movable-area-core')\nexport const MovableView = reactifyWc('taro-movable-view-core')\nexport const PageContainer = reactifyWc('taro-page-container-core')\nexport const RootPortal = reactifyWc('taro-root-portal-core')\nexport const ScrollView = reactifyWc('taro-scroll-view-core')\nexport const ShareElement = reactifyWc('taro-share-element-core')\nexport const Swiper = reactifyWc('taro-swiper-core')\nexport const SwiperItem = reactifyWc('taro-swiper-item-core')\nexport const View = reactifyWc('taro-view-core')\n\n// 基础内容\nexport const Icon = reactifyWc('taro-icon-core')\nexport const Progress = reactifyWc('taro-progress-core')\nexport const RichText = reactifyWc('taro-rich-text-core')\nexport const Text = reactifyWc('taro-text-core')\n\n// 表单组件\nexport const Button = reactifyWc('taro-button-core')\nexport const Checkbox = reactifyWc('taro-checkbox-core')\nexport const CheckboxGroup = reactifyWc('taro-checkbox-group-core')\nexport const Editor = reactifyWc('taro-editor-core')\nexport const Form = reactifyWc('taro-form-core')\nexport { default as Input } from './input'\nexport const KeyboardAccessory = reactifyWc('taro-keyboard-accessory-core')\nexport const Label = reactifyWc('taro-label-core')\nexport const Picker = reactifyWc('taro-picker-core')\nexport const PickerView = reactifyWc('taro-picker-view-core')\nexport const PickerViewColumn = reactifyWc('taro-picker-view-column-core')\nexport const Radio = reactifyWc('taro-radio-core')\nexport const RadioGroup = reactifyWc('taro-radio-group-core')\nexport const Slider = reactifyWc('taro-slider-core')\nexport const Switch = reactifyWc('taro-switch-core')\nexport const Textarea = reactifyWc('taro-textarea-core')\n\n// 导航\nexport const FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core')\nexport const Navigator = reactifyWc('taro-navigator-core')\nexport const NavigationBar = reactifyWc('taro-navigation-bar-core')\n\n// 媒体组件\nexport const Audio = reactifyWc('taro-audio-core')\nexport const Camera = reactifyWc('taro-camera-core')\nexport const Image = reactifyWc('taro-image-core')\nexport const LivePlayer = reactifyWc('taro-live-player-core')\nexport const LivePusher = reactifyWc('taro-live-pusher-core')\nexport const Video = reactifyWc('taro-video-core')\nexport const VoipRoom = reactifyWc('taro-voip-room-core')\n\n// 地图\nexport const Map = reactifyWc('taro-map-core')\n\n// 画布\nexport const Canvas = reactifyWc('taro-canvas-core')\n\n// 开放能力\nexport const Ad = reactifyWc('taro-ad-core')\nexport const AdCustom = reactifyWc('taro-ad-custom-core')\nexport const OfficialAccount = reactifyWc('taro-official-account-core')\nexport const OpenData = reactifyWc('taro-open-data-core')\nexport const WebView = reactifyWc('taro-web-view-core')\n\n// 页面属性配置节点\nexport const PageMeta = reactifyWc('taro-page-meta-core')\n\n// 其他\nexport const Block = Fragment\nexport const CustomWrapper = reactifyWc('taro-custom-wrapper-core')\n"],"names":["reactifyWc"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../taro-components-library-react/src/component-lib/index.ts"],"sourcesContent":["import { Fragment } from 'react'\n\nimport reactifyWc from './reactify-wc'\n\n// 视图容器\nexport const CoverImage = reactifyWc('taro-cover-image-core')\nexport const CoverView = reactifyWc('taro-cover-view-core')\nexport const MatchMedia = reactifyWc('taro-match-media-core')\nexport const MovableArea = reactifyWc('taro-movable-area-core')\nexport const MovableView = reactifyWc('taro-movable-view-core')\nexport const PageContainer = reactifyWc('taro-page-container-core')\nexport const RootPortal = reactifyWc('taro-root-portal-core')\nexport const ScrollView = reactifyWc('taro-scroll-view-core')\nexport const ShareElement = reactifyWc('taro-share-element-core')\nexport const Swiper = reactifyWc('taro-swiper-core')\nexport const SwiperItem = reactifyWc('taro-swiper-item-core')\nexport const View = reactifyWc('taro-view-core')\n\n// 基础内容\nexport const Icon = reactifyWc('taro-icon-core')\nexport const Progress = reactifyWc('taro-progress-core')\nexport const RichText = reactifyWc('taro-rich-text-core')\nexport const Text = reactifyWc('taro-text-core')\n\n// 表单组件\nexport const Button = reactifyWc('taro-button-core')\nexport const Checkbox = reactifyWc('taro-checkbox-core')\nexport const CheckboxGroup = reactifyWc('taro-checkbox-group-core')\nexport const Editor = reactifyWc('taro-editor-core')\nexport const Form = reactifyWc('taro-form-core')\nexport { default as Input } from './input'\nexport const KeyboardAccessory = reactifyWc('taro-keyboard-accessory-core')\nexport const Label = reactifyWc('taro-label-core')\nexport const Picker = reactifyWc('taro-picker-core')\nexport const PickerView = reactifyWc('taro-picker-view-core')\nexport const PickerViewColumn = reactifyWc('taro-picker-view-column-core')\nexport const Radio = reactifyWc('taro-radio-core')\nexport const RadioGroup = reactifyWc('taro-radio-group-core')\nexport const Slider = reactifyWc('taro-slider-core')\nexport const Switch = reactifyWc('taro-switch-core')\nexport const Textarea = reactifyWc('taro-textarea-core')\n\n// 导航\nexport const FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core')\nexport const Navigator = reactifyWc('taro-navigator-core')\nexport const NavigationBar = reactifyWc('taro-navigation-bar-core')\n\n// 媒体组件\nexport const Audio = reactifyWc('taro-audio-core')\nexport const Camera = reactifyWc('taro-camera-core')\nexport const Image = reactifyWc('taro-image-core')\nexport const LivePlayer = reactifyWc('taro-live-player-core')\nexport const LivePusher = reactifyWc('taro-live-pusher-core')\nexport const Video = reactifyWc('taro-video-core')\nexport const VoipRoom = reactifyWc('taro-voip-room-core')\n\n// 地图\nexport const Map = reactifyWc('taro-map-core')\n\n// 画布\nexport const Canvas = reactifyWc('taro-canvas-core')\n\n// 开放能力\nexport const Ad = reactifyWc('taro-ad-core')\nexport const AdCustom = reactifyWc('taro-ad-custom-core')\nexport const OfficialAccount = reactifyWc('taro-official-account-core')\nexport const OpenData = reactifyWc('taro-open-data-core')\nexport const WebView = reactifyWc('taro-web-view-core')\n\n// 页面属性配置节点\nexport const PageMeta = reactifyWc('taro-page-meta-core')\n\n// 其他\nexport const Block = Fragment\nexport const CustomWrapper = reactifyWc('taro-custom-wrapper-core')\n"],"names":["reactifyWc","Fragment"],"mappings":";;;;;AAIA;MACa,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,SAAS,GAAGA,oBAAU,CAAC,sBAAsB,EAAC;MAC9C,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,WAAW,GAAGA,oBAAU,CAAC,wBAAwB,EAAC;MAClD,WAAW,GAAGA,oBAAU,CAAC,wBAAwB,EAAC;MAClD,aAAa,GAAGA,oBAAU,CAAC,0BAA0B,EAAC;MACtD,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,YAAY,GAAGA,oBAAU,CAAC,yBAAyB,EAAC;MACpD,MAAM,GAAGA,oBAAU,CA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AC;MACrC,MAAM,GAAGA,oBAAU,CAAC,kBAAkB,EAAC;MACvC,KAAK,GAAGA,oBAAU,CAAC,iBAAiB,EAAC;MACrC,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,UAAU,GAAGA,oBAAU,CAAC,uBAAuB,EAAC;MAChD,KAAK,GAAGA,oBAAU,CAAC,iBAAiB,EAAC;MACrC,QAAQ,GAAGA,oBAAU,CAAC,qBAAqB,EAAC;AAEzD;MACa,GAAG,GAAGA,oBAAU,CAAC,eAAe,EAAC;AAE9C;MACa,MAAM,GAAGA,oBAAU,CAAC,kBAAkB,EAAC;AAEpD;MACa,EAAE,GAAGA,oBAAU,CAAC,cAAc,EAAC;MAC/B,QAAQ,GAAGA,oBAAU,CAAC,qBAAqB,EAAC;MAC5C,eAAe,GAAGA,oBAAU,CAAC,4BAA4B,EAAC;MAC1D,QAAQ,GAAGA,oBAAU,CAAC,qBAAqB,EAAC;MAC5C,OAAO,GAAGA,oBAAU,CAAC,oBAAoB,EAAC;AAEvD;MACa,QAAQ,GAAGA,oBAAU,CAAC,qBAAqB,EAAC;AAEzD;AACO,MAAM,KAAK,GAAGC,uBAAQ;MAChB,aAAa,GAAGD,oBAAU,CAAC,0BAA0B;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from '../node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js';
|
|
2
|
+
import { r as react } from '../_virtual/index.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* https://github.com/BBKolton/reactify-wc/
|
|
@@ -116,7 +117,7 @@ const reactifyWebComponent = WC => {
|
|
|
116
117
|
constructor(props) {
|
|
117
118
|
super(props);
|
|
118
119
|
this.eventHandlers = [];
|
|
119
|
-
this.ref = createRef();
|
|
120
|
+
this.ref = react.exports.createRef();
|
|
120
121
|
}
|
|
121
122
|
update(prevProps) {
|
|
122
123
|
this.clearEventHandlers();
|
|
@@ -165,7 +166,7 @@ const reactifyWebComponent = WC => {
|
|
|
165
166
|
};
|
|
166
167
|
if (dangerouslySetInnerHTML)
|
|
167
168
|
props.dangerouslySetInnerHTML = dangerouslySetInnerHTML;
|
|
168
|
-
return createElement(WC, props, children);
|
|
169
|
+
return react.exports.createElement(WC, props, children);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
// eslint-disable-next-line react/display-name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactify-wc.js","sources":["../../../../taro-components-library-react/src/component-lib/reactify-wc.ts"],"sourcesContent":["/**\n * https://github.com/BBKolton/reactify-wc/\n * modified event naming\n **/\nimport React, { createElement, createRef } from 'react'\n\nconst h = React.createElement\n\nconst SCROLL_VIEW = 'taro-scroll-view-core'\n\nconst IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i\n\n// 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class\nfunction getClassName (wc, prevProps, props) {\n const classList = Array.from(wc.classList)\n const oldClassNames = (prevProps.className || prevProps.class || '').split(' ')\n let incomingClassNames = (props.className || props.class || '').split(' ')\n let finalClassNames = []\n\n classList.forEach(classname => {\n if (incomingClassNames.indexOf(classname) > -1) {\n finalClassNames.push(classname)\n incomingClassNames = incomingClassNames.filter(name => name !== classname)\n } else if (oldClassNames.indexOf(classname) === -1) {\n finalClassNames.push(classname)\n }\n })\n\n finalClassNames = [...finalClassNames, ...incomingClassNames]\n\n return finalClassNames.join(' ')\n}\n\nfunction updateStyle (dom, key, val) {\n if (/^--/.test(key)) {\n // css variable\n dom.style.setProperty(key, val)\n } else if (typeof val !== 'number' || IS_NON_DIMENSIONAL.test(key)) {\n dom.style[key] = val\n } else {\n dom.style[key] = val + 'px'\n }\n}\n\nfunction updateProp (ctx, comp, propKey, prevProps, props) {\n const dom = ctx.ref.current\n const val = props[propKey]\n const prevVal = prevProps ? prevProps[propKey] : undefined\n\n if (propKey === 'children') {\n return\n }\n if (propKey.toLowerCase() === 'classname') {\n dom.className = prevProps\n ? getClassName(dom, prevProps, props)\n : val\n return\n }\n if (propKey === 'style') {\n if (typeof val === 'string') {\n dom.setAttribute(propKey, val)\n return\n }\n if (!val) {\n dom.removeAttribute(propKey)\n return\n }\n\n if (prevProps) {\n if (typeof prevVal === 'string') {\n dom.style.cssText = ''\n } else {\n for (const styleKey in prevVal) {\n updateStyle(dom, styleKey, '')\n }\n }\n }\n\n for (const styleKey in val) {\n updateStyle(dom, styleKey, val[styleKey])\n }\n return\n }\n if (/^data-.+/.test(propKey)) {\n dom.setAttribute(propKey, val)\n }\n if (comp === SCROLL_VIEW) {\n if (propKey === 'scrollTop') {\n dom.mpScrollTop = val\n return\n }\n if (propKey === 'scrollLeft') {\n dom.mpScrollLeft = val\n return\n }\n if (propKey === 'scrollIntoView') {\n dom.mpScrollIntoView = val\n return\n }\n }\n if (typeof val === 'function' && propKey.match(/^on[A-Z]/)) {\n const event = propKey.substr(2).toLowerCase()\n\n ctx.eventHandlers.push([event, val])\n return dom.addEventListener(event, val)\n }\n\n if (typeof val === 'string' || typeof val === 'number') {\n dom.setAttribute(propKey, val)\n dom[propKey] = val\n return\n }\n if (typeof val === 'boolean') {\n if (val) {\n dom[propKey] = true\n return dom.setAttribute(\n propKey,\n val\n )\n }\n dom[propKey] = false\n return dom.removeAttribute(propKey)\n }\n dom[propKey] = val\n}\n\nconst reactifyWebComponent = WC => {\n class Index extends React.Component<Record<string, any>> {\n eventHandlers: any[]\n ref: React.RefObject<HTMLElement>\n\n constructor (props) {\n super(props)\n this.eventHandlers = []\n this.ref = createRef()\n }\n\n update (prevProps) {\n this.clearEventHandlers()\n if (!this.ref.current) return\n\n Object.keys(prevProps || {}).forEach((key) => {\n if (key !== 'children' && key !== 'key' && !(key in this.props)) {\n updateProp(this, WC, key, prevProps, this.props)\n }\n })\n\n Object.keys(this.props).forEach((key) => {\n updateProp(this, WC, key, prevProps, this.props)\n })\n }\n\n componentDidUpdate (prevProps) {\n this.update(prevProps)\n }\n\n componentDidMount () {\n const { forwardRef } = this.props\n if (typeof forwardRef === 'function') {\n forwardRef(this.ref.current)\n } else if (forwardRef && typeof forwardRef === 'object' && forwardRef.hasOwnProperty('current')) {\n forwardRef.current = this.ref.current\n } else if (typeof forwardRef === 'string') {\n console.warn('内置组件不支持字符串 ref')\n }\n this.update(undefined)\n }\n\n componentWillUnmount () {\n this.clearEventHandlers()\n }\n\n clearEventHandlers () {\n this.eventHandlers.forEach(([event, handler]) => {\n if (!this.ref.current) return\n this.ref.current.removeEventListener(event, handler)\n })\n this.eventHandlers = []\n }\n\n render () {\n const { children, dangerouslySetInnerHTML } = this.props\n const props: Record<string, any> = {\n ref: this.ref\n }\n if (dangerouslySetInnerHTML) props.dangerouslySetInnerHTML = dangerouslySetInnerHTML\n return createElement(WC, props, children)\n }\n }\n\n // eslint-disable-next-line react/display-name\n return React.forwardRef((props, ref) => (\n h(Index, { ...props, forwardRef: ref })\n ))\n}\n\nexport default reactifyWebComponent\n"],"names":[],"mappings":";;AAAA;;;AAGI;AAGJ,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAA;AAE7B,MAAM,WAAW,GAAG,uBAAuB,CAAA;AAE3C,MAAM,kBAAkB,GAAG,mEAAmE,CAAA;AAE9F;AACA,SAAS,YAAY,CAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAA;IACzC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;AAC1C,IAAA,MAAM,aAAa,GAAG,CAAC,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;AAC/E,IAAA,IAAI,kBAAkB,GAAG,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;IAC1E,IAAI,eAAe,GA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K,CAAC,uBAAuB,GAAG,uBAAuB,CAAA;YACpF,OAAO,aAAa,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;SAC1C;AACF,KAAA;;IAGD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,MACjC,CAAC,CAAC,KAAK,EAAO,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAK,CAAE,EAAA,EAAA,UAAU,EAAE,GAAG,EAAA,CAAA,CAAG,CACxC,CAAC,CAAA;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"reactify-wc.js","sources":["../../../../taro-components-library-react/src/component-lib/reactify-wc.ts"],"sourcesContent":["/**\n * https://github.com/BBKolton/reactify-wc/\n * modified event naming\n **/\nimport React, { createElement, createRef } from 'react'\n\nconst h = React.createElement\n\nconst SCROLL_VIEW = 'taro-scroll-view-core'\n\nconst IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i\n\n// 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class\nfunction getClassName (wc, prevProps, props) {\n const classList = Array.from(wc.classList)\n const oldClassNames = (prevProps.className || prevProps.class || '').split(' ')\n let incomingClassNames = (props.className || props.class || '').split(' ')\n let finalClassNames = []\n\n classList.forEach(classname => {\n if (incomingClassNames.indexOf(classname) > -1) {\n finalClassNames.push(classname)\n incomingClassNames = incomingClassNames.filter(name => name !== classname)\n } else if (oldClassNames.indexOf(classname) === -1) {\n finalClassNames.push(classname)\n }\n })\n\n finalClassNames = [...finalClassNames, ...incomingClassNames]\n\n return finalClassNames.join(' ')\n}\n\nfunction updateStyle (dom, key, val) {\n if (/^--/.test(key)) {\n // css variable\n dom.style.setProperty(key, val)\n } else if (typeof val !== 'number' || IS_NON_DIMENSIONAL.test(key)) {\n dom.style[key] = val\n } else {\n dom.style[key] = val + 'px'\n }\n}\n\nfunction updateProp (ctx, comp, propKey, prevProps, props) {\n const dom = ctx.ref.current\n const val = props[propKey]\n const prevVal = prevProps ? prevProps[propKey] : undefined\n\n if (propKey === 'children') {\n return\n }\n if (propKey.toLowerCase() === 'classname') {\n dom.className = prevProps\n ? getClassName(dom, prevProps, props)\n : val\n return\n }\n if (propKey === 'style') {\n if (typeof val === 'string') {\n dom.setAttribute(propKey, val)\n return\n }\n if (!val) {\n dom.removeAttribute(propKey)\n return\n }\n\n if (prevProps) {\n if (typeof prevVal === 'string') {\n dom.style.cssText = ''\n } else {\n for (const styleKey in prevVal) {\n updateStyle(dom, styleKey, '')\n }\n }\n }\n\n for (const styleKey in val) {\n updateStyle(dom, styleKey, val[styleKey])\n }\n return\n }\n if (/^data-.+/.test(propKey)) {\n dom.setAttribute(propKey, val)\n }\n if (comp === SCROLL_VIEW) {\n if (propKey === 'scrollTop') {\n dom.mpScrollTop = val\n return\n }\n if (propKey === 'scrollLeft') {\n dom.mpScrollLeft = val\n return\n }\n if (propKey === 'scrollIntoView') {\n dom.mpScrollIntoView = val\n return\n }\n }\n if (typeof val === 'function' && propKey.match(/^on[A-Z]/)) {\n const event = propKey.substr(2).toLowerCase()\n\n ctx.eventHandlers.push([event, val])\n return dom.addEventListener(event, val)\n }\n\n if (typeof val === 'string' || typeof val === 'number') {\n dom.setAttribute(propKey, val)\n dom[propKey] = val\n return\n }\n if (typeof val === 'boolean') {\n if (val) {\n dom[propKey] = true\n return dom.setAttribute(\n propKey,\n val\n )\n }\n dom[propKey] = false\n return dom.removeAttribute(propKey)\n }\n dom[propKey] = val\n}\n\nconst reactifyWebComponent = WC => {\n class Index extends React.Component<Record<string, any>> {\n eventHandlers: any[]\n ref: React.RefObject<HTMLElement>\n\n constructor (props) {\n super(props)\n this.eventHandlers = []\n this.ref = createRef()\n }\n\n update (prevProps) {\n this.clearEventHandlers()\n if (!this.ref.current) return\n\n Object.keys(prevProps || {}).forEach((key) => {\n if (key !== 'children' && key !== 'key' && !(key in this.props)) {\n updateProp(this, WC, key, prevProps, this.props)\n }\n })\n\n Object.keys(this.props).forEach((key) => {\n updateProp(this, WC, key, prevProps, this.props)\n })\n }\n\n componentDidUpdate (prevProps) {\n this.update(prevProps)\n }\n\n componentDidMount () {\n const { forwardRef } = this.props\n if (typeof forwardRef === 'function') {\n forwardRef(this.ref.current)\n } else if (forwardRef && typeof forwardRef === 'object' && forwardRef.hasOwnProperty('current')) {\n forwardRef.current = this.ref.current\n } else if (typeof forwardRef === 'string') {\n console.warn('内置组件不支持字符串 ref')\n }\n this.update(undefined)\n }\n\n componentWillUnmount () {\n this.clearEventHandlers()\n }\n\n clearEventHandlers () {\n this.eventHandlers.forEach(([event, handler]) => {\n if (!this.ref.current) return\n this.ref.current.removeEventListener(event, handler)\n })\n this.eventHandlers = []\n }\n\n render () {\n const { children, dangerouslySetInnerHTML } = this.props\n const props: Record<string, any> = {\n ref: this.ref\n }\n if (dangerouslySetInnerHTML) props.dangerouslySetInnerHTML = dangerouslySetInnerHTML\n return createElement(WC, props, children)\n }\n }\n\n // eslint-disable-next-line react/display-name\n return React.forwardRef((props, ref) => (\n h(Index, { ...props, forwardRef: ref })\n ))\n}\n\nexport default reactifyWebComponent\n"],"names":["createRef","createElement"],"mappings":";;;AAAA;;;AAGI;AAGJ,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAA;AAE7B,MAAM,WAAW,GAAG,uBAAuB,CAAA;AAE3C,MAAM,kBAAkB,GAAG,mEAAmE,CAAA;AAE9F;AACA,SAAS,YAAY,CAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAA;IACzC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;AAC1C,IAAA,MAAM,aAAa,GAAG,CAAC,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;AAC/E,IAAA,IAAI,kBAAkB,GAAG,CAAC,KAAK,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AAM,KAAK,GAAwB;gBACjC,GAAG,EAAE,IAAI,CAAC,GAAG;aACd,CAAA;AACD,YAAA,IAAI,uBAAuB;AAAE,gBAAA,KAAK,CAAC,uBAAuB,GAAG,uBAAuB,CAAA;YACpF,OAAOC,2BAAa,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;SAC1C;AACF,KAAA;;IAGD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,MACjC,CAAC,CAAC,KAAK,EAAO,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAK,CAAE,EAAA,EAAA,UAAU,EAAE,GAAG,EAAA,CAAA,CAAG,CACxC,CAAC,CAAA;AACJ;;;;"}
|
|
@@ -1,84 +1,88 @@
|
|
|
1
1
|
import { JSX } from '@tarojs/components/dist/types/components';
|
|
2
|
-
declare const Ad: import("react").ForwardRefExoticComponent<JSX.TaroAdCore & Omit<import("react").HTMLAttributes<HTMLTaroAdCoreElement>, "style"> & import("./interfaces-
|
|
3
|
-
declare const AdCustom: import("react").ForwardRefExoticComponent<JSX.TaroAdCustomCore & Omit<import("react").HTMLAttributes<HTMLTaroAdCustomCoreElement>, "style"> & import("./interfaces-
|
|
4
|
-
declare const AnimationVideo: import("react").ForwardRefExoticComponent<JSX.TaroAnimationVideoCore & Omit<import("react").HTMLAttributes<HTMLTaroAnimationVideoCoreElement>, "style"> & import("./interfaces-
|
|
5
|
-
declare const AnimationView: import("react").ForwardRefExoticComponent<JSX.TaroAnimationViewCore & Omit<import("react").HTMLAttributes<HTMLTaroAnimationViewCoreElement>, "style"> & import("./interfaces-
|
|
6
|
-
declare const ArCamera: import("react").ForwardRefExoticComponent<JSX.TaroArCameraCore & Omit<import("react").HTMLAttributes<HTMLTaroArCameraCoreElement>, "style"> & import("./interfaces-
|
|
7
|
-
declare const Audio: import("react").ForwardRefExoticComponent<JSX.TaroAudioCore & Omit<import("react").HTMLAttributes<HTMLTaroAudioCoreElement>, "style"> & import("./interfaces-
|
|
8
|
-
declare const AwemeData: import("react").ForwardRefExoticComponent<JSX.TaroAwemeDataCore & Omit<import("react").HTMLAttributes<HTMLTaroAwemeDataCoreElement>, "style"> & import("./interfaces-
|
|
2
|
+
declare const Ad: import("react").ForwardRefExoticComponent<JSX.TaroAdCore & Omit<import("react").HTMLAttributes<HTMLTaroAdCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAdCoreElement>>;
|
|
3
|
+
declare const AdCustom: import("react").ForwardRefExoticComponent<JSX.TaroAdCustomCore & Omit<import("react").HTMLAttributes<HTMLTaroAdCustomCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAdCustomCoreElement>>;
|
|
4
|
+
declare const AnimationVideo: import("react").ForwardRefExoticComponent<JSX.TaroAnimationVideoCore & Omit<import("react").HTMLAttributes<HTMLTaroAnimationVideoCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAnimationVideoCoreElement>>;
|
|
5
|
+
declare const AnimationView: import("react").ForwardRefExoticComponent<JSX.TaroAnimationViewCore & Omit<import("react").HTMLAttributes<HTMLTaroAnimationViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAnimationViewCoreElement>>;
|
|
6
|
+
declare const ArCamera: import("react").ForwardRefExoticComponent<JSX.TaroArCameraCore & Omit<import("react").HTMLAttributes<HTMLTaroArCameraCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroArCameraCoreElement>>;
|
|
7
|
+
declare const Audio: import("react").ForwardRefExoticComponent<JSX.TaroAudioCore & Omit<import("react").HTMLAttributes<HTMLTaroAudioCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAudioCoreElement>>;
|
|
8
|
+
declare const AwemeData: import("react").ForwardRefExoticComponent<JSX.TaroAwemeDataCore & Omit<import("react").HTMLAttributes<HTMLTaroAwemeDataCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroAwemeDataCoreElement>>;
|
|
9
9
|
declare const Block: import("react").ExoticComponent<{
|
|
10
10
|
children?: import("react").ReactNode;
|
|
11
11
|
}>;
|
|
12
|
-
declare const Button: import("react").ForwardRefExoticComponent<JSX.TaroButtonCore & Omit<import("react").HTMLAttributes<HTMLTaroButtonCoreElement>, "style"> & import("./interfaces-
|
|
13
|
-
declare const Camera: import("react").ForwardRefExoticComponent<JSX.TaroCameraCore & Omit<import("react").HTMLAttributes<HTMLTaroCameraCoreElement>, "style"> & import("./interfaces-
|
|
14
|
-
declare const Canvas: import("react").ForwardRefExoticComponent<JSX.TaroCanvasCore & Omit<import("react").HTMLAttributes<HTMLTaroCanvasCoreElement>, "style"> & import("./interfaces-
|
|
15
|
-
declare const ChannelLive: import("react").ForwardRefExoticComponent<JSX.TaroChannelLiveCore & Omit<import("react").HTMLAttributes<HTMLTaroChannelLiveCoreElement>, "style"> & import("./interfaces-
|
|
16
|
-
declare const ChannelVideo: import("react").ForwardRefExoticComponent<JSX.TaroChannelVideoCore & Omit<import("react").HTMLAttributes<HTMLTaroChannelVideoCoreElement>, "style"> & import("./interfaces-
|
|
17
|
-
declare const Checkbox: import("react").ForwardRefExoticComponent<JSX.TaroCheckboxCore & Omit<import("react").HTMLAttributes<HTMLTaroCheckboxCoreElement>, "style"> & import("./interfaces-
|
|
18
|
-
declare const CheckboxGroup: import("react").ForwardRefExoticComponent<JSX.TaroCheckboxGroupCore & Omit<import("react").HTMLAttributes<HTMLTaroCheckboxGroupCoreElement>, "style"> & import("./interfaces-
|
|
19
|
-
declare const CommentDetail: import("react").ForwardRefExoticComponent<JSX.TaroCommentDetailCore & Omit<import("react").HTMLAttributes<HTMLTaroCommentDetailCoreElement>, "style"> & import("./interfaces-
|
|
20
|
-
declare const CommentList: import("react").ForwardRefExoticComponent<JSX.TaroCommentListCore & Omit<import("react").HTMLAttributes<HTMLTaroCommentListCoreElement>, "style"> & import("./interfaces-
|
|
21
|
-
declare const ContactButton: import("react").ForwardRefExoticComponent<JSX.TaroContactButtonCore & Omit<import("react").HTMLAttributes<HTMLTaroContactButtonCoreElement>, "style"> & import("./interfaces-
|
|
22
|
-
declare const CoverImage: import("react").ForwardRefExoticComponent<JSX.TaroCoverImageCore & Omit<import("react").HTMLAttributes<HTMLTaroCoverImageCoreElement>, "style"> & import("./interfaces-
|
|
23
|
-
declare const CoverView: import("react").ForwardRefExoticComponent<JSX.TaroCoverViewCore & Omit<import("react").HTMLAttributes<HTMLTaroCoverViewCoreElement>, "style"> & import("./interfaces-
|
|
12
|
+
declare const Button: import("react").ForwardRefExoticComponent<JSX.TaroButtonCore & Omit<import("react").HTMLAttributes<HTMLTaroButtonCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroButtonCoreElement>>;
|
|
13
|
+
declare const Camera: import("react").ForwardRefExoticComponent<JSX.TaroCameraCore & Omit<import("react").HTMLAttributes<HTMLTaroCameraCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCameraCoreElement>>;
|
|
14
|
+
declare const Canvas: import("react").ForwardRefExoticComponent<JSX.TaroCanvasCore & Omit<import("react").HTMLAttributes<HTMLTaroCanvasCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCanvasCoreElement>>;
|
|
15
|
+
declare const ChannelLive: import("react").ForwardRefExoticComponent<JSX.TaroChannelLiveCore & Omit<import("react").HTMLAttributes<HTMLTaroChannelLiveCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroChannelLiveCoreElement>>;
|
|
16
|
+
declare const ChannelVideo: import("react").ForwardRefExoticComponent<JSX.TaroChannelVideoCore & Omit<import("react").HTMLAttributes<HTMLTaroChannelVideoCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroChannelVideoCoreElement>>;
|
|
17
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<JSX.TaroCheckboxCore & Omit<import("react").HTMLAttributes<HTMLTaroCheckboxCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCheckboxCoreElement>>;
|
|
18
|
+
declare const CheckboxGroup: import("react").ForwardRefExoticComponent<JSX.TaroCheckboxGroupCore & Omit<import("react").HTMLAttributes<HTMLTaroCheckboxGroupCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCheckboxGroupCoreElement>>;
|
|
19
|
+
declare const CommentDetail: import("react").ForwardRefExoticComponent<JSX.TaroCommentDetailCore & Omit<import("react").HTMLAttributes<HTMLTaroCommentDetailCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCommentDetailCoreElement>>;
|
|
20
|
+
declare const CommentList: import("react").ForwardRefExoticComponent<JSX.TaroCommentListCore & Omit<import("react").HTMLAttributes<HTMLTaroCommentListCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCommentListCoreElement>>;
|
|
21
|
+
declare const ContactButton: import("react").ForwardRefExoticComponent<JSX.TaroContactButtonCore & Omit<import("react").HTMLAttributes<HTMLTaroContactButtonCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroContactButtonCoreElement>>;
|
|
22
|
+
declare const CoverImage: import("react").ForwardRefExoticComponent<JSX.TaroCoverImageCore & Omit<import("react").HTMLAttributes<HTMLTaroCoverImageCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCoverImageCoreElement>>;
|
|
23
|
+
declare const CoverView: import("react").ForwardRefExoticComponent<JSX.TaroCoverViewCore & Omit<import("react").HTMLAttributes<HTMLTaroCoverViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroCoverViewCoreElement>>;
|
|
24
24
|
declare const CustomWrapper: import("react").ExoticComponent<{
|
|
25
25
|
children?: import("react").ReactNode;
|
|
26
26
|
}>;
|
|
27
|
-
declare const Editor: import("react").ForwardRefExoticComponent<JSX.TaroEditorCore & Omit<import("react").HTMLAttributes<HTMLTaroEditorCoreElement>, "style"> & import("./interfaces-
|
|
28
|
-
declare const FollowSwan: import("react").ForwardRefExoticComponent<JSX.TaroFollowSwanCore & Omit<import("react").HTMLAttributes<HTMLTaroFollowSwanCoreElement>, "style"> & import("./interfaces-
|
|
29
|
-
declare const Form: import("react").ForwardRefExoticComponent<JSX.TaroFormCore & Omit<import("react").HTMLAttributes<HTMLTaroFormCoreElement>, "style"> & import("./interfaces-
|
|
30
|
-
declare const FunctionalPageNavigator: import("react").ForwardRefExoticComponent<JSX.TaroFunctionalPageNavigatorCore & Omit<import("react").HTMLAttributes<HTMLTaroFunctionalPageNavigatorCoreElement>, "style"> & import("./interfaces-
|
|
31
|
-
declare const
|
|
32
|
-
declare const
|
|
33
|
-
declare const
|
|
34
|
-
declare const
|
|
35
|
-
declare const
|
|
36
|
-
declare const
|
|
37
|
-
declare const
|
|
38
|
-
declare const
|
|
39
|
-
declare const
|
|
40
|
-
declare const
|
|
41
|
-
declare const
|
|
42
|
-
declare const
|
|
43
|
-
declare const
|
|
44
|
-
declare const
|
|
45
|
-
declare const
|
|
46
|
-
declare const
|
|
47
|
-
declare const
|
|
48
|
-
declare const
|
|
49
|
-
declare const
|
|
50
|
-
declare const
|
|
51
|
-
declare const
|
|
52
|
-
declare const
|
|
53
|
-
declare const
|
|
54
|
-
declare const
|
|
55
|
-
declare const
|
|
56
|
-
declare const
|
|
57
|
-
declare const
|
|
58
|
-
declare const
|
|
59
|
-
declare const
|
|
60
|
-
declare const
|
|
61
|
-
declare const
|
|
62
|
-
declare const
|
|
63
|
-
declare const
|
|
64
|
-
declare const
|
|
65
|
-
declare const
|
|
66
|
-
declare const
|
|
67
|
-
declare const
|
|
68
|
-
declare const
|
|
69
|
-
declare const
|
|
70
|
-
declare const
|
|
71
|
-
declare const
|
|
72
|
-
declare const
|
|
73
|
-
declare const
|
|
74
|
-
declare const
|
|
75
|
-
declare const
|
|
76
|
-
declare const
|
|
77
|
-
declare const
|
|
78
|
-
declare const
|
|
79
|
-
declare const
|
|
80
|
-
declare const
|
|
81
|
-
declare const
|
|
82
|
-
declare const
|
|
83
|
-
declare const
|
|
84
|
-
|
|
27
|
+
declare const Editor: import("react").ForwardRefExoticComponent<JSX.TaroEditorCore & Omit<import("react").HTMLAttributes<HTMLTaroEditorCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroEditorCoreElement>>;
|
|
28
|
+
declare const FollowSwan: import("react").ForwardRefExoticComponent<JSX.TaroFollowSwanCore & Omit<import("react").HTMLAttributes<HTMLTaroFollowSwanCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroFollowSwanCoreElement>>;
|
|
29
|
+
declare const Form: import("react").ForwardRefExoticComponent<JSX.TaroFormCore & Omit<import("react").HTMLAttributes<HTMLTaroFormCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroFormCoreElement>>;
|
|
30
|
+
declare const FunctionalPageNavigator: import("react").ForwardRefExoticComponent<JSX.TaroFunctionalPageNavigatorCore & Omit<import("react").HTMLAttributes<HTMLTaroFunctionalPageNavigatorCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroFunctionalPageNavigatorCoreElement>>;
|
|
31
|
+
declare const GridView: import("react").ForwardRefExoticComponent<JSX.TaroGridViewCore & Omit<import("react").HTMLAttributes<HTMLTaroGridViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroGridViewCoreElement>>;
|
|
32
|
+
declare const Icon: import("react").ForwardRefExoticComponent<JSX.TaroIconCore & Omit<import("react").HTMLAttributes<HTMLTaroIconCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroIconCoreElement>>;
|
|
33
|
+
declare const Image: import("react").ForwardRefExoticComponent<JSX.TaroImageCore & Omit<import("react").HTMLAttributes<HTMLTaroImageCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroImageCoreElement>>;
|
|
34
|
+
declare const InlinePaymentPanel: import("react").ForwardRefExoticComponent<JSX.TaroInlinePaymentPanelCore & Omit<import("react").HTMLAttributes<HTMLTaroInlinePaymentPanelCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroInlinePaymentPanelCoreElement>>;
|
|
35
|
+
declare const Input: import("react").ForwardRefExoticComponent<JSX.TaroInputCore & Omit<import("react").HTMLAttributes<HTMLTaroInputCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroInputCoreElement>>;
|
|
36
|
+
declare const KeyboardAccessory: import("react").ForwardRefExoticComponent<JSX.TaroKeyboardAccessoryCore & Omit<import("react").HTMLAttributes<HTMLTaroKeyboardAccessoryCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroKeyboardAccessoryCoreElement>>;
|
|
37
|
+
declare const Label: import("react").ForwardRefExoticComponent<JSX.TaroLabelCore & Omit<import("react").HTMLAttributes<HTMLTaroLabelCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLabelCoreElement>>;
|
|
38
|
+
declare const Lifestyle: import("react").ForwardRefExoticComponent<JSX.TaroLifestyleCore & Omit<import("react").HTMLAttributes<HTMLTaroLifestyleCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLifestyleCoreElement>>;
|
|
39
|
+
declare const Like: import("react").ForwardRefExoticComponent<JSX.TaroLikeCore & Omit<import("react").HTMLAttributes<HTMLTaroLikeCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLikeCoreElement>>;
|
|
40
|
+
declare const ListView: import("react").ForwardRefExoticComponent<JSX.TaroListViewCore & Omit<import("react").HTMLAttributes<HTMLTaroListViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroListViewCoreElement>>;
|
|
41
|
+
declare const LivePlayer: import("react").ForwardRefExoticComponent<JSX.TaroLivePlayerCore & Omit<import("react").HTMLAttributes<HTMLTaroLivePlayerCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLivePlayerCoreElement>>;
|
|
42
|
+
declare const LivePusher: import("react").ForwardRefExoticComponent<JSX.TaroLivePusherCore & Omit<import("react").HTMLAttributes<HTMLTaroLivePusherCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLivePusherCoreElement>>;
|
|
43
|
+
declare const Login: import("react").ForwardRefExoticComponent<JSX.TaroLoginCore & Omit<import("react").HTMLAttributes<HTMLTaroLoginCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLoginCoreElement>>;
|
|
44
|
+
declare const Lottie: import("react").ForwardRefExoticComponent<JSX.TaroLottieCore & Omit<import("react").HTMLAttributes<HTMLTaroLottieCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroLottieCoreElement>>;
|
|
45
|
+
declare const Map: import("react").ForwardRefExoticComponent<JSX.TaroMapCore & Omit<import("react").HTMLAttributes<HTMLTaroMapCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroMapCoreElement>>;
|
|
46
|
+
declare const MatchMedia: import("react").ForwardRefExoticComponent<JSX.TaroMatchMediaCore & Omit<import("react").HTMLAttributes<HTMLTaroMatchMediaCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroMatchMediaCoreElement>>;
|
|
47
|
+
declare const MovableArea: import("react").ForwardRefExoticComponent<JSX.TaroMovableAreaCore & Omit<import("react").HTMLAttributes<HTMLTaroMovableAreaCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroMovableAreaCoreElement>>;
|
|
48
|
+
declare const MovableView: import("react").ForwardRefExoticComponent<JSX.TaroMovableViewCore & Omit<import("react").HTMLAttributes<HTMLTaroMovableViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroMovableViewCoreElement>>;
|
|
49
|
+
declare const NativeSlot: import("react").ForwardRefExoticComponent<JSX.TaroNativeSlotCore & Omit<import("react").HTMLAttributes<HTMLTaroNativeSlotCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroNativeSlotCoreElement>>;
|
|
50
|
+
declare const NavigationBar: import("react").ForwardRefExoticComponent<JSX.TaroNavigationBarCore & Omit<import("react").HTMLAttributes<HTMLTaroNavigationBarCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroNavigationBarCoreElement>>;
|
|
51
|
+
declare const Navigator: import("react").ForwardRefExoticComponent<JSX.TaroNavigatorCore & Omit<import("react").HTMLAttributes<HTMLTaroNavigatorCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroNavigatorCoreElement>>;
|
|
52
|
+
declare const OfficialAccount: import("react").ForwardRefExoticComponent<JSX.TaroOfficialAccountCore & Omit<import("react").HTMLAttributes<HTMLTaroOfficialAccountCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroOfficialAccountCoreElement>>;
|
|
53
|
+
declare const OpenData: import("react").ForwardRefExoticComponent<JSX.TaroOpenDataCore & Omit<import("react").HTMLAttributes<HTMLTaroOpenDataCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroOpenDataCoreElement>>;
|
|
54
|
+
declare const PageContainer: import("react").ForwardRefExoticComponent<JSX.TaroPageContainerCore & Omit<import("react").HTMLAttributes<HTMLTaroPageContainerCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPageContainerCoreElement>>;
|
|
55
|
+
declare const PageMeta: import("react").ForwardRefExoticComponent<JSX.TaroPageMetaCore & Omit<import("react").HTMLAttributes<HTMLTaroPageMetaCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPageMetaCoreElement>>;
|
|
56
|
+
declare const Picker: import("react").ForwardRefExoticComponent<JSX.TaroPickerCore & Omit<import("react").HTMLAttributes<HTMLTaroPickerCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPickerCoreElement>>;
|
|
57
|
+
declare const PickerGroup: import("react").ForwardRefExoticComponent<JSX.TaroPickerGroup & Omit<import("react").HTMLAttributes<HTMLTaroPickerGroupElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPickerGroupElement>>;
|
|
58
|
+
declare const PickerViewColumn: import("react").ForwardRefExoticComponent<JSX.TaroPickerViewColumnCore & Omit<import("react").HTMLAttributes<HTMLTaroPickerViewColumnCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPickerViewColumnCoreElement>>;
|
|
59
|
+
declare const PickerView: import("react").ForwardRefExoticComponent<JSX.TaroPickerViewCore & Omit<import("react").HTMLAttributes<HTMLTaroPickerViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPickerViewCoreElement>>;
|
|
60
|
+
declare const Progress: import("react").ForwardRefExoticComponent<JSX.TaroProgressCore & Omit<import("react").HTMLAttributes<HTMLTaroProgressCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroProgressCoreElement>>;
|
|
61
|
+
declare const PullToRefresh: import("react").ForwardRefExoticComponent<JSX.TaroPullToRefresh & Omit<import("react").HTMLAttributes<HTMLTaroPullToRefreshElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroPullToRefreshElement>>;
|
|
62
|
+
declare const Radio: import("react").ForwardRefExoticComponent<JSX.TaroRadioCore & Omit<import("react").HTMLAttributes<HTMLTaroRadioCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRadioCoreElement>>;
|
|
63
|
+
declare const RadioGroup: import("react").ForwardRefExoticComponent<JSX.TaroRadioGroupCore & Omit<import("react").HTMLAttributes<HTMLTaroRadioGroupCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRadioGroupCoreElement>>;
|
|
64
|
+
declare const RichText: import("react").ForwardRefExoticComponent<JSX.TaroRichTextCore & Omit<import("react").HTMLAttributes<HTMLTaroRichTextCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRichTextCoreElement>>;
|
|
65
|
+
declare const RootPortal: import("react").ForwardRefExoticComponent<JSX.TaroRootPortalCore & Omit<import("react").HTMLAttributes<HTMLTaroRootPortalCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRootPortalCoreElement>>;
|
|
66
|
+
declare const RtcRoom: import("react").ForwardRefExoticComponent<JSX.TaroRtcRoomCore & Omit<import("react").HTMLAttributes<HTMLTaroRtcRoomCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRtcRoomCoreElement>>;
|
|
67
|
+
declare const RtcRoomItem: import("react").ForwardRefExoticComponent<JSX.TaroRtcRoomItemCore & Omit<import("react").HTMLAttributes<HTMLTaroRtcRoomItemCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroRtcRoomItemCoreElement>>;
|
|
68
|
+
declare const ScrollView: import("react").ForwardRefExoticComponent<JSX.TaroScrollViewCore & Omit<import("react").HTMLAttributes<HTMLTaroScrollViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroScrollViewCoreElement>>;
|
|
69
|
+
declare const ShareElement: import("react").ForwardRefExoticComponent<JSX.TaroShareElementCore & Omit<import("react").HTMLAttributes<HTMLTaroShareElementCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroShareElementCoreElement>>;
|
|
70
|
+
declare const Slider: import("react").ForwardRefExoticComponent<JSX.TaroSliderCore & Omit<import("react").HTMLAttributes<HTMLTaroSliderCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroSliderCoreElement>>;
|
|
71
|
+
declare const Slot: import("react").ForwardRefExoticComponent<JSX.TaroSlotCore & Omit<import("react").HTMLAttributes<HTMLTaroSlotCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroSlotCoreElement>>;
|
|
72
|
+
declare const StickyHeader: import("react").ForwardRefExoticComponent<JSX.TaroStickyHeaderCore & Omit<import("react").HTMLAttributes<HTMLTaroStickyHeaderCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroStickyHeaderCoreElement>>;
|
|
73
|
+
declare const StickySection: import("react").ForwardRefExoticComponent<JSX.TaroStickySectionCore & Omit<import("react").HTMLAttributes<HTMLTaroStickySectionCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroStickySectionCoreElement>>;
|
|
74
|
+
declare const Swiper: import("react").ForwardRefExoticComponent<JSX.TaroSwiperCore & Omit<import("react").HTMLAttributes<HTMLTaroSwiperCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroSwiperCoreElement>>;
|
|
75
|
+
declare const SwiperItem: import("react").ForwardRefExoticComponent<JSX.TaroSwiperItemCore & Omit<import("react").HTMLAttributes<HTMLTaroSwiperItemCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroSwiperItemCoreElement>>;
|
|
76
|
+
declare const Switch: import("react").ForwardRefExoticComponent<JSX.TaroSwitchCore & Omit<import("react").HTMLAttributes<HTMLTaroSwitchCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroSwitchCoreElement>>;
|
|
77
|
+
declare const TabItem: import("react").ForwardRefExoticComponent<JSX.TaroTabItemCore & Omit<import("react").HTMLAttributes<HTMLTaroTabItemCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroTabItemCoreElement>>;
|
|
78
|
+
declare const Tabbar: import("react").ForwardRefExoticComponent<JSX.TaroTabbar & Omit<import("react").HTMLAttributes<HTMLTaroTabbarElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroTabbarElement>>;
|
|
79
|
+
declare const Tabs: import("react").ForwardRefExoticComponent<JSX.TaroTabsCore & Omit<import("react").HTMLAttributes<HTMLTaroTabsCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroTabsCoreElement>>;
|
|
80
|
+
declare const Text: import("react").ForwardRefExoticComponent<JSX.TaroTextCore & Omit<import("react").HTMLAttributes<HTMLTaroTextCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroTextCoreElement>>;
|
|
81
|
+
declare const Textarea: import("react").ForwardRefExoticComponent<JSX.TaroTextareaCore & Omit<import("react").HTMLAttributes<HTMLTaroTextareaCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroTextareaCoreElement>>;
|
|
82
|
+
declare const VideoControl: import("react").ForwardRefExoticComponent<JSX.TaroVideoControl & Omit<import("react").HTMLAttributes<HTMLTaroVideoControlElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroVideoControlElement>>;
|
|
83
|
+
declare const Video: import("react").ForwardRefExoticComponent<JSX.TaroVideoCore & Omit<import("react").HTMLAttributes<HTMLTaroVideoCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroVideoCoreElement>>;
|
|
84
|
+
declare const VideoDanmu: import("react").ForwardRefExoticComponent<JSX.TaroVideoDanmu & Omit<import("react").HTMLAttributes<HTMLTaroVideoDanmuElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroVideoDanmuElement>>;
|
|
85
|
+
declare const View: import("react").ForwardRefExoticComponent<JSX.TaroViewCore & Omit<import("react").HTMLAttributes<HTMLTaroViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroViewCoreElement>>;
|
|
86
|
+
declare const VoipRoom: import("react").ForwardRefExoticComponent<JSX.TaroVoipRoomCore & Omit<import("react").HTMLAttributes<HTMLTaroVoipRoomCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroVoipRoomCoreElement>>;
|
|
87
|
+
declare const WebView: import("react").ForwardRefExoticComponent<JSX.TaroWebViewCore & Omit<import("react").HTMLAttributes<HTMLTaroWebViewCoreElement>, "style"> & import("./interfaces-f526f1a2").StyleReactProps & import("react").RefAttributes<HTMLTaroWebViewCoreElement>>;
|
|
88
|
+
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block, Button, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CommentDetail, CommentList, ContactButton, CoverImage, CoverView, CustomWrapper, Editor, FollowSwan, Form, FunctionalPageNavigator, GridView, Icon, Image, InlinePaymentPanel, Input, KeyboardAccessory, Label, Lifestyle, Like, ListView, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerGroup, PickerViewColumn, PickerView, Progress, PullToRefresh, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, ScrollView, ShareElement, Slider, Slot, StickyHeader, StickySection, Swiper, SwiperItem, Switch, TabItem, Tabbar, Tabs, Text, Textarea, VideoControl, Video, VideoDanmu, View, VoipRoom, WebView };
|