@tarojs/components 3.6.0-canary.10 → 3.6.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +3 -5
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +3 -5
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/components/helper.js +15 -0
- package/dist/components/helper.js.map +1 -0
- package/dist/components/hls.js +27622 -0
- package/dist/components/hls.js.map +1 -0
- package/dist/components/index.d.ts +97 -0
- package/dist/components/index.js +79 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +78 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/index3.js +33 -0
- package/dist/components/index3.js.map +1 -0
- package/dist/components/intersection-observer.js +728 -0
- package/dist/components/intersection-observer.js.map +1 -0
- package/dist/components/picker-group.js +220 -0
- package/dist/components/picker-group.js.map +1 -0
- package/dist/components/taro-ad-core.d.ts +11 -0
- package/dist/components/taro-ad-core.js +35 -0
- package/dist/components/taro-ad-core.js.map +1 -0
- package/dist/components/taro-ad-custom-core.d.ts +11 -0
- package/dist/components/taro-ad-custom-core.js +35 -0
- package/dist/components/taro-ad-custom-core.js.map +1 -0
- package/dist/components/taro-animation-video-core.d.ts +11 -0
- package/dist/components/taro-animation-video-core.js +35 -0
- package/dist/components/taro-animation-video-core.js.map +1 -0
- package/dist/components/taro-animation-view-core.d.ts +11 -0
- package/dist/components/taro-animation-view-core.js +35 -0
- package/dist/components/taro-animation-view-core.js.map +1 -0
- package/dist/components/taro-ar-camera-core.d.ts +11 -0
- package/dist/components/taro-ar-camera-core.js +35 -0
- package/dist/components/taro-ar-camera-core.js.map +1 -0
- package/dist/components/taro-audio-core.d.ts +11 -0
- package/dist/components/taro-audio-core.js +80 -0
- package/dist/components/taro-audio-core.js.map +1 -0
- package/dist/components/taro-aweme-data-core.d.ts +11 -0
- package/dist/components/taro-aweme-data-core.js +35 -0
- package/dist/components/taro-aweme-data-core.js.map +1 -0
- package/dist/components/taro-block-core.d.ts +11 -0
- package/dist/components/taro-block-core.js +31 -0
- package/dist/components/taro-block-core.js.map +1 -0
- package/dist/components/taro-button-core.d.ts +11 -0
- package/dist/components/taro-button-core.js +102 -0
- package/dist/components/taro-button-core.js.map +1 -0
- package/dist/components/taro-camera-core.d.ts +11 -0
- package/dist/components/taro-camera-core.js +35 -0
- package/dist/components/taro-camera-core.js.map +1 -0
- package/dist/components/taro-canvas-core.d.ts +11 -0
- package/dist/components/taro-canvas-core.js +57 -0
- package/dist/components/taro-canvas-core.js.map +1 -0
- package/dist/components/taro-checkbox-core.d.ts +11 -0
- package/dist/components/taro-checkbox-core.js +81 -0
- package/dist/components/taro-checkbox-core.js.map +1 -0
- package/dist/components/taro-checkbox-group-core.d.ts +11 -0
- package/dist/components/taro-checkbox-group-core.js +71 -0
- package/dist/components/taro-checkbox-group-core.js.map +1 -0
- package/dist/components/taro-comment-detail-core.d.ts +11 -0
- package/dist/components/taro-comment-detail-core.js +35 -0
- package/dist/components/taro-comment-detail-core.js.map +1 -0
- package/dist/components/taro-comment-list-core.d.ts +11 -0
- package/dist/components/taro-comment-list-core.js +35 -0
- package/dist/components/taro-comment-list-core.js.map +1 -0
- package/dist/components/taro-contact-button-core.d.ts +11 -0
- package/dist/components/taro-contact-button-core.js +35 -0
- package/dist/components/taro-contact-button-core.js.map +1 -0
- package/dist/components/taro-cover-image-core.d.ts +11 -0
- package/dist/components/taro-cover-image-core.js +52 -0
- package/dist/components/taro-cover-image-core.js.map +1 -0
- package/dist/components/taro-cover-view-core.d.ts +11 -0
- package/dist/components/taro-cover-view-core.js +89 -0
- package/dist/components/taro-cover-view-core.js.map +1 -0
- package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
- package/dist/components/taro-custom-wrapper-core.js +31 -0
- package/dist/components/taro-custom-wrapper-core.js.map +1 -0
- package/dist/components/taro-editor-core.d.ts +11 -0
- package/dist/components/taro-editor-core.js +35 -0
- package/dist/components/taro-editor-core.js.map +1 -0
- package/dist/components/taro-follow-swan-core.d.ts +11 -0
- package/dist/components/taro-follow-swan-core.js +35 -0
- package/dist/components/taro-follow-swan-core.js.map +1 -0
- package/dist/components/taro-form-core.d.ts +11 -0
- package/dist/components/taro-form-core.js +140 -0
- package/dist/components/taro-form-core.js.map +1 -0
- package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
- package/dist/components/taro-functional-page-navigator-core.js +35 -0
- package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
- package/dist/components/taro-icon-core.d.ts +11 -0
- package/dist/components/taro-icon-core.js +48 -0
- package/dist/components/taro-icon-core.js.map +1 -0
- package/dist/components/taro-image-core.d.ts +11 -0
- package/dist/components/taro-image-core.js +81 -0
- package/dist/components/taro-image-core.js.map +1 -0
- package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
- package/dist/components/taro-inline-payment-panel-core.js +35 -0
- package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
- package/dist/components/taro-input-core.d.ts +11 -0
- package/dist/components/taro-input-core.js +246 -0
- package/dist/components/taro-input-core.js.map +1 -0
- package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
- package/dist/components/taro-keyboard-accessory-core.js +35 -0
- package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
- package/dist/components/taro-label-core.d.ts +11 -0
- package/dist/components/taro-label-core.js +34 -0
- package/dist/components/taro-label-core.js.map +1 -0
- package/dist/components/taro-lifestyle-core.d.ts +11 -0
- package/dist/components/taro-lifestyle-core.js +35 -0
- package/dist/components/taro-lifestyle-core.js.map +1 -0
- package/dist/components/taro-like-core.d.ts +11 -0
- package/dist/components/taro-like-core.js +35 -0
- package/dist/components/taro-like-core.js.map +1 -0
- package/dist/components/taro-live-player-core.d.ts +11 -0
- package/dist/components/taro-live-player-core.js +35 -0
- package/dist/components/taro-live-player-core.js.map +1 -0
- package/dist/components/taro-live-pusher-core.d.ts +11 -0
- package/dist/components/taro-live-pusher-core.js +35 -0
- package/dist/components/taro-live-pusher-core.js.map +1 -0
- package/dist/components/taro-login-core.d.ts +11 -0
- package/dist/components/taro-login-core.js +35 -0
- package/dist/components/taro-login-core.js.map +1 -0
- package/dist/components/taro-lottie-core.d.ts +11 -0
- package/dist/components/taro-lottie-core.js +35 -0
- package/dist/components/taro-lottie-core.js.map +1 -0
- package/dist/components/taro-map-core.d.ts +11 -0
- package/dist/components/taro-map-core.js +35 -0
- package/dist/components/taro-map-core.js.map +1 -0
- package/dist/components/taro-match-media-core.d.ts +11 -0
- package/dist/components/taro-match-media-core.js +35 -0
- package/dist/components/taro-match-media-core.js.map +1 -0
- package/dist/components/taro-movable-area-core.d.ts +11 -0
- package/dist/components/taro-movable-area-core.js +175 -0
- package/dist/components/taro-movable-area-core.js.map +1 -0
- package/dist/components/taro-movable-view-core.d.ts +11 -0
- package/dist/components/taro-movable-view-core.js +361 -0
- package/dist/components/taro-movable-view-core.js.map +1 -0
- package/dist/components/taro-native-slot-core.d.ts +11 -0
- package/dist/components/taro-native-slot-core.js +35 -0
- package/dist/components/taro-native-slot-core.js.map +1 -0
- package/dist/components/taro-navigation-bar-core.d.ts +11 -0
- package/dist/components/taro-navigation-bar-core.js +35 -0
- package/dist/components/taro-navigation-bar-core.js.map +1 -0
- package/dist/components/taro-navigator-core.d.ts +11 -0
- package/dist/components/taro-navigator-core.js +96 -0
- package/dist/components/taro-navigator-core.js.map +1 -0
- package/dist/components/taro-official-account-core.d.ts +11 -0
- package/dist/components/taro-official-account-core.js +35 -0
- package/dist/components/taro-official-account-core.js.map +1 -0
- package/dist/components/taro-open-data-core.d.ts +11 -0
- package/dist/components/taro-open-data-core.js +35 -0
- package/dist/components/taro-open-data-core.js.map +1 -0
- package/dist/components/taro-page-container-core.d.ts +11 -0
- package/dist/components/taro-page-container-core.js +35 -0
- package/dist/components/taro-page-container-core.js.map +1 -0
- package/dist/components/taro-page-meta-core.d.ts +11 -0
- package/dist/components/taro-page-meta-core.js +35 -0
- package/dist/components/taro-page-meta-core.js.map +1 -0
- package/dist/components/taro-picker-core.d.ts +11 -0
- package/dist/components/taro-picker-core.js +538 -0
- package/dist/components/taro-picker-core.js.map +1 -0
- package/dist/components/taro-picker-group.d.ts +11 -0
- package/dist/components/taro-picker-group.js +8 -0
- package/dist/components/taro-picker-group.js.map +1 -0
- package/dist/components/taro-picker-view-column-core.d.ts +11 -0
- package/dist/components/taro-picker-view-column-core.js +115 -0
- package/dist/components/taro-picker-view-column-core.js.map +1 -0
- package/dist/components/taro-picker-view-core.d.ts +11 -0
- package/dist/components/taro-picker-view-core.js +114 -0
- package/dist/components/taro-picker-view-core.js.map +1 -0
- package/dist/components/taro-progress-core.d.ts +11 -0
- package/dist/components/taro-progress-core.js +62 -0
- package/dist/components/taro-progress-core.js.map +1 -0
- package/dist/components/taro-pull-to-refresh.d.ts +11 -0
- package/dist/components/taro-pull-to-refresh.js +284 -0
- package/dist/components/taro-pull-to-refresh.js.map +1 -0
- package/dist/components/taro-radio-core.d.ts +11 -0
- package/dist/components/taro-radio-core.js +83 -0
- package/dist/components/taro-radio-core.js.map +1 -0
- package/dist/components/taro-radio-group-core.d.ts +11 -0
- package/dist/components/taro-radio-group-core.js +82 -0
- package/dist/components/taro-radio-group-core.js.map +1 -0
- package/dist/components/taro-rich-text-core.d.ts +11 -0
- package/dist/components/taro-rich-text-core.js +86 -0
- package/dist/components/taro-rich-text-core.js.map +1 -0
- package/dist/components/taro-root-portal-core.d.ts +11 -0
- package/dist/components/taro-root-portal-core.js +35 -0
- package/dist/components/taro-root-portal-core.js.map +1 -0
- package/dist/components/taro-rtc-room-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-core.js +35 -0
- package/dist/components/taro-rtc-room-core.js.map +1 -0
- package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
- package/dist/components/taro-rtc-room-item-core.js +35 -0
- package/dist/components/taro-rtc-room-item-core.js.map +1 -0
- package/dist/components/taro-scroll-view-core.d.ts +11 -0
- package/dist/components/taro-scroll-view-core.js +184 -0
- package/dist/components/taro-scroll-view-core.js.map +1 -0
- package/dist/components/taro-share-element-core.d.ts +11 -0
- package/dist/components/taro-share-element-core.js +35 -0
- package/dist/components/taro-share-element-core.js.map +1 -0
- package/dist/components/taro-slider-core.d.ts +11 -0
- package/dist/components/taro-slider-core.js +196 -0
- package/dist/components/taro-slider-core.js.map +1 -0
- package/dist/components/taro-slot-core.d.ts +11 -0
- package/dist/components/taro-slot-core.js +35 -0
- package/dist/components/taro-slot-core.js.map +1 -0
- package/dist/components/taro-swiper-core.d.ts +11 -0
- package/dist/components/taro-swiper-core.js +10165 -0
- package/dist/components/taro-swiper-core.js.map +1 -0
- package/dist/components/taro-swiper-item-core.d.ts +11 -0
- package/dist/components/taro-swiper-item-core.js +34 -0
- package/dist/components/taro-swiper-item-core.js.map +1 -0
- package/dist/components/taro-switch-core.d.ts +11 -0
- package/dist/components/taro-switch-core.js +87 -0
- package/dist/components/taro-switch-core.js.map +1 -0
- package/dist/components/taro-tab-item-core.d.ts +11 -0
- package/dist/components/taro-tab-item-core.js +35 -0
- package/dist/components/taro-tab-item-core.js.map +1 -0
- package/dist/components/taro-tabbar.d.ts +11 -0
- package/dist/components/taro-tabbar.js +457 -0
- package/dist/components/taro-tabbar.js.map +1 -0
- package/dist/components/taro-tabs-core.d.ts +11 -0
- package/dist/components/taro-tabs-core.js +35 -0
- package/dist/components/taro-tabs-core.js.map +1 -0
- package/dist/components/taro-text-core.d.ts +11 -0
- package/dist/components/taro-text-core.js +41 -0
- package/dist/components/taro-text-core.js.map +1 -0
- package/dist/components/taro-textarea-core.d.ts +11 -0
- package/dist/components/taro-textarea-core.js +164 -0
- package/dist/components/taro-textarea-core.js.map +1 -0
- package/dist/components/taro-video-control.d.ts +11 -0
- package/dist/components/taro-video-control.js +8 -0
- package/dist/components/taro-video-control.js.map +1 -0
- package/dist/components/taro-video-core.d.ts +11 -0
- package/dist/components/taro-video-core.js +485 -0
- package/dist/components/taro-video-core.js.map +1 -0
- package/dist/components/taro-video-danmu.d.ts +11 -0
- package/dist/components/taro-video-danmu.js +8 -0
- package/dist/components/taro-video-danmu.js.map +1 -0
- package/dist/components/taro-view-core.d.ts +11 -0
- package/dist/components/taro-view-core.js +101 -0
- package/dist/components/taro-view-core.js.map +1 -0
- package/dist/components/taro-voip-room-core.d.ts +11 -0
- package/dist/components/taro-voip-room-core.js +35 -0
- package/dist/components/taro-voip-room-core.js.map +1 -0
- package/dist/components/taro-web-view-core.d.ts +11 -0
- package/dist/components/taro-web-view-core.js +46 -0
- package/dist/components/taro-web-view-core.js.map +1 -0
- package/dist/components/video-control.js +233 -0
- package/dist/components/video-control.js.map +1 -0
- package/dist/components/video-danmu.js +110 -0
- package/dist/components/video-danmu.js.map +1 -0
- package/dist/esm/taro-swiper-core_2.entry.js +3 -5
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/taro-components/{p-d388c097.entry.js → p-22315b9d.entry.js} +2 -2
- package/dist/taro-components/p-22315b9d.entry.js.map +1 -0
- package/dist/taro-components/{p-6831f7b1.system.entry.js → p-c3c37cbb.system.entry.js} +2 -2
- package/dist/taro-components/p-c3c37cbb.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/lib/react/components.d.ts +82 -0
- package/lib/react/components.js +85 -0
- package/lib/react/components.js.map +1 -0
- package/lib/react/helper.d.ts +10 -0
- package/lib/react/helper.js +7 -0
- package/lib/react/helper.js.map +1 -0
- package/lib/react/index.d.ts +1 -0
- package/lib/react/index.js +2 -0
- package/lib/react/index.js.map +1 -0
- package/lib/react/interfaces-4f837811.d.ts +30 -0
- package/lib/react/react-component-lib/createComponent.d.ts +10 -0
- package/lib/react/react-component-lib/createComponent.js +70 -0
- package/lib/react/react-component-lib/createComponent.js.map +1 -0
- package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
- package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/lib/react/react-component-lib/index.d.ts +2 -0
- package/lib/react/react-component-lib/index.js +3 -0
- package/lib/react/react-component-lib/index.js.map +1 -0
- package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
- package/lib/react/react-component-lib/utils/attachProps.js +101 -0
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/lib/react/react-component-lib/utils/case.d.ts +3 -0
- package/lib/react/react-component-lib/utils/case.js +9 -0
- package/lib/react/react-component-lib/utils/case.js.map +1 -0
- package/lib/react/react-component-lib/utils/index.d.ts +11 -0
- package/lib/react/react-component-lib/utils/index.js +37 -0
- package/lib/react/react-component-lib/utils/index.js.map +1 -0
- package/lib/vue2/components.d.ts +352 -0
- package/lib/vue2/components.js +620 -0
- package/lib/vue2/components.js.map +1 -0
- package/lib/vue2/index.d.ts +3 -0
- package/lib/vue2/index.js +21 -0
- package/lib/vue2/index.js.map +1 -0
- package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
- package/lib/vue2/vue-component-lib/utils.js +32 -0
- package/lib/vue2/vue-component-lib/utils.js.map +1 -0
- package/lib/vue3/components.d.ts +82 -0
- package/lib/vue3/components.js +386 -0
- package/lib/vue3/components.js.map +1 -0
- package/lib/vue3/index.d.ts +3 -0
- package/lib/vue3/index.js +15 -0
- package/lib/vue3/index.js.map +1 -0
- package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
- package/lib/vue3/vue-component-lib/utils.js +163 -0
- package/lib/vue3/vue-component-lib/utils.js.map +1 -0
- package/package.json +9 -7
- package/types/index.vue3.d.ts +4 -4
- package/dist/react/component-lib/index.js +0 -74
- package/dist/react/component-lib/input.js +0 -17
- package/dist/react/component-lib/reactify-wc.js +0 -206
- package/dist/react/components.js +0 -82
- package/dist/react/helper.js +0 -8
- package/dist/react/index.js +0 -1
- package/dist/react/react-component-lib/createComponent.js +0 -99
- package/dist/react/react-component-lib/createOverlayComponent.js +0 -178
- package/dist/react/react-component-lib/index.js +0 -2
- package/dist/react/react-component-lib/interfaces.js +0 -0
- package/dist/react/react-component-lib/utils/attachProps.js +0 -98
- package/dist/react/react-component-lib/utils/case.js +0 -10
- package/dist/react/react-component-lib/utils/dev.js +0 -12
- package/dist/react/react-component-lib/utils/index.js +0 -37
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +0 -1
- package/dist/taro-components/p-d388c097.entry.js.map +0 -1
- package/dist/vue2/component-lib/components.js +0 -71
- package/dist/vue2/component-lib/createComponent.js +0 -21
- package/dist/vue2/component-lib/createFormsComponent.js +0 -53
- package/dist/vue2/component-lib/icon.js +0 -19
- package/dist/vue2/component-lib/image.js +0 -20
- package/dist/vue2/component-lib/index.js +0 -28
- package/dist/vue2/component-lib/mixins/listeners.js +0 -14
- package/dist/vue2/component-lib/mixins/refs.js +0 -44
- package/dist/vue2/component-lib/picker.js +0 -40
- package/dist/vue2/component-lib/scroll-view.js +0 -32
- package/dist/vue2/component-lib/text.js +0 -20
- package/dist/vue2/components.js +0 -542
- package/dist/vue2/index.js +0 -22
- package/dist/vue2/vue-component-lib/utils.js +0 -40
- package/dist/vue3/component-lib/createComponent.js +0 -23
- package/dist/vue3/component-lib/createFormsComponent.js +0 -43
- package/dist/vue3/component-lib/forwardRef.js +0 -9
- package/dist/vue3/component-lib/icon.js +0 -21
- package/dist/vue3/component-lib/image.js +0 -22
- package/dist/vue3/component-lib/index.js +0 -76
- package/dist/vue3/component-lib/scroll-view.js +0 -28
- package/dist/vue3/component-lib/text.js +0 -22
- package/dist/vue3/components.js +0 -80
- package/dist/vue3/index.js +0 -17
- package/dist/vue3/vue-component-lib/utils.js +0 -175
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Icon from './icon';
|
|
2
|
-
import Image from './image';
|
|
3
|
-
import Picker from './picker';
|
|
4
|
-
import ScrollView from './scroll-view';
|
|
5
|
-
import Text from './text';
|
|
6
|
-
var components = [
|
|
7
|
-
// 视图容器
|
|
8
|
-
'taro-cover-image', 'taro-cover-view', 'taro-match-media', 'taro-movable-area', 'taro-movable-view', 'taro-page-container', 'taro-root-portal', ['taro-scroll-view', {
|
|
9
|
-
type: 'component',
|
|
10
|
-
component: ScrollView
|
|
11
|
-
}], 'taro-share-element', 'taro-swiper', ['taro-swiper-item', {
|
|
12
|
-
classNames: ['swiper-slide']
|
|
13
|
-
}], 'taro-view',
|
|
14
|
-
// 基础内容
|
|
15
|
-
['taro-icon', {
|
|
16
|
-
type: 'component',
|
|
17
|
-
component: Icon
|
|
18
|
-
}], ['taro-progress', {
|
|
19
|
-
classNames: ['weui-progress']
|
|
20
|
-
}], 'taro-rich-text', ['taro-text', {
|
|
21
|
-
type: 'component',
|
|
22
|
-
component: Text
|
|
23
|
-
}],
|
|
24
|
-
// 表单组件
|
|
25
|
-
'taro-button', ['taro-checkbox', {
|
|
26
|
-
classNames: ['weui-cells_checkbox']
|
|
27
|
-
}], 'taro-checkbox-group', 'taro-editor', 'taro-form', ['taro-input', {
|
|
28
|
-
type: 'forms',
|
|
29
|
-
event: 'input'
|
|
30
|
-
}], 'taro-keyboard-accessory', 'taro-label', ['taro-picker', {
|
|
31
|
-
type: 'component',
|
|
32
|
-
component: Picker
|
|
33
|
-
}], 'taro-picker-view', 'taro-picker-view-column', ['taro-radio', {
|
|
34
|
-
classNames: ['weui-cells_checkbox']
|
|
35
|
-
}], ['taro-radio-group', {
|
|
36
|
-
classNames: ['weui-cells_radiogroup']
|
|
37
|
-
}], ['taro-slider', {
|
|
38
|
-
type: 'forms',
|
|
39
|
-
event: 'change',
|
|
40
|
-
modelValue: 'value',
|
|
41
|
-
classNames: ['weui-slider-box']
|
|
42
|
-
}], ['taro-switch', {
|
|
43
|
-
type: 'forms',
|
|
44
|
-
event: 'change',
|
|
45
|
-
modelValue: 'checked'
|
|
46
|
-
}], ['taro-textarea', {
|
|
47
|
-
type: 'forms',
|
|
48
|
-
event: 'input'
|
|
49
|
-
}],
|
|
50
|
-
// 导航
|
|
51
|
-
'taro-functional-page-navigator', 'taro-navigator',
|
|
52
|
-
// 媒体组件
|
|
53
|
-
'taro-audio', 'taro-camera', ['taro-image', {
|
|
54
|
-
type: 'component',
|
|
55
|
-
component: Image
|
|
56
|
-
}], 'taro-live-player', ['taro-video', {
|
|
57
|
-
classNames: ['taro-video-container']
|
|
58
|
-
}], 'taro-voip-room',
|
|
59
|
-
// 地图
|
|
60
|
-
'taro-map',
|
|
61
|
-
// 画布
|
|
62
|
-
'taro-canvas',
|
|
63
|
-
// 开放能力
|
|
64
|
-
'taro-web-view', 'taro-ad', 'taro-ad-custom', 'taro-official-account', 'taro-open-data',
|
|
65
|
-
// 导航栏
|
|
66
|
-
'taro-navigation-bar',
|
|
67
|
-
// 页面属性配置节点
|
|
68
|
-
'taro-page-meta',
|
|
69
|
-
// 其他
|
|
70
|
-
'taro-block', 'taro-custom-wrapper', 'taro-slot'];
|
|
71
|
-
export default components;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
-
import { listeners } from './mixins/listeners';
|
|
3
|
-
import { refs } from './mixins/refs';
|
|
4
|
-
export default function createComponent(name) {
|
|
5
|
-
var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
6
|
-
return {
|
|
7
|
-
name: name,
|
|
8
|
-
mixins: [listeners, refs],
|
|
9
|
-
props: ['nativeProps'],
|
|
10
|
-
render: function render(createElement) {
|
|
11
|
-
return createElement("".concat(name, "-core"), {
|
|
12
|
-
class: ['hydrated'].concat(_toConsumableArray(classNames)),
|
|
13
|
-
domProps: {
|
|
14
|
-
nativeProps: this.nativeProps
|
|
15
|
-
},
|
|
16
|
-
attrs: this.$attrs,
|
|
17
|
-
on: this.listeners
|
|
18
|
-
}, this.$slots.default);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
import { listeners } from './mixins/listeners';
|
|
4
|
-
import { refs } from './mixins/refs';
|
|
5
|
-
export default function createFormsComponent(name, event) {
|
|
6
|
-
var modelValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'value';
|
|
7
|
-
var classNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
8
|
-
var props = {
|
|
9
|
-
nativeProps: {
|
|
10
|
-
type: Object
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
if (name === 'taro-input') {
|
|
14
|
-
props.focus = Boolean;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
name: name,
|
|
18
|
-
mixins: [listeners, refs],
|
|
19
|
-
model: {
|
|
20
|
-
prop: modelValue,
|
|
21
|
-
event: 'model'
|
|
22
|
-
},
|
|
23
|
-
props: props,
|
|
24
|
-
methods: {
|
|
25
|
-
input: function input(e) {
|
|
26
|
-
this.$emit('input', e);
|
|
27
|
-
this.$emit('model', e.target.value);
|
|
28
|
-
},
|
|
29
|
-
change: function change(e) {
|
|
30
|
-
this.$emit('change', e);
|
|
31
|
-
this.$emit('model', e.target.value);
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
render: function render(createElement) {
|
|
35
|
-
// eslint-disable-next-line
|
|
36
|
-
var self = this;
|
|
37
|
-
var attrs = this.$attrs || {};
|
|
38
|
-
if (name === 'taro-input') {
|
|
39
|
-
attrs['auto-focus'] = self.focus;
|
|
40
|
-
}
|
|
41
|
-
var on = _objectSpread({}, self.listeners);
|
|
42
|
-
on[event] = self[event];
|
|
43
|
-
return createElement("".concat(name, "-core"), {
|
|
44
|
-
class: ['hydrated'].concat(_toConsumableArray(classNames)),
|
|
45
|
-
domProps: {
|
|
46
|
-
nativeProps: this.nativeProps
|
|
47
|
-
},
|
|
48
|
-
attrs: attrs,
|
|
49
|
-
on: on
|
|
50
|
-
}, self.$slots.default);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { listeners } from './mixins/listeners';
|
|
2
|
-
import { refs } from './mixins/refs';
|
|
3
|
-
export default {
|
|
4
|
-
name: 'taro-icon',
|
|
5
|
-
mixins: [listeners, refs],
|
|
6
|
-
props: {
|
|
7
|
-
type: String
|
|
8
|
-
},
|
|
9
|
-
render: function render(createElement) {
|
|
10
|
-
var iconType = this.type.replace(/_/g, '-');
|
|
11
|
-
return createElement('taro-icon-core', {
|
|
12
|
-
class: ['hydrated', "weui-icon-".concat(iconType)],
|
|
13
|
-
attrs: {
|
|
14
|
-
type: this.type
|
|
15
|
-
},
|
|
16
|
-
on: this.listeners
|
|
17
|
-
}, this.$slots.default);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { listeners } from './mixins/listeners';
|
|
2
|
-
import { refs } from './mixins/refs';
|
|
3
|
-
export default {
|
|
4
|
-
name: 'taro-image',
|
|
5
|
-
mixins: [listeners, refs],
|
|
6
|
-
props: {
|
|
7
|
-
mode: String
|
|
8
|
-
},
|
|
9
|
-
render: function render(createElement) {
|
|
10
|
-
return createElement('taro-image-core', {
|
|
11
|
-
class: ['hydrated', {
|
|
12
|
-
'taro-img__widthfix': this.mode === 'widthFix'
|
|
13
|
-
}],
|
|
14
|
-
attrs: {
|
|
15
|
-
mode: this.mode
|
|
16
|
-
},
|
|
17
|
-
on: this.listeners
|
|
18
|
-
}, this.$slots.default);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import Vue from 'vue';
|
|
3
|
-
import components from './components';
|
|
4
|
-
import createComponent from './createComponent';
|
|
5
|
-
import createFormsComponent from './createFormsComponent';
|
|
6
|
-
components.forEach(function (params) {
|
|
7
|
-
if (typeof params === 'string') {
|
|
8
|
-
Vue.component(params, createComponent(params));
|
|
9
|
-
} else if (params instanceof Array) {
|
|
10
|
-
var _ref = params,
|
|
11
|
-
_ref2 = _slicedToArray(_ref, 2),
|
|
12
|
-
name = _ref2[0],
|
|
13
|
-
props = _ref2[1];
|
|
14
|
-
var classNames = props.classNames,
|
|
15
|
-
_props$type = props.type,
|
|
16
|
-
type = _props$type === void 0 ? 'simple' : _props$type;
|
|
17
|
-
if (type === 'simple') {
|
|
18
|
-
Vue.component(name, createComponent(name, classNames));
|
|
19
|
-
} else if (type === 'forms') {
|
|
20
|
-
var event = props.event,
|
|
21
|
-
modelValue = props.modelValue;
|
|
22
|
-
Vue.component(name, createFormsComponent(name, event, modelValue, classNames));
|
|
23
|
-
} else if (type === 'component') {
|
|
24
|
-
Vue.component(name, props.component);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
Vue.config.ignoredElements = ['root', 'block', /^taro-/];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
export var listeners = {
|
|
3
|
-
computed: {
|
|
4
|
-
listeners: function listeners() {
|
|
5
|
-
// eslint-disable-next-line
|
|
6
|
-
var vm = this;
|
|
7
|
-
return _objectSpread(_objectSpread({}, vm.$listeners), {}, {
|
|
8
|
-
click: function click(e) {
|
|
9
|
-
vm.$emit('tap', e);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
export var refs = {
|
|
3
|
-
mounted: function mounted() {
|
|
4
|
-
if (this.$parent && _typeof(this.$parent.$refs) === 'object' && Object.keys(this.$parent.$refs).length) {
|
|
5
|
-
var _refs = this.$parent.$refs;
|
|
6
|
-
if (this._refCacheKey) {
|
|
7
|
-
_refs[this._refCacheKey] = this.$el;
|
|
8
|
-
} else {
|
|
9
|
-
for (var key in _refs) {
|
|
10
|
-
var ref = _refs[key];
|
|
11
|
-
if (ref === this) {
|
|
12
|
-
this._refCacheKey = key;
|
|
13
|
-
_refs[key] = this.$el;
|
|
14
|
-
break;
|
|
15
|
-
} else if (Array.isArray(ref)) {
|
|
16
|
-
var index = ref.indexOf(this);
|
|
17
|
-
if (index > -1) {
|
|
18
|
-
ref[index] = this.$el;
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
beforeDestroy: function beforeDestroy() {
|
|
27
|
-
if (this.$parent && _typeof(this.$parent.$refs) === 'object' && Object.keys(this.$parent.$refs).length) {
|
|
28
|
-
var _refs2 = this.$parent.$refs;
|
|
29
|
-
if (this._refCacheKey) {
|
|
30
|
-
_refs2[this._refCacheKey] = this;
|
|
31
|
-
} else {
|
|
32
|
-
for (var key in _refs2) {
|
|
33
|
-
if (Array.isArray(_refs2[key])) {
|
|
34
|
-
var index = _refs2[key].indexOf(this.$el);
|
|
35
|
-
if (index > -1) {
|
|
36
|
-
_refs2[key][index] = this;
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { listeners } from './mixins/listeners';
|
|
3
|
-
import { refs } from './mixins/refs';
|
|
4
|
-
export default {
|
|
5
|
-
name: 'taro-picker',
|
|
6
|
-
mixins: [listeners, refs],
|
|
7
|
-
model: {
|
|
8
|
-
event: 'model'
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
range: Array,
|
|
12
|
-
rangeKey: String,
|
|
13
|
-
value: [Number, String, Array]
|
|
14
|
-
},
|
|
15
|
-
mounted: function mounted() {
|
|
16
|
-
this.$el.value = this.value;
|
|
17
|
-
},
|
|
18
|
-
watch: {
|
|
19
|
-
value: function value(newVal) {
|
|
20
|
-
this.$el.value = newVal;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
render: function render(createElement) {
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
25
|
-
var self = this;
|
|
26
|
-
return createElement('taro-picker-core', {
|
|
27
|
-
class: 'hydrated',
|
|
28
|
-
domProps: {
|
|
29
|
-
range: self.range,
|
|
30
|
-
rangeKey: self.rangeKey
|
|
31
|
-
},
|
|
32
|
-
on: _objectSpread(_objectSpread({}, self.listeners), {}, {
|
|
33
|
-
change: function change(e) {
|
|
34
|
-
self.$emit('change', e);
|
|
35
|
-
self.$emit('model', e.target.value);
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
}, self.$slots.default);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { listeners } from './mixins/listeners';
|
|
3
|
-
import { refs } from './mixins/refs';
|
|
4
|
-
export default {
|
|
5
|
-
name: 'taro-scroll-view',
|
|
6
|
-
mixins: [listeners, refs],
|
|
7
|
-
props: {
|
|
8
|
-
scrollX: Boolean,
|
|
9
|
-
scrollY: Boolean
|
|
10
|
-
},
|
|
11
|
-
render: function render(createElement) {
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
13
|
-
var self = this;
|
|
14
|
-
var attrs = {};
|
|
15
|
-
if (self.scrollX) attrs['scroll-x'] = true;
|
|
16
|
-
if (self.scrollY) attrs['scroll-y'] = true;
|
|
17
|
-
return createElement('taro-scroll-view-core', {
|
|
18
|
-
class: ['hydrated', {
|
|
19
|
-
'taro-scroll-view__scroll-x': self.scrollX,
|
|
20
|
-
'taro-scroll-view__scroll-y': self.scrollY
|
|
21
|
-
}],
|
|
22
|
-
attrs: attrs,
|
|
23
|
-
on: _objectSpread(_objectSpread({}, self.listeners), {}, {
|
|
24
|
-
scroll: function scroll(e) {
|
|
25
|
-
if (e instanceof CustomEvent) {
|
|
26
|
-
self.$emit('scroll', e);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
}, self.$slots.default);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { listeners } from './mixins/listeners';
|
|
2
|
-
import { refs } from './mixins/refs';
|
|
3
|
-
export default {
|
|
4
|
-
name: 'taro-text',
|
|
5
|
-
mixins: [listeners, refs],
|
|
6
|
-
props: {
|
|
7
|
-
selectable: Boolean
|
|
8
|
-
},
|
|
9
|
-
render: function render(createElement) {
|
|
10
|
-
return createElement('taro-text-core', {
|
|
11
|
-
class: ['hydrated', {
|
|
12
|
-
'taro-text__selectable': this.selectable
|
|
13
|
-
}],
|
|
14
|
-
attrs: {
|
|
15
|
-
selectable: this.selectable
|
|
16
|
-
},
|
|
17
|
-
on: this.listeners
|
|
18
|
-
}, this.$slots.default);
|
|
19
|
-
}
|
|
20
|
-
};
|