@rsmax/wechat 1.0.1
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/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/cjs/api/index.d.ts +281 -0
- package/cjs/api/index.js +282 -0
- package/cjs/hostComponents/Ad/index.d.ts +18 -0
- package/cjs/hostComponents/Ad/index.js +9 -0
- package/cjs/hostComponents/Ad/node.d.ts +11 -0
- package/cjs/hostComponents/Ad/node.js +14 -0
- package/cjs/hostComponents/AdCustom/index.d.ts +17 -0
- package/cjs/hostComponents/AdCustom/index.js +9 -0
- package/cjs/hostComponents/AdCustom/node.d.ts +8 -0
- package/cjs/hostComponents/AdCustom/node.js +11 -0
- package/cjs/hostComponents/Audio/index.d.ts +2 -0
- package/cjs/hostComponents/Audio/index.js +6 -0
- package/cjs/hostComponents/Audio/node.d.ts +18 -0
- package/cjs/hostComponents/Audio/node.js +21 -0
- package/cjs/hostComponents/Button/index.d.ts +223 -0
- package/cjs/hostComponents/Button/index.js +14 -0
- package/cjs/hostComponents/Button/node.d.ts +48 -0
- package/cjs/hostComponents/Button/node.js +51 -0
- package/cjs/hostComponents/Camera/index.d.ts +26 -0
- package/cjs/hostComponents/Camera/index.js +15 -0
- package/cjs/hostComponents/Camera/node.d.ts +15 -0
- package/cjs/hostComponents/Camera/node.js +18 -0
- package/cjs/hostComponents/Canvas/index.d.ts +16 -0
- package/cjs/hostComponents/Canvas/index.js +11 -0
- package/cjs/hostComponents/Canvas/node.d.ts +21 -0
- package/cjs/hostComponents/Canvas/node.js +24 -0
- package/cjs/hostComponents/ChannelLive/index.d.ts +26 -0
- package/cjs/hostComponents/ChannelLive/index.js +12 -0
- package/cjs/hostComponents/ChannelLive/node.d.ts +2 -0
- package/cjs/hostComponents/ChannelLive/node.js +5 -0
- package/cjs/hostComponents/ChannelVideo/index.d.ts +34 -0
- package/cjs/hostComponents/ChannelVideo/index.js +16 -0
- package/cjs/hostComponents/ChannelVideo/node.d.ts +4 -0
- package/cjs/hostComponents/ChannelVideo/node.js +7 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +17 -0
- package/cjs/hostComponents/Checkbox/index.js +13 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +13 -0
- package/cjs/hostComponents/Checkbox/node.js +16 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +13 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +8 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +9 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
- package/cjs/hostComponents/CoverImage/index.d.ts +14 -0
- package/cjs/hostComponents/CoverImage/index.js +8 -0
- package/cjs/hostComponents/CoverImage/node.d.ts +12 -0
- package/cjs/hostComponents/CoverImage/node.js +15 -0
- package/cjs/hostComponents/CoverView/index.d.ts +11 -0
- package/cjs/hostComponents/CoverView/index.js +8 -0
- package/cjs/hostComponents/CoverView/node.d.ts +11 -0
- package/cjs/hostComponents/CoverView/node.js +14 -0
- package/cjs/hostComponents/Editor/index.d.ts +28 -0
- package/cjs/hostComponents/Editor/index.js +14 -0
- package/cjs/hostComponents/Editor/node.d.ts +17 -0
- package/cjs/hostComponents/Editor/node.js +20 -0
- package/cjs/hostComponents/Form/index.d.ts +16 -0
- package/cjs/hostComponents/Form/index.js +12 -0
- package/cjs/hostComponents/Form/node.d.ts +11 -0
- package/cjs/hostComponents/Form/node.js +14 -0
- package/cjs/hostComponents/FunctionalPageNavigator/index.d.ts +20 -0
- package/cjs/hostComponents/FunctionalPageNavigator/index.js +11 -0
- package/cjs/hostComponents/FunctionalPageNavigator/node.d.ts +8 -0
- package/cjs/hostComponents/FunctionalPageNavigator/node.js +11 -0
- package/cjs/hostComponents/Icon/index.d.ts +14 -0
- package/cjs/hostComponents/Icon/index.js +11 -0
- package/cjs/hostComponents/Icon/node.d.ts +10 -0
- package/cjs/hostComponents/Icon/node.js +13 -0
- package/cjs/hostComponents/Image/index.d.ts +57 -0
- package/cjs/hostComponents/Image/index.js +14 -0
- package/cjs/hostComponents/Image/node.d.ts +19 -0
- package/cjs/hostComponents/Image/node.js +22 -0
- package/cjs/hostComponents/Input/index.d.ts +138 -0
- package/cjs/hostComponents/Input/index.js +25 -0
- package/cjs/hostComponents/Input/node.d.ts +34 -0
- package/cjs/hostComponents/Input/node.js +37 -0
- package/cjs/hostComponents/KeyboardAccessory/index.d.ts +7 -0
- package/cjs/hostComponents/KeyboardAccessory/index.js +8 -0
- package/cjs/hostComponents/KeyboardAccessory/node.d.ts +2 -0
- package/cjs/hostComponents/KeyboardAccessory/node.js +5 -0
- package/cjs/hostComponents/Label/index.d.ts +10 -0
- package/cjs/hostComponents/Label/index.js +8 -0
- package/cjs/hostComponents/Label/node.d.ts +10 -0
- package/cjs/hostComponents/Label/node.js +13 -0
- package/cjs/hostComponents/LivePlayer/index.d.ts +46 -0
- package/cjs/hostComponents/LivePlayer/index.js +21 -0
- package/cjs/hostComponents/LivePlayer/node.d.ts +26 -0
- package/cjs/hostComponents/LivePlayer/node.js +29 -0
- package/cjs/hostComponents/LivePusher/index.d.ts +102 -0
- package/cjs/hostComponents/LivePusher/index.js +35 -0
- package/cjs/hostComponents/LivePusher/node.d.ts +43 -0
- package/cjs/hostComponents/LivePusher/node.js +46 -0
- package/cjs/hostComponents/Map/index.d.ts +80 -0
- package/cjs/hostComponents/Map/index.js +26 -0
- package/cjs/hostComponents/Map/node.d.ts +52 -0
- package/cjs/hostComponents/Map/node.js +55 -0
- package/cjs/hostComponents/MatchMedia/index.d.ts +22 -0
- package/cjs/hostComponents/MatchMedia/index.js +8 -0
- package/cjs/hostComponents/MatchMedia/node.d.ts +10 -0
- package/cjs/hostComponents/MatchMedia/node.js +13 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/index.js +11 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/node.js +13 -0
- package/cjs/hostComponents/MovableView/index.d.ts +44 -0
- package/cjs/hostComponents/MovableView/index.js +21 -0
- package/cjs/hostComponents/MovableView/node.d.ts +27 -0
- package/cjs/hostComponents/MovableView/node.js +30 -0
- package/cjs/hostComponents/NavigationBar/index.d.ts +21 -0
- package/cjs/hostComponents/NavigationBar/index.js +14 -0
- package/cjs/hostComponents/NavigationBar/node.d.ts +9 -0
- package/cjs/hostComponents/NavigationBar/node.js +12 -0
- package/cjs/hostComponents/Navigator/index.d.ts +38 -0
- package/cjs/hostComponents/Navigator/index.js +17 -0
- package/cjs/hostComponents/Navigator/node.d.ts +23 -0
- package/cjs/hostComponents/Navigator/node.js +26 -0
- package/cjs/hostComponents/OfficialAccount/index.d.ts +12 -0
- package/cjs/hostComponents/OfficialAccount/index.js +8 -0
- package/cjs/hostComponents/OfficialAccount/node.d.ts +5 -0
- package/cjs/hostComponents/OfficialAccount/node.js +8 -0
- package/cjs/hostComponents/OpenData/index.d.ts +20 -0
- package/cjs/hostComponents/OpenData/index.js +11 -0
- package/cjs/hostComponents/OpenData/node.d.ts +6 -0
- package/cjs/hostComponents/OpenData/node.js +5 -0
- package/cjs/hostComponents/PageContainer/index.d.ts +40 -0
- package/cjs/hostComponents/PageContainer/index.js +17 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +19 -0
- package/cjs/hostComponents/PageContainer/node.js +22 -0
- package/cjs/hostComponents/PageMeta/index.d.ts +37 -0
- package/cjs/hostComponents/PageMeta/index.js +12 -0
- package/cjs/hostComponents/PageMeta/node.d.ts +17 -0
- package/cjs/hostComponents/PageMeta/node.js +20 -0
- package/cjs/hostComponents/Picker/index.d.ts +75 -0
- package/cjs/hostComponents/Picker/index.js +16 -0
- package/cjs/hostComponents/Picker/node.d.ts +23 -0
- package/cjs/hostComponents/Picker/node.js +26 -0
- package/cjs/hostComponents/PickerView/index.d.ts +25 -0
- package/cjs/hostComponents/PickerView/index.js +8 -0
- package/cjs/hostComponents/PickerView/node.d.ts +18 -0
- package/cjs/hostComponents/PickerView/node.js +21 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +7 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +8 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +5 -0
- package/cjs/hostComponents/Progress/index.d.ts +34 -0
- package/cjs/hostComponents/Progress/index.js +20 -0
- package/cjs/hostComponents/Progress/node.d.ts +19 -0
- package/cjs/hostComponents/Progress/node.js +22 -0
- package/cjs/hostComponents/Radio/index.d.ts +17 -0
- package/cjs/hostComponents/Radio/index.js +13 -0
- package/cjs/hostComponents/Radio/node.d.ts +12 -0
- package/cjs/hostComponents/Radio/node.js +15 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +11 -0
- package/cjs/hostComponents/RadioGroup/index.js +8 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +9 -0
- package/cjs/hostComponents/RadioGroup/node.js +12 -0
- package/cjs/hostComponents/RichText/index.d.ts +12 -0
- package/cjs/hostComponents/RichText/index.js +11 -0
- package/cjs/hostComponents/RichText/node.d.ts +17 -0
- package/cjs/hostComponents/RichText/node.js +20 -0
- package/cjs/hostComponents/RootPortal/index.d.ts +20 -0
- package/cjs/hostComponents/RootPortal/index.js +8 -0
- package/cjs/hostComponents/RootPortal/node.d.ts +17 -0
- package/cjs/hostComponents/RootPortal/node.js +20 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +67 -0
- package/cjs/hostComponents/ScrollView/index.js +25 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +44 -0
- package/cjs/hostComponents/ScrollView/node.js +47 -0
- package/cjs/hostComponents/ShareElement/index.d.ts +14 -0
- package/cjs/hostComponents/ShareElement/index.js +11 -0
- package/cjs/hostComponents/ShareElement/node.d.ts +7 -0
- package/cjs/hostComponents/ShareElement/node.js +10 -0
- package/cjs/hostComponents/Slider/index.d.ts +37 -0
- package/cjs/hostComponents/Slider/index.js +22 -0
- package/cjs/hostComponents/Slider/node.d.ts +23 -0
- package/cjs/hostComponents/Slider/node.js +26 -0
- package/cjs/hostComponents/Snapshot/index.d.ts +16 -0
- package/cjs/hostComponents/Snapshot/index.js +8 -0
- package/cjs/hostComponents/Snapshot/node.d.ts +13 -0
- package/cjs/hostComponents/Snapshot/node.js +16 -0
- package/cjs/hostComponents/Swiper/index.d.ts +44 -0
- package/cjs/hostComponents/Swiper/index.js +25 -0
- package/cjs/hostComponents/Swiper/node.d.ts +27 -0
- package/cjs/hostComponents/Swiper/node.js +30 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +10 -0
- package/cjs/hostComponents/SwiperItem/index.js +8 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +9 -0
- package/cjs/hostComponents/SwiperItem/node.js +12 -0
- package/cjs/hostComponents/Switch/index.d.ts +19 -0
- package/cjs/hostComponents/Switch/index.js +14 -0
- package/cjs/hostComponents/Switch/node.d.ts +13 -0
- package/cjs/hostComponents/Switch/node.js +16 -0
- package/cjs/hostComponents/Text/index.d.ts +23 -0
- package/cjs/hostComponents/Text/index.js +13 -0
- package/cjs/hostComponents/Text/node.d.ts +13 -0
- package/cjs/hostComponents/Text/node.js +16 -0
- package/cjs/hostComponents/Textarea/index.d.ts +46 -0
- package/cjs/hostComponents/Textarea/index.js +25 -0
- package/cjs/hostComponents/Textarea/node.d.ts +37 -0
- package/cjs/hostComponents/Textarea/node.js +40 -0
- package/cjs/hostComponents/Video/index.d.ts +103 -0
- package/cjs/hostComponents/Video/index.js +60 -0
- package/cjs/hostComponents/Video/node.d.ts +56 -0
- package/cjs/hostComponents/Video/node.js +59 -0
- package/cjs/hostComponents/View/index.d.ts +28 -0
- package/cjs/hostComponents/View/index.js +14 -0
- package/cjs/hostComponents/View/node.d.ts +28 -0
- package/cjs/hostComponents/View/node.js +31 -0
- package/cjs/hostComponents/VoipRoom/index.d.ts +17 -0
- package/cjs/hostComponents/VoipRoom/index.js +13 -0
- package/cjs/hostComponents/VoipRoom/node.d.ts +7 -0
- package/cjs/hostComponents/VoipRoom/node.js +10 -0
- package/cjs/hostComponents/WebView/index.d.ts +16 -0
- package/cjs/hostComponents/WebView/index.js +8 -0
- package/cjs/hostComponents/WebView/node.d.ts +7 -0
- package/cjs/hostComponents/WebView/node.js +10 -0
- package/cjs/hostComponents/index.d.ts +53 -0
- package/cjs/hostComponents/index.js +69 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +133 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +19 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +56 -0
- package/cjs/types/component.d.ts +80 -0
- package/cjs/types/component.js +2 -0
- package/cjs/types/config.d.ts +345 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +2 -0
- package/cjs/types/index.js +17 -0
- package/esm/api/index.d.ts +281 -0
- package/esm/api/index.js +274 -0
- package/esm/hostComponents/Ad/index.d.ts +18 -0
- package/esm/hostComponents/Ad/index.js +6 -0
- package/esm/hostComponents/Ad/node.d.ts +11 -0
- package/esm/hostComponents/Ad/node.js +11 -0
- package/esm/hostComponents/AdCustom/index.d.ts +17 -0
- package/esm/hostComponents/AdCustom/index.js +6 -0
- package/esm/hostComponents/AdCustom/node.d.ts +8 -0
- package/esm/hostComponents/AdCustom/node.js +8 -0
- package/esm/hostComponents/Audio/index.d.ts +2 -0
- package/esm/hostComponents/Audio/index.js +3 -0
- package/esm/hostComponents/Audio/node.d.ts +18 -0
- package/esm/hostComponents/Audio/node.js +18 -0
- package/esm/hostComponents/Button/index.d.ts +223 -0
- package/esm/hostComponents/Button/index.js +11 -0
- package/esm/hostComponents/Button/node.d.ts +48 -0
- package/esm/hostComponents/Button/node.js +48 -0
- package/esm/hostComponents/Camera/index.d.ts +26 -0
- package/esm/hostComponents/Camera/index.js +12 -0
- package/esm/hostComponents/Camera/node.d.ts +15 -0
- package/esm/hostComponents/Camera/node.js +15 -0
- package/esm/hostComponents/Canvas/index.d.ts +16 -0
- package/esm/hostComponents/Canvas/index.js +8 -0
- package/esm/hostComponents/Canvas/node.d.ts +21 -0
- package/esm/hostComponents/Canvas/node.js +21 -0
- package/esm/hostComponents/ChannelLive/index.d.ts +26 -0
- package/esm/hostComponents/ChannelLive/index.js +9 -0
- package/esm/hostComponents/ChannelLive/node.d.ts +2 -0
- package/esm/hostComponents/ChannelLive/node.js +2 -0
- package/esm/hostComponents/ChannelVideo/index.d.ts +34 -0
- package/esm/hostComponents/ChannelVideo/index.js +13 -0
- package/esm/hostComponents/ChannelVideo/node.d.ts +4 -0
- package/esm/hostComponents/ChannelVideo/node.js +4 -0
- package/esm/hostComponents/Checkbox/index.d.ts +17 -0
- package/esm/hostComponents/Checkbox/index.js +10 -0
- package/esm/hostComponents/Checkbox/node.d.ts +13 -0
- package/esm/hostComponents/Checkbox/node.js +13 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +13 -0
- package/esm/hostComponents/CheckboxGroup/index.js +5 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +9 -0
- package/esm/hostComponents/CheckboxGroup/node.js +9 -0
- package/esm/hostComponents/CoverImage/index.d.ts +14 -0
- package/esm/hostComponents/CoverImage/index.js +5 -0
- package/esm/hostComponents/CoverImage/node.d.ts +12 -0
- package/esm/hostComponents/CoverImage/node.js +12 -0
- package/esm/hostComponents/CoverView/index.d.ts +11 -0
- package/esm/hostComponents/CoverView/index.js +5 -0
- package/esm/hostComponents/CoverView/node.d.ts +11 -0
- package/esm/hostComponents/CoverView/node.js +11 -0
- package/esm/hostComponents/Editor/index.d.ts +28 -0
- package/esm/hostComponents/Editor/index.js +11 -0
- package/esm/hostComponents/Editor/node.d.ts +17 -0
- package/esm/hostComponents/Editor/node.js +17 -0
- package/esm/hostComponents/Form/index.d.ts +16 -0
- package/esm/hostComponents/Form/index.js +9 -0
- package/esm/hostComponents/Form/node.d.ts +11 -0
- package/esm/hostComponents/Form/node.js +11 -0
- package/esm/hostComponents/FunctionalPageNavigator/index.d.ts +20 -0
- package/esm/hostComponents/FunctionalPageNavigator/index.js +8 -0
- package/esm/hostComponents/FunctionalPageNavigator/node.d.ts +8 -0
- package/esm/hostComponents/FunctionalPageNavigator/node.js +8 -0
- package/esm/hostComponents/Icon/index.d.ts +14 -0
- package/esm/hostComponents/Icon/index.js +8 -0
- package/esm/hostComponents/Icon/node.d.ts +10 -0
- package/esm/hostComponents/Icon/node.js +10 -0
- package/esm/hostComponents/Image/index.d.ts +57 -0
- package/esm/hostComponents/Image/index.js +11 -0
- package/esm/hostComponents/Image/node.d.ts +19 -0
- package/esm/hostComponents/Image/node.js +19 -0
- package/esm/hostComponents/Input/index.d.ts +138 -0
- package/esm/hostComponents/Input/index.js +22 -0
- package/esm/hostComponents/Input/node.d.ts +34 -0
- package/esm/hostComponents/Input/node.js +34 -0
- package/esm/hostComponents/KeyboardAccessory/index.d.ts +7 -0
- package/esm/hostComponents/KeyboardAccessory/index.js +5 -0
- package/esm/hostComponents/KeyboardAccessory/node.d.ts +2 -0
- package/esm/hostComponents/KeyboardAccessory/node.js +2 -0
- package/esm/hostComponents/Label/index.d.ts +10 -0
- package/esm/hostComponents/Label/index.js +5 -0
- package/esm/hostComponents/Label/node.d.ts +10 -0
- package/esm/hostComponents/Label/node.js +10 -0
- package/esm/hostComponents/LivePlayer/index.d.ts +46 -0
- package/esm/hostComponents/LivePlayer/index.js +18 -0
- package/esm/hostComponents/LivePlayer/node.d.ts +26 -0
- package/esm/hostComponents/LivePlayer/node.js +26 -0
- package/esm/hostComponents/LivePusher/index.d.ts +102 -0
- package/esm/hostComponents/LivePusher/index.js +32 -0
- package/esm/hostComponents/LivePusher/node.d.ts +43 -0
- package/esm/hostComponents/LivePusher/node.js +43 -0
- package/esm/hostComponents/Map/index.d.ts +80 -0
- package/esm/hostComponents/Map/index.js +23 -0
- package/esm/hostComponents/Map/node.d.ts +52 -0
- package/esm/hostComponents/Map/node.js +52 -0
- package/esm/hostComponents/MatchMedia/index.d.ts +22 -0
- package/esm/hostComponents/MatchMedia/index.js +5 -0
- package/esm/hostComponents/MatchMedia/node.d.ts +10 -0
- package/esm/hostComponents/MatchMedia/node.js +10 -0
- package/esm/hostComponents/MovableArea/index.d.ts +10 -0
- package/esm/hostComponents/MovableArea/index.js +8 -0
- package/esm/hostComponents/MovableArea/node.d.ts +10 -0
- package/esm/hostComponents/MovableArea/node.js +10 -0
- package/esm/hostComponents/MovableView/index.d.ts +44 -0
- package/esm/hostComponents/MovableView/index.js +18 -0
- package/esm/hostComponents/MovableView/node.d.ts +27 -0
- package/esm/hostComponents/MovableView/node.js +27 -0
- package/esm/hostComponents/NavigationBar/index.d.ts +21 -0
- package/esm/hostComponents/NavigationBar/index.js +11 -0
- package/esm/hostComponents/NavigationBar/node.d.ts +9 -0
- package/esm/hostComponents/NavigationBar/node.js +9 -0
- package/esm/hostComponents/Navigator/index.d.ts +38 -0
- package/esm/hostComponents/Navigator/index.js +14 -0
- package/esm/hostComponents/Navigator/node.d.ts +23 -0
- package/esm/hostComponents/Navigator/node.js +23 -0
- package/esm/hostComponents/OfficialAccount/index.d.ts +12 -0
- package/esm/hostComponents/OfficialAccount/index.js +5 -0
- package/esm/hostComponents/OfficialAccount/node.d.ts +5 -0
- package/esm/hostComponents/OfficialAccount/node.js +5 -0
- package/esm/hostComponents/OpenData/index.d.ts +20 -0
- package/esm/hostComponents/OpenData/index.js +8 -0
- package/esm/hostComponents/OpenData/node.d.ts +6 -0
- package/esm/hostComponents/OpenData/node.js +2 -0
- package/esm/hostComponents/PageContainer/index.d.ts +40 -0
- package/esm/hostComponents/PageContainer/index.js +14 -0
- package/esm/hostComponents/PageContainer/node.d.ts +19 -0
- package/esm/hostComponents/PageContainer/node.js +19 -0
- package/esm/hostComponents/PageMeta/index.d.ts +37 -0
- package/esm/hostComponents/PageMeta/index.js +9 -0
- package/esm/hostComponents/PageMeta/node.d.ts +17 -0
- package/esm/hostComponents/PageMeta/node.js +17 -0
- package/esm/hostComponents/Picker/index.d.ts +75 -0
- package/esm/hostComponents/Picker/index.js +13 -0
- package/esm/hostComponents/Picker/node.d.ts +23 -0
- package/esm/hostComponents/Picker/node.js +23 -0
- package/esm/hostComponents/PickerView/index.d.ts +25 -0
- package/esm/hostComponents/PickerView/index.js +5 -0
- package/esm/hostComponents/PickerView/node.d.ts +18 -0
- package/esm/hostComponents/PickerView/node.js +18 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +7 -0
- package/esm/hostComponents/PickerViewColumn/index.js +5 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/node.js +2 -0
- package/esm/hostComponents/Progress/index.d.ts +34 -0
- package/esm/hostComponents/Progress/index.js +17 -0
- package/esm/hostComponents/Progress/node.d.ts +19 -0
- package/esm/hostComponents/Progress/node.js +19 -0
- package/esm/hostComponents/Radio/index.d.ts +17 -0
- package/esm/hostComponents/Radio/index.js +10 -0
- package/esm/hostComponents/Radio/node.d.ts +12 -0
- package/esm/hostComponents/Radio/node.js +12 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +11 -0
- package/esm/hostComponents/RadioGroup/index.js +5 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +9 -0
- package/esm/hostComponents/RadioGroup/node.js +9 -0
- package/esm/hostComponents/RichText/index.d.ts +12 -0
- package/esm/hostComponents/RichText/index.js +8 -0
- package/esm/hostComponents/RichText/node.d.ts +17 -0
- package/esm/hostComponents/RichText/node.js +17 -0
- package/esm/hostComponents/RootPortal/index.d.ts +20 -0
- package/esm/hostComponents/RootPortal/index.js +5 -0
- package/esm/hostComponents/RootPortal/node.d.ts +17 -0
- package/esm/hostComponents/RootPortal/node.js +17 -0
- package/esm/hostComponents/ScrollView/index.d.ts +67 -0
- package/esm/hostComponents/ScrollView/index.js +22 -0
- package/esm/hostComponents/ScrollView/node.d.ts +44 -0
- package/esm/hostComponents/ScrollView/node.js +44 -0
- package/esm/hostComponents/ShareElement/index.d.ts +14 -0
- package/esm/hostComponents/ShareElement/index.js +8 -0
- package/esm/hostComponents/ShareElement/node.d.ts +7 -0
- package/esm/hostComponents/ShareElement/node.js +7 -0
- package/esm/hostComponents/Slider/index.d.ts +37 -0
- package/esm/hostComponents/Slider/index.js +19 -0
- package/esm/hostComponents/Slider/node.d.ts +23 -0
- package/esm/hostComponents/Slider/node.js +23 -0
- package/esm/hostComponents/Snapshot/index.d.ts +16 -0
- package/esm/hostComponents/Snapshot/index.js +5 -0
- package/esm/hostComponents/Snapshot/node.d.ts +13 -0
- package/esm/hostComponents/Snapshot/node.js +13 -0
- package/esm/hostComponents/Swiper/index.d.ts +44 -0
- package/esm/hostComponents/Swiper/index.js +22 -0
- package/esm/hostComponents/Swiper/node.d.ts +27 -0
- package/esm/hostComponents/Swiper/node.js +27 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +10 -0
- package/esm/hostComponents/SwiperItem/index.js +5 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +9 -0
- package/esm/hostComponents/SwiperItem/node.js +9 -0
- package/esm/hostComponents/Switch/index.d.ts +19 -0
- package/esm/hostComponents/Switch/index.js +11 -0
- package/esm/hostComponents/Switch/node.d.ts +13 -0
- package/esm/hostComponents/Switch/node.js +13 -0
- package/esm/hostComponents/Text/index.d.ts +23 -0
- package/esm/hostComponents/Text/index.js +10 -0
- package/esm/hostComponents/Text/node.d.ts +13 -0
- package/esm/hostComponents/Text/node.js +13 -0
- package/esm/hostComponents/Textarea/index.d.ts +46 -0
- package/esm/hostComponents/Textarea/index.js +22 -0
- package/esm/hostComponents/Textarea/node.d.ts +37 -0
- package/esm/hostComponents/Textarea/node.js +37 -0
- package/esm/hostComponents/Video/index.d.ts +103 -0
- package/esm/hostComponents/Video/index.js +54 -0
- package/esm/hostComponents/Video/node.d.ts +56 -0
- package/esm/hostComponents/Video/node.js +56 -0
- package/esm/hostComponents/View/index.d.ts +28 -0
- package/esm/hostComponents/View/index.js +11 -0
- package/esm/hostComponents/View/node.d.ts +28 -0
- package/esm/hostComponents/View/node.js +28 -0
- package/esm/hostComponents/VoipRoom/index.d.ts +17 -0
- package/esm/hostComponents/VoipRoom/index.js +10 -0
- package/esm/hostComponents/VoipRoom/node.d.ts +7 -0
- package/esm/hostComponents/VoipRoom/node.js +7 -0
- package/esm/hostComponents/WebView/index.d.ts +16 -0
- package/esm/hostComponents/WebView/index.js +5 -0
- package/esm/hostComponents/WebView/node.d.ts +7 -0
- package/esm/hostComponents/WebView/node.js +7 -0
- package/esm/hostComponents/index.d.ts +53 -0
- package/esm/hostComponents/index.js +53 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +108 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +28 -0
- package/esm/types/component.d.ts +80 -0
- package/esm/types/component.js +1 -0
- package/esm/types/config.d.ts +345 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +1 -0
- package/node.js +1 -0
- package/package.json +36 -0
- package/templates/base.ejs +55 -0
- package/templates/children.ejs +30 -0
- package/templates/component.ejs +44 -0
- package/templates/page.ejs +3 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
id: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
type: string;
|
|
7
|
+
plain: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
loading: string;
|
|
10
|
+
formType: string;
|
|
11
|
+
openType: string;
|
|
12
|
+
hoverClass: string;
|
|
13
|
+
hoverClassName: string;
|
|
14
|
+
hoverStopPropagation: string;
|
|
15
|
+
hoverStartTime: string;
|
|
16
|
+
hoverStayTime: string;
|
|
17
|
+
lang: string;
|
|
18
|
+
sessionFrom: string;
|
|
19
|
+
sendMessageTitle: string;
|
|
20
|
+
sendMessagePath: string;
|
|
21
|
+
sendMessageImg: string;
|
|
22
|
+
size: string;
|
|
23
|
+
appParameter: string;
|
|
24
|
+
appPackageName: string;
|
|
25
|
+
appBundleID: string;
|
|
26
|
+
appConnectID: string;
|
|
27
|
+
openId: string;
|
|
28
|
+
groupId: string;
|
|
29
|
+
publicId: string;
|
|
30
|
+
shareType: string;
|
|
31
|
+
shareMode: string;
|
|
32
|
+
shareMessageFriendInfo: string;
|
|
33
|
+
shareMessageTitle: string;
|
|
34
|
+
shareMessageImg: string;
|
|
35
|
+
showMessageCard: string;
|
|
36
|
+
onGetUserInfo: string;
|
|
37
|
+
onContact: string;
|
|
38
|
+
onGetPhoneNumber: string;
|
|
39
|
+
onError: string;
|
|
40
|
+
onOpenSetting: string;
|
|
41
|
+
onLaunchApp: string;
|
|
42
|
+
onAddFriend: string;
|
|
43
|
+
onAddGroupApp: string;
|
|
44
|
+
onChooseAvatar: string;
|
|
45
|
+
onTap: string;
|
|
46
|
+
onClick: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
className: 'class',
|
|
3
|
+
id: 'id',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
type: 'type',
|
|
7
|
+
plain: 'plain',
|
|
8
|
+
disabled: 'disabled',
|
|
9
|
+
loading: 'loading',
|
|
10
|
+
formType: 'form-type',
|
|
11
|
+
openType: 'open-type',
|
|
12
|
+
hoverClass: 'hover-class',
|
|
13
|
+
hoverClassName: 'hover-class',
|
|
14
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
15
|
+
hoverStartTime: 'hover-start-time',
|
|
16
|
+
hoverStayTime: 'hover-stay-time',
|
|
17
|
+
lang: 'lang',
|
|
18
|
+
sessionFrom: 'session-from',
|
|
19
|
+
sendMessageTitle: 'send-message-title',
|
|
20
|
+
sendMessagePath: 'send-message-path',
|
|
21
|
+
sendMessageImg: 'send-message-img',
|
|
22
|
+
size: 'size',
|
|
23
|
+
appParameter: 'app-parameter',
|
|
24
|
+
appPackageName: 'app-packagename',
|
|
25
|
+
appBundleID: 'app-bundleid',
|
|
26
|
+
appConnectID: 'app-connect-id',
|
|
27
|
+
openId: 'open-id',
|
|
28
|
+
groupId: 'group-id',
|
|
29
|
+
publicId: 'public-id',
|
|
30
|
+
shareType: 'share-type',
|
|
31
|
+
shareMode: 'share-mode',
|
|
32
|
+
shareMessageFriendInfo: 'share-message-friend-info',
|
|
33
|
+
shareMessageTitle: 'share-message-title',
|
|
34
|
+
shareMessageImg: 'share-message-img',
|
|
35
|
+
showMessageCard: 'show-message-card',
|
|
36
|
+
onGetUserInfo: 'bindgetuserinfo',
|
|
37
|
+
onContact: 'bindcontact',
|
|
38
|
+
onGetPhoneNumber: 'bindgetphonenumber',
|
|
39
|
+
onError: 'binderror',
|
|
40
|
+
onOpenSetting: 'bindopensetting',
|
|
41
|
+
onLaunchApp: 'bindlaunchapp',
|
|
42
|
+
onAddFriend: 'bindaddfriend',
|
|
43
|
+
onAddGroupApp: 'bindaddgroupapp',
|
|
44
|
+
onChooseAvatar: 'bindchooseavatar',
|
|
45
|
+
onTap: 'bindtap',
|
|
46
|
+
onClick: 'bindtap',
|
|
47
|
+
};
|
|
48
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface CameraProps extends BaseProps {
|
|
4
|
+
/** (default: normal) 应用模式,只在初始化时有效,不能动态变更 2.1.0 */
|
|
5
|
+
mode?: 'normal' | 'scanCode';
|
|
6
|
+
/** 分辨率,不支持动态修改 2.10.0 */
|
|
7
|
+
resolution?: 'low' | 'medium' | 'high';
|
|
8
|
+
/** (default: back) 摄像头朝向 1.0.0 */
|
|
9
|
+
devicePosition?: 'front' | 'back';
|
|
10
|
+
/** (default: auto) 闪光灯,值为auto, on, off 1.0.0 */
|
|
11
|
+
flash?: 'auto' | 'on' | 'off' | 'torch';
|
|
12
|
+
/** (default: medium) 指定期望的相机帧数据尺寸 2.7.0 */
|
|
13
|
+
frameSize?: 'small' | 'medium' | 'large';
|
|
14
|
+
/** 摄像头在非正常终止时触发,如退出后台等情况 1.0.0 */
|
|
15
|
+
onStop?: (event: GenericEvent) => any;
|
|
16
|
+
/** 用户不允许使用摄像头时触发 1.0.0 */
|
|
17
|
+
onError?: (event: GenericEvent) => any;
|
|
18
|
+
/** 相机初始化完成时触发 2.7.0 */
|
|
19
|
+
onInitDone?: (event: GenericEvent) => any;
|
|
20
|
+
/** 在扫码识别成功时触发,仅在 mode="scanCode" 时生效 2.1.0 */
|
|
21
|
+
onScanCode?: (event: GenericEvent) => any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
25
|
+
*/
|
|
26
|
+
export declare const Camera: React.ComponentType<CameraProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/camera.html
|
|
4
|
+
*/
|
|
5
|
+
export const Camera = createHostComponent('camera');
|
|
6
|
+
Camera.defaultProps = {
|
|
7
|
+
mode: 'normal',
|
|
8
|
+
resolution: 'medium',
|
|
9
|
+
devicePosition: 'back',
|
|
10
|
+
flash: 'auto',
|
|
11
|
+
frameSize: 'medium',
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
mode: string;
|
|
7
|
+
devicePosition: string;
|
|
8
|
+
flash: string;
|
|
9
|
+
frameSize: string;
|
|
10
|
+
onStop: string;
|
|
11
|
+
onError: string;
|
|
12
|
+
onInitDone: string;
|
|
13
|
+
onScanCode: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
mode: 'mode',
|
|
7
|
+
devicePosition: 'device-position',
|
|
8
|
+
flash: 'flash',
|
|
9
|
+
frameSize: 'frame-size',
|
|
10
|
+
onStop: 'bindstop',
|
|
11
|
+
onError: 'binderror',
|
|
12
|
+
onInitDone: 'bindinitdone',
|
|
13
|
+
onScanCode: 'bindscancode',
|
|
14
|
+
};
|
|
15
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface CanvasProps extends BaseProps {
|
|
4
|
+
/** 指定 canvas 类型,当前仅支持 webgl 2.7.0 */
|
|
5
|
+
type?: string;
|
|
6
|
+
/** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性 1.0.0 */
|
|
7
|
+
canvasId?: string;
|
|
8
|
+
/** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新 1.0.0 */
|
|
9
|
+
disableScroll?: boolean;
|
|
10
|
+
/** 当发生错误时触发 error 事件,detail = {errMsg} 1.0.0 */
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html
|
|
15
|
+
*/
|
|
16
|
+
export declare const Canvas: React.ComponentType<CanvasProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
style: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
className: string;
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
disableScroll: string;
|
|
9
|
+
type: string;
|
|
10
|
+
canvasId: string;
|
|
11
|
+
onTouchStart: string;
|
|
12
|
+
onTouchMove: string;
|
|
13
|
+
onTouchEnd: string;
|
|
14
|
+
onTouchCancel: string;
|
|
15
|
+
onLongTap: string;
|
|
16
|
+
onLongClick: string;
|
|
17
|
+
onTap: string;
|
|
18
|
+
onClick: string;
|
|
19
|
+
onError: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
style: 'style',
|
|
4
|
+
animation: 'animation',
|
|
5
|
+
className: 'class',
|
|
6
|
+
width: 'width',
|
|
7
|
+
height: 'height',
|
|
8
|
+
disableScroll: 'disable-scroll',
|
|
9
|
+
type: 'type',
|
|
10
|
+
canvasId: 'canvas-id',
|
|
11
|
+
onTouchStart: 'bindtouchstart',
|
|
12
|
+
onTouchMove: 'bindtouchmove',
|
|
13
|
+
onTouchEnd: 'bindtouchend',
|
|
14
|
+
onTouchCancel: 'bindtouchcancel',
|
|
15
|
+
onLongTap: 'bindlongtap',
|
|
16
|
+
onLongClick: 'bindlongtap',
|
|
17
|
+
onTap: 'bindtap',
|
|
18
|
+
onClick: 'bindtap',
|
|
19
|
+
onError: 'binderror',
|
|
20
|
+
};
|
|
21
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/channel-live.html
|
|
5
|
+
*
|
|
6
|
+
* 基础库 2.29.0 开始支持,低版本需做兼容处理。
|
|
7
|
+
*
|
|
8
|
+
* 微信 Windows 版:支持
|
|
9
|
+
* 微信 Mac 版:支持
|
|
10
|
+
*
|
|
11
|
+
* 相关文档: 视频号直播
|
|
12
|
+
*
|
|
13
|
+
* 渲染框架支持情况:Skyline (使用最新 Nighly 工具调试)、WebView
|
|
14
|
+
*
|
|
15
|
+
* 功能描述
|
|
16
|
+
* 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface ChannelLiveProps extends BaseProps {
|
|
20
|
+
feedId?: string;
|
|
21
|
+
finderUserName?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
25
|
+
*/
|
|
26
|
+
export declare const ChannelLive: React.ComponentType<ChannelLiveProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
4
|
+
*/
|
|
5
|
+
export const ChannelLive = createHostComponent('channel-live');
|
|
6
|
+
ChannelLive.defaultProps = {
|
|
7
|
+
feedId: '',
|
|
8
|
+
finderUserName: '',
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/channel-video.html
|
|
5
|
+
*
|
|
6
|
+
* 基础库 2.25.1 开始支持,低版本需做兼容处理。
|
|
7
|
+
*
|
|
8
|
+
* 微信 Windows 版:支持
|
|
9
|
+
*
|
|
10
|
+
* 微信 Mac 版:支持
|
|
11
|
+
*
|
|
12
|
+
* 相关文档: 视频号视频
|
|
13
|
+
*
|
|
14
|
+
* 渲染框架支持情况:Skyline (使用最新 Nighly 工具调试)、WebView
|
|
15
|
+
*
|
|
16
|
+
* 功能描述
|
|
17
|
+
* 小程序内嵌视频号视频组件,支持在小程序中播放视频号视频,并无弹窗跳转至视频号。注意:
|
|
18
|
+
*
|
|
19
|
+
* 若小程序与内嵌视频号视频为同主体,则内嵌视频号视频可支持自动播放;
|
|
20
|
+
* 基础库 2.31.1 起,对于非个人主体小程序,若小程序于内嵌视频号视频非同主体,则内嵌视频号视频不可自动播放,即强制 autoplay=false。
|
|
21
|
+
*/
|
|
22
|
+
export interface ChannelVideoProps extends BaseProps {
|
|
23
|
+
feedId?: string;
|
|
24
|
+
finderUserName?: string;
|
|
25
|
+
feedToken?: string;
|
|
26
|
+
autoplay?: boolean;
|
|
27
|
+
loop?: boolean;
|
|
28
|
+
muted?: 'contain' | 'fill' | 'cover';
|
|
29
|
+
objectFit?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
33
|
+
*/
|
|
34
|
+
export declare const ChannelVideo: React.ComponentType<ChannelVideoProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
4
|
+
*/
|
|
5
|
+
export const ChannelVideo = createHostComponent('channel-live');
|
|
6
|
+
ChannelVideo.defaultProps = {
|
|
7
|
+
feedId: '',
|
|
8
|
+
finderUserName: '',
|
|
9
|
+
feedToken: '',
|
|
10
|
+
autoplay: true,
|
|
11
|
+
loop: false,
|
|
12
|
+
muted: 'contain',
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface CheckboxProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
/** checkbox标识,选中时触发checkbox-group的 change 事件,并携带 checkbox 的 value 1.0.0 */
|
|
6
|
+
value?: string;
|
|
7
|
+
/** 是否禁用 1.0.0 */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** 当前是否选中,可用来设置默认选中 1.0.0 */
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/** (default: #09BB07) checkbox的颜色,同css的color 1.0.0 */
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
16
|
+
*/
|
|
17
|
+
export declare const Checkbox: React.ComponentType<CheckboxProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
4
|
+
*/
|
|
5
|
+
export const Checkbox = createHostComponent('checkbox');
|
|
6
|
+
Checkbox.defaultProps = {
|
|
7
|
+
disabled: false,
|
|
8
|
+
checked: false,
|
|
9
|
+
color: '#09bb07',
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
className: string;
|
|
5
|
+
style: string;
|
|
6
|
+
animation: string;
|
|
7
|
+
value: string;
|
|
8
|
+
checked: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
onChange: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
name: 'name',
|
|
4
|
+
className: 'class',
|
|
5
|
+
style: 'style',
|
|
6
|
+
animation: 'animation',
|
|
7
|
+
value: 'value',
|
|
8
|
+
checked: 'checked',
|
|
9
|
+
disabled: 'disabled',
|
|
10
|
+
onChange: 'bindchange',
|
|
11
|
+
color: 'color',
|
|
12
|
+
};
|
|
13
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface CheckboxGroupProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
/**
|
|
6
|
+
* checkbox-group 中选中项发生改变时触发 change 事件,detail = {value:[选中的checkbox的value的数组]} 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
onChange?: (event: GenericEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox-group.html
|
|
12
|
+
*/
|
|
13
|
+
export declare const CheckboxGroup: React.ComponentType<CheckboxGroupProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface CoverImageProps extends BaseProps {
|
|
4
|
+
/** 图标路径,支持临时路径、网络地址(1.6.0起支持)、云文件ID(2.2.3起支持)。暂不支持base64格式。 1.4.0 */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** 图片加载成功时触发 2.1.0 */
|
|
7
|
+
onLoad?: (event: GenericEvent) => any;
|
|
8
|
+
/** 图片加载失败时触发 2.1.0 */
|
|
9
|
+
onError?: (event: GenericEvent) => any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html
|
|
13
|
+
*/
|
|
14
|
+
export declare const CoverImage: React.ComponentType<CoverImageProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface CoverViewProps extends BaseProps {
|
|
4
|
+
/** 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效 2.1.0 */
|
|
5
|
+
scrollTop?: number | string;
|
|
6
|
+
markerId?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html
|
|
10
|
+
*/
|
|
11
|
+
export declare const CoverView: React.ComponentType<CoverViewProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface EditorProps extends BaseProps {
|
|
4
|
+
/** 设置编辑器为只读 2.7.0 */
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
/** 提示信息 2.7.0 */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** 点击图片时显示图片大小控件 2.7.0 */
|
|
9
|
+
showImgSize?: boolean;
|
|
10
|
+
/** 点击图片时显示工具栏控件 2.7.0 */
|
|
11
|
+
showImgToolbar?: boolean;
|
|
12
|
+
/** 点击图片时显示修改尺寸控件 2.7.0 */
|
|
13
|
+
showImgResize?: boolean;
|
|
14
|
+
/** 编辑器初始化完成时触发 2.7.0 */
|
|
15
|
+
onReady?: (event: GenericEvent) => any;
|
|
16
|
+
/** 编辑器聚焦时触发,event.detail = {html, text, delta} 2.7.0 */
|
|
17
|
+
onFocus?: (event: GenericEvent) => any;
|
|
18
|
+
/** 编辑器失去焦点时触发,detail = {html, text, delta} 2.7.0 */
|
|
19
|
+
onBlur?: (event: GenericEvent) => any;
|
|
20
|
+
/** 编辑器内容改变时触发,detail = {html, text, delta} 2.7.0 */
|
|
21
|
+
onInput?: (event: GenericEvent) => any;
|
|
22
|
+
/** 通过 Context 方法改变编辑器内样式时触发,返回选区已设置的样式 2.7.0 */
|
|
23
|
+
onStatusChange?: (event: GenericEvent) => any;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/editor.html
|
|
27
|
+
*/
|
|
28
|
+
export declare const Editor: React.ComponentType<EditorProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/editor.html
|
|
4
|
+
*/
|
|
5
|
+
export const Editor = createHostComponent('editor');
|
|
6
|
+
Editor.defaultProps = {
|
|
7
|
+
readOnly: false,
|
|
8
|
+
showImgSize: false,
|
|
9
|
+
showImgToolbar: false,
|
|
10
|
+
showImgResize: false,
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
readOnly: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
showImgSize: string;
|
|
9
|
+
showImgToolbar: string;
|
|
10
|
+
showImgResize: string;
|
|
11
|
+
onReady: string;
|
|
12
|
+
onFocus: string;
|
|
13
|
+
onBlur: string;
|
|
14
|
+
onInput: string;
|
|
15
|
+
onStatusChange: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
readOnly: 'read-only',
|
|
7
|
+
placeholder: 'placeholder',
|
|
8
|
+
showImgSize: 'show-img-size',
|
|
9
|
+
showImgToolbar: 'show-img-toolbar',
|
|
10
|
+
showImgResize: 'show-img-resize',
|
|
11
|
+
onReady: 'bindready',
|
|
12
|
+
onFocus: 'bindfocus',
|
|
13
|
+
onBlur: 'bindblur',
|
|
14
|
+
onInput: 'bindinput',
|
|
15
|
+
onStatusChange: 'bindstatuschange',
|
|
16
|
+
};
|
|
17
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface FormProps extends BaseProps {
|
|
4
|
+
/** 是否返回 formId 用于发送模板消息 1.0.0 */
|
|
5
|
+
reportSubmit?: boolean;
|
|
6
|
+
/** (default: 0) 等待一段时间(毫秒数)以确认 formId 是否生效。如果未指定这个参数,formId 有很小的概率是无效的(如遇到网络失败的情况)。指定这个参数将可以检测 formId 是否有效,以这个参数的时间作为这项检测的超时时间。如果失败,将返回 requestFormId:fail 开头的 formId 2.6.2 */
|
|
7
|
+
reportSubmitTimeout?: number;
|
|
8
|
+
/** 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''} 1.0.0 */
|
|
9
|
+
onSubmit?: (event: GenericEvent) => any;
|
|
10
|
+
/** 表单重置时会触发 reset 事件 1.0.0 */
|
|
11
|
+
onReset?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/form.html
|
|
15
|
+
*/
|
|
16
|
+
export declare const Form: React.ComponentType<FormProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/form.html
|
|
4
|
+
*/
|
|
5
|
+
export const Form = createHostComponent('form');
|
|
6
|
+
Form.defaultProps = {
|
|
7
|
+
reportSubmit: false,
|
|
8
|
+
reportSubmitTimeout: 0,
|
|
9
|
+
};
|