@rsmax/ali 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.d.ts +2765 -0
- package/cjs/api.js +199 -0
- package/cjs/hostComponents/Button/index.d.ts +27 -0
- package/cjs/hostComponents/Button/index.js +5 -0
- package/cjs/hostComponents/Button/node.d.ts +25 -0
- package/cjs/hostComponents/Button/node.js +29 -0
- package/cjs/hostComponents/Camera/index.d.ts +18 -0
- package/cjs/hostComponents/Camera/index.js +5 -0
- package/cjs/hostComponents/Camera/node.d.ts +17 -0
- package/cjs/hostComponents/Camera/node.js +21 -0
- package/cjs/hostComponents/Canvas/index.d.ts +19 -0
- package/cjs/hostComponents/Canvas/index.js +5 -0
- package/cjs/hostComponents/Canvas/node.d.ts +19 -0
- package/cjs/hostComponents/Canvas/node.js +23 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +12 -0
- package/cjs/hostComponents/Checkbox/index.js +5 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +12 -0
- package/cjs/hostComponents/Checkbox/node.js +16 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +9 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
- package/cjs/hostComponents/ContactButton/index.d.ts +11 -0
- package/cjs/hostComponents/ContactButton/index.js +5 -0
- package/cjs/hostComponents/ContactButton/node.d.ts +12 -0
- package/cjs/hostComponents/ContactButton/node.js +16 -0
- package/cjs/hostComponents/CoverImage/index.d.ts +9 -0
- package/cjs/hostComponents/CoverImage/index.js +5 -0
- package/cjs/hostComponents/CoverImage/node.d.ts +9 -0
- package/cjs/hostComponents/CoverImage/node.js +13 -0
- package/cjs/hostComponents/CoverView/index.d.ts +8 -0
- package/cjs/hostComponents/CoverView/index.js +5 -0
- package/cjs/hostComponents/CoverView/node.d.ts +8 -0
- package/cjs/hostComponents/CoverView/node.js +12 -0
- package/cjs/hostComponents/Form/index.d.ts +10 -0
- package/cjs/hostComponents/Form/index.js +5 -0
- package/cjs/hostComponents/Form/node.d.ts +9 -0
- package/cjs/hostComponents/Form/node.js +13 -0
- package/cjs/hostComponents/Icon/index.d.ts +10 -0
- package/cjs/hostComponents/Icon/index.js +5 -0
- package/cjs/hostComponents/Icon/node.d.ts +9 -0
- package/cjs/hostComponents/Icon/node.js +13 -0
- package/cjs/hostComponents/Image/index.d.ts +20 -0
- package/cjs/hostComponents/Image/index.js +5 -0
- package/cjs/hostComponents/Image/node.d.ts +17 -0
- package/cjs/hostComponents/Image/node.js +21 -0
- package/cjs/hostComponents/Input/index.d.ts +30 -0
- package/cjs/hostComponents/Input/index.js +5 -0
- package/cjs/hostComponents/Input/node.d.ts +29 -0
- package/cjs/hostComponents/Input/node.js +33 -0
- package/cjs/hostComponents/Label/index.d.ts +8 -0
- package/cjs/hostComponents/Label/index.js +5 -0
- package/cjs/hostComponents/Label/node.d.ts +7 -0
- package/cjs/hostComponents/Label/node.js +11 -0
- package/cjs/hostComponents/Lifestyle/index.d.ts +7 -0
- package/cjs/hostComponents/Lifestyle/index.js +5 -0
- package/cjs/hostComponents/Lifestyle/node.d.ts +5 -0
- package/cjs/hostComponents/Lifestyle/node.js +9 -0
- package/cjs/hostComponents/Lottie/index.d.ts +23 -0
- package/cjs/hostComponents/Lottie/index.js +5 -0
- package/cjs/hostComponents/Lottie/node.d.ts +22 -0
- package/cjs/hostComponents/Lottie/node.js +26 -0
- package/cjs/hostComponents/Map/index.d.ts +127 -0
- package/cjs/hostComponents/Map/index.js +5 -0
- package/cjs/hostComponents/Map/node.d.ts +29 -0
- package/cjs/hostComponents/Map/node.js +33 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/index.js +5 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +8 -0
- package/cjs/hostComponents/MovableArea/node.js +12 -0
- package/cjs/hostComponents/MovableView/index.d.ts +30 -0
- package/cjs/hostComponents/MovableView/index.js +5 -0
- package/cjs/hostComponents/MovableView/node.d.ts +26 -0
- package/cjs/hostComponents/MovableView/node.js +30 -0
- package/cjs/hostComponents/Navigator/index.d.ts +12 -0
- package/cjs/hostComponents/Navigator/index.js +5 -0
- package/cjs/hostComponents/Navigator/node.d.ts +12 -0
- package/cjs/hostComponents/Navigator/node.js +16 -0
- package/cjs/hostComponents/Picker/index.d.ts +13 -0
- package/cjs/hostComponents/Picker/index.js +5 -0
- package/cjs/hostComponents/Picker/node.d.ts +12 -0
- package/cjs/hostComponents/Picker/node.js +16 -0
- package/cjs/hostComponents/PickerView/index.d.ts +14 -0
- package/cjs/hostComponents/PickerView/index.js +5 -0
- package/cjs/hostComponents/PickerView/node.d.ts +15 -0
- package/cjs/hostComponents/PickerView/node.js +19 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +5 -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 +13 -0
- package/cjs/hostComponents/Progress/index.js +5 -0
- package/cjs/hostComponents/Progress/node.d.ts +12 -0
- package/cjs/hostComponents/Progress/node.js +16 -0
- package/cjs/hostComponents/Radio/index.d.ts +12 -0
- package/cjs/hostComponents/Radio/index.js +5 -0
- package/cjs/hostComponents/Radio/node.d.ts +11 -0
- package/cjs/hostComponents/Radio/node.js +15 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +9 -0
- package/cjs/hostComponents/RadioGroup/index.js +5 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +8 -0
- package/cjs/hostComponents/RadioGroup/node.js +12 -0
- package/cjs/hostComponents/RichText/index.d.ts +12 -0
- package/cjs/hostComponents/RichText/index.js +5 -0
- package/cjs/hostComponents/RichText/node.d.ts +15 -0
- package/cjs/hostComponents/RichText/node.js +19 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +28 -0
- package/cjs/hostComponents/ScrollView/index.js +5 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +26 -0
- package/cjs/hostComponents/ScrollView/node.js +30 -0
- package/cjs/hostComponents/Slider/index.d.ts +21 -0
- package/cjs/hostComponents/Slider/index.js +5 -0
- package/cjs/hostComponents/Slider/node.d.ts +20 -0
- package/cjs/hostComponents/Slider/node.js +24 -0
- package/cjs/hostComponents/Swiper/index.d.ts +27 -0
- package/cjs/hostComponents/Swiper/index.js +5 -0
- package/cjs/hostComponents/Swiper/node.d.ts +27 -0
- package/cjs/hostComponents/Swiper/node.js +31 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +9 -0
- package/cjs/hostComponents/SwiperItem/index.js +5 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +7 -0
- package/cjs/hostComponents/SwiperItem/node.js +11 -0
- package/cjs/hostComponents/Switch/index.d.ts +12 -0
- package/cjs/hostComponents/Switch/index.js +5 -0
- package/cjs/hostComponents/Switch/node.d.ts +12 -0
- package/cjs/hostComponents/Switch/node.js +16 -0
- package/cjs/hostComponents/Text/index.d.ts +15 -0
- package/cjs/hostComponents/Text/index.js +5 -0
- package/cjs/hostComponents/Text/node.d.ts +12 -0
- package/cjs/hostComponents/Text/node.js +16 -0
- package/cjs/hostComponents/Textarea/index.d.ts +23 -0
- package/cjs/hostComponents/Textarea/index.js +5 -0
- package/cjs/hostComponents/Textarea/node.d.ts +23 -0
- package/cjs/hostComponents/Textarea/node.js +27 -0
- package/cjs/hostComponents/Video/index.d.ts +33 -0
- package/cjs/hostComponents/Video/index.js +5 -0
- package/cjs/hostComponents/Video/node.d.ts +33 -0
- package/cjs/hostComponents/Video/node.js +37 -0
- package/cjs/hostComponents/View/index.d.ts +33 -0
- package/cjs/hostComponents/View/index.js +5 -0
- package/cjs/hostComponents/View/node.d.ts +29 -0
- package/cjs/hostComponents/View/node.js +33 -0
- package/cjs/hostComponents/WebView/index.d.ts +8 -0
- package/cjs/hostComponents/WebView/index.js +5 -0
- package/cjs/hostComponents/WebView/node.d.ts +6 -0
- package/cjs/hostComponents/WebView/node.js +6 -0
- package/cjs/hostComponents/index.d.ts +36 -0
- package/cjs/hostComponents/index.js +52 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +99 -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 +62 -0
- package/cjs/types/config.d.ts +151 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/index.js +17 -0
- package/esm/api.d.ts +2765 -0
- package/esm/api.js +193 -0
- package/esm/hostComponents/Button/index.d.ts +27 -0
- package/esm/hostComponents/Button/index.js +2 -0
- package/esm/hostComponents/Button/node.d.ts +25 -0
- package/esm/hostComponents/Button/node.js +26 -0
- package/esm/hostComponents/Camera/index.d.ts +18 -0
- package/esm/hostComponents/Camera/index.js +2 -0
- package/esm/hostComponents/Camera/node.d.ts +17 -0
- package/esm/hostComponents/Camera/node.js +18 -0
- package/esm/hostComponents/Canvas/index.d.ts +19 -0
- package/esm/hostComponents/Canvas/index.js +2 -0
- package/esm/hostComponents/Canvas/node.d.ts +19 -0
- package/esm/hostComponents/Canvas/node.js +20 -0
- package/esm/hostComponents/Checkbox/index.d.ts +12 -0
- package/esm/hostComponents/Checkbox/index.js +2 -0
- package/esm/hostComponents/Checkbox/node.d.ts +12 -0
- package/esm/hostComponents/Checkbox/node.js +13 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +9 -0
- package/esm/hostComponents/CheckboxGroup/index.js +2 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/esm/hostComponents/CheckboxGroup/node.js +9 -0
- package/esm/hostComponents/ContactButton/index.d.ts +11 -0
- package/esm/hostComponents/ContactButton/index.js +2 -0
- package/esm/hostComponents/ContactButton/node.d.ts +12 -0
- package/esm/hostComponents/ContactButton/node.js +13 -0
- package/esm/hostComponents/CoverImage/index.d.ts +9 -0
- package/esm/hostComponents/CoverImage/index.js +2 -0
- package/esm/hostComponents/CoverImage/node.d.ts +9 -0
- package/esm/hostComponents/CoverImage/node.js +10 -0
- package/esm/hostComponents/CoverView/index.d.ts +8 -0
- package/esm/hostComponents/CoverView/index.js +2 -0
- package/esm/hostComponents/CoverView/node.d.ts +8 -0
- package/esm/hostComponents/CoverView/node.js +9 -0
- package/esm/hostComponents/Form/index.d.ts +10 -0
- package/esm/hostComponents/Form/index.js +2 -0
- package/esm/hostComponents/Form/node.d.ts +9 -0
- package/esm/hostComponents/Form/node.js +10 -0
- package/esm/hostComponents/Icon/index.d.ts +10 -0
- package/esm/hostComponents/Icon/index.js +2 -0
- package/esm/hostComponents/Icon/node.d.ts +9 -0
- package/esm/hostComponents/Icon/node.js +10 -0
- package/esm/hostComponents/Image/index.d.ts +20 -0
- package/esm/hostComponents/Image/index.js +2 -0
- package/esm/hostComponents/Image/node.d.ts +17 -0
- package/esm/hostComponents/Image/node.js +18 -0
- package/esm/hostComponents/Input/index.d.ts +30 -0
- package/esm/hostComponents/Input/index.js +2 -0
- package/esm/hostComponents/Input/node.d.ts +29 -0
- package/esm/hostComponents/Input/node.js +30 -0
- package/esm/hostComponents/Label/index.d.ts +8 -0
- package/esm/hostComponents/Label/index.js +2 -0
- package/esm/hostComponents/Label/node.d.ts +7 -0
- package/esm/hostComponents/Label/node.js +8 -0
- package/esm/hostComponents/Lifestyle/index.d.ts +7 -0
- package/esm/hostComponents/Lifestyle/index.js +2 -0
- package/esm/hostComponents/Lifestyle/node.d.ts +5 -0
- package/esm/hostComponents/Lifestyle/node.js +6 -0
- package/esm/hostComponents/Lottie/index.d.ts +23 -0
- package/esm/hostComponents/Lottie/index.js +2 -0
- package/esm/hostComponents/Lottie/node.d.ts +22 -0
- package/esm/hostComponents/Lottie/node.js +23 -0
- package/esm/hostComponents/Map/index.d.ts +127 -0
- package/esm/hostComponents/Map/index.js +2 -0
- package/esm/hostComponents/Map/node.d.ts +29 -0
- package/esm/hostComponents/Map/node.js +30 -0
- package/esm/hostComponents/MovableArea/index.d.ts +10 -0
- package/esm/hostComponents/MovableArea/index.js +2 -0
- package/esm/hostComponents/MovableArea/node.d.ts +8 -0
- package/esm/hostComponents/MovableArea/node.js +9 -0
- package/esm/hostComponents/MovableView/index.d.ts +30 -0
- package/esm/hostComponents/MovableView/index.js +2 -0
- package/esm/hostComponents/MovableView/node.d.ts +26 -0
- package/esm/hostComponents/MovableView/node.js +27 -0
- package/esm/hostComponents/Navigator/index.d.ts +12 -0
- package/esm/hostComponents/Navigator/index.js +2 -0
- package/esm/hostComponents/Navigator/node.d.ts +12 -0
- package/esm/hostComponents/Navigator/node.js +13 -0
- package/esm/hostComponents/Picker/index.d.ts +13 -0
- package/esm/hostComponents/Picker/index.js +2 -0
- package/esm/hostComponents/Picker/node.d.ts +12 -0
- package/esm/hostComponents/Picker/node.js +13 -0
- package/esm/hostComponents/PickerView/index.d.ts +14 -0
- package/esm/hostComponents/PickerView/index.js +2 -0
- package/esm/hostComponents/PickerView/node.d.ts +15 -0
- package/esm/hostComponents/PickerView/node.js +16 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/index.js +2 -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 +13 -0
- package/esm/hostComponents/Progress/index.js +2 -0
- package/esm/hostComponents/Progress/node.d.ts +12 -0
- package/esm/hostComponents/Progress/node.js +13 -0
- package/esm/hostComponents/Radio/index.d.ts +12 -0
- package/esm/hostComponents/Radio/index.js +2 -0
- package/esm/hostComponents/Radio/node.d.ts +11 -0
- package/esm/hostComponents/Radio/node.js +12 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +9 -0
- package/esm/hostComponents/RadioGroup/index.js +2 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +8 -0
- package/esm/hostComponents/RadioGroup/node.js +9 -0
- package/esm/hostComponents/RichText/index.d.ts +12 -0
- package/esm/hostComponents/RichText/index.js +2 -0
- package/esm/hostComponents/RichText/node.d.ts +15 -0
- package/esm/hostComponents/RichText/node.js +16 -0
- package/esm/hostComponents/ScrollView/index.d.ts +28 -0
- package/esm/hostComponents/ScrollView/index.js +2 -0
- package/esm/hostComponents/ScrollView/node.d.ts +26 -0
- package/esm/hostComponents/ScrollView/node.js +27 -0
- package/esm/hostComponents/Slider/index.d.ts +21 -0
- package/esm/hostComponents/Slider/index.js +2 -0
- package/esm/hostComponents/Slider/node.d.ts +20 -0
- package/esm/hostComponents/Slider/node.js +21 -0
- package/esm/hostComponents/Swiper/index.d.ts +27 -0
- package/esm/hostComponents/Swiper/index.js +2 -0
- package/esm/hostComponents/Swiper/node.d.ts +27 -0
- package/esm/hostComponents/Swiper/node.js +28 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +9 -0
- package/esm/hostComponents/SwiperItem/index.js +2 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +7 -0
- package/esm/hostComponents/SwiperItem/node.js +8 -0
- package/esm/hostComponents/Switch/index.d.ts +12 -0
- package/esm/hostComponents/Switch/index.js +2 -0
- package/esm/hostComponents/Switch/node.d.ts +12 -0
- package/esm/hostComponents/Switch/node.js +13 -0
- package/esm/hostComponents/Text/index.d.ts +15 -0
- package/esm/hostComponents/Text/index.js +2 -0
- package/esm/hostComponents/Text/node.d.ts +12 -0
- package/esm/hostComponents/Text/node.js +13 -0
- package/esm/hostComponents/Textarea/index.d.ts +23 -0
- package/esm/hostComponents/Textarea/index.js +2 -0
- package/esm/hostComponents/Textarea/node.d.ts +23 -0
- package/esm/hostComponents/Textarea/node.js +24 -0
- package/esm/hostComponents/Video/index.d.ts +33 -0
- package/esm/hostComponents/Video/index.js +2 -0
- package/esm/hostComponents/Video/node.d.ts +33 -0
- package/esm/hostComponents/Video/node.js +34 -0
- package/esm/hostComponents/View/index.d.ts +33 -0
- package/esm/hostComponents/View/index.js +2 -0
- package/esm/hostComponents/View/node.d.ts +29 -0
- package/esm/hostComponents/View/node.js +30 -0
- package/esm/hostComponents/WebView/index.d.ts +8 -0
- package/esm/hostComponents/WebView/index.js +2 -0
- package/esm/hostComponents/WebView/node.d.ts +6 -0
- package/esm/hostComponents/WebView/node.js +3 -0
- package/esm/hostComponents/index.d.ts +36 -0
- package/esm/hostComponents/index.js +36 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +74 -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 +34 -0
- package/esm/types/config.d.ts +151 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/types/index.js +1 -0
- package/node.js +1 -0
- package/package.json +35 -0
- package/templates/default/base.ejs +25 -0
- package/templates/default/component.ejs +67 -0
- package/templates/default/page.ejs +32 -0
- package/templates/static/additional-host-component.ejs +9 -0
- package/templates/static/host-components/block.ejs +5 -0
- package/templates/static/host-components/button.ejs +7 -0
- package/templates/static/host-components/camera.ejs +7 -0
- package/templates/static/host-components/canvas.ejs +7 -0
- package/templates/static/host-components/checkbox-group.ejs +7 -0
- package/templates/static/host-components/checkbox.ejs +7 -0
- package/templates/static/host-components/contact-button.ejs +7 -0
- package/templates/static/host-components/cover-image.ejs +7 -0
- package/templates/static/host-components/cover-view.ejs +7 -0
- package/templates/static/host-components/form.ejs +7 -0
- package/templates/static/host-components/icon.ejs +7 -0
- package/templates/static/host-components/image.ejs +7 -0
- package/templates/static/host-components/input.ejs +7 -0
- package/templates/static/host-components/label.ejs +7 -0
- package/templates/static/host-components/lifestyle.ejs +7 -0
- package/templates/static/host-components/lottie.ejs +7 -0
- package/templates/static/host-components/map.ejs +7 -0
- package/templates/static/host-components/movable-area.ejs +7 -0
- package/templates/static/host-components/movable-view.ejs +7 -0
- package/templates/static/host-components/navigator.ejs +7 -0
- package/templates/static/host-components/picker-view-column.ejs +7 -0
- package/templates/static/host-components/picker-view.ejs +13 -0
- package/templates/static/host-components/picker.ejs +9 -0
- package/templates/static/host-components/plain-text.ejs +3 -0
- package/templates/static/host-components/progress.ejs +7 -0
- package/templates/static/host-components/radio-group.ejs +7 -0
- package/templates/static/host-components/radio.ejs +7 -0
- package/templates/static/host-components/rich-text.ejs +7 -0
- package/templates/static/host-components/scroll-view.ejs +7 -0
- package/templates/static/host-components/slider.ejs +7 -0
- package/templates/static/host-components/swiper-item.ejs +7 -0
- package/templates/static/host-components/swiper.ejs +13 -0
- package/templates/static/host-components/switch.ejs +7 -0
- package/templates/static/host-components/text.ejs +7 -0
- package/templates/static/host-components/textarea.ejs +7 -0
- package/templates/static/host-components/video.ejs +7 -0
- package/templates/static/host-components/view.ejs +7 -0
- package/templates/static/host-components/web-view.ejs +7 -0
- package/templates/static/isolated-templates.ejs +5 -0
- package/templates/static/native-component.ejs +24 -0
- package/templates/static/page.ejs +64 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
interface WindowConfig {
|
|
2
|
+
/**
|
|
3
|
+
* 页面默认标题
|
|
4
|
+
*/
|
|
5
|
+
defaultTitle?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 是否允许下拉刷新。
|
|
8
|
+
* 默认NO, 备注:下拉刷新生效的前提是allowsBounceVertical 值为 YES
|
|
9
|
+
*/
|
|
10
|
+
pullRefresh?: 'NO' | 'YES';
|
|
11
|
+
/**
|
|
12
|
+
* 是否允许向下拉拽。
|
|
13
|
+
* 默认 YES, 支持 YES / NO
|
|
14
|
+
*/
|
|
15
|
+
allowsBounceVertical?: 'YES' | 'NO';
|
|
16
|
+
/**
|
|
17
|
+
* 导航栏透明设置。
|
|
18
|
+
* 默认 none,支持 always 一直透明 / auto 滑动自适应 / none 不透明
|
|
19
|
+
*/
|
|
20
|
+
transparentTitle?: 'none' | 'always' | 'auto';
|
|
21
|
+
/**
|
|
22
|
+
* 是否允许导航栏点击穿透。
|
|
23
|
+
* 默认 NO,支持 YES / NO
|
|
24
|
+
*/
|
|
25
|
+
titlePenetrate?: 'YES' | 'NO';
|
|
26
|
+
/**
|
|
27
|
+
* 是否进入时显示导航栏的 loading。
|
|
28
|
+
* 默认 NO,支持 YES / NO
|
|
29
|
+
*/
|
|
30
|
+
showTitleLoading?: 'YES' | 'NO';
|
|
31
|
+
/**
|
|
32
|
+
* 导航栏图片地址
|
|
33
|
+
*/
|
|
34
|
+
titleImage?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 导航栏背景色,十进制颜色值(0-255)
|
|
37
|
+
*/
|
|
38
|
+
titleBarColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 页面的背景色,十进制颜色值(0-255)
|
|
41
|
+
*/
|
|
42
|
+
backgroundColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 下拉露出显示的背景图底色,十进制颜色值(0-255)
|
|
45
|
+
*/
|
|
46
|
+
backgroundImageColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 下拉露出显示的背景图链接
|
|
49
|
+
*/
|
|
50
|
+
backgroundImageUrl?: string;
|
|
51
|
+
/**
|
|
52
|
+
* iOS 用,是否支持手势返回。默认 NO,支持 YES / NO
|
|
53
|
+
*/
|
|
54
|
+
gestureBack?: 'YES' | 'NO';
|
|
55
|
+
/**
|
|
56
|
+
* Android 用,是否显示 WebView 滚动条。
|
|
57
|
+
* 默认 YES,支持 YES / NO
|
|
58
|
+
*/
|
|
59
|
+
enableScrollBar?: 'YES' | 'NO';
|
|
60
|
+
/**
|
|
61
|
+
* 页面上拉触底时触发时距离页面底部的距离,单位为px。
|
|
62
|
+
* 相关文档页面事件处理函数
|
|
63
|
+
* 1.19.0
|
|
64
|
+
* 目前 iOS 在 page.json 下设置无效,只能全局设置。
|
|
65
|
+
*/
|
|
66
|
+
onReachBottomDistance?: number;
|
|
67
|
+
}
|
|
68
|
+
/** 页面配置文件 */
|
|
69
|
+
export interface PageConfig extends WindowConfig {
|
|
70
|
+
/**
|
|
71
|
+
* 设置导航栏额外图标,目前支持设置属性 icon,值为图标 url(以 https/http 开头)或 base64 字符串,大小建议 30*30 px
|
|
72
|
+
* 基础库 1.3.0
|
|
73
|
+
*/
|
|
74
|
+
optionMenu?: Record<string, any>;
|
|
75
|
+
/**
|
|
76
|
+
* 设置导航栏图标主题。
|
|
77
|
+
* “default”为蓝色图标,“light”为白色图标
|
|
78
|
+
* 支付宝客户端 10.1.52
|
|
79
|
+
*/
|
|
80
|
+
barButtonTheme?: 'default' | 'light';
|
|
81
|
+
}
|
|
82
|
+
interface TabItem {
|
|
83
|
+
/**
|
|
84
|
+
* 设置页面路径
|
|
85
|
+
*/
|
|
86
|
+
pagePath: string;
|
|
87
|
+
/**
|
|
88
|
+
* 名称
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* 平常图标路径
|
|
93
|
+
*/
|
|
94
|
+
icon: string;
|
|
95
|
+
/**
|
|
96
|
+
* 高亮图标路径
|
|
97
|
+
*/
|
|
98
|
+
activeIcon?: string;
|
|
99
|
+
}
|
|
100
|
+
/** 全局配置文件 */
|
|
101
|
+
export interface AppConfig {
|
|
102
|
+
/**
|
|
103
|
+
* 设置页面路径
|
|
104
|
+
*/
|
|
105
|
+
pages: string[];
|
|
106
|
+
/**
|
|
107
|
+
* 设置默认页面的窗口表现
|
|
108
|
+
*/
|
|
109
|
+
window?: WindowConfig;
|
|
110
|
+
/**
|
|
111
|
+
* 设置底部 tabbar 的表现
|
|
112
|
+
*/
|
|
113
|
+
tabBar?: {
|
|
114
|
+
/**
|
|
115
|
+
* 文字颜色
|
|
116
|
+
*/
|
|
117
|
+
textColor?: string;
|
|
118
|
+
/**
|
|
119
|
+
* 选中文字颜色
|
|
120
|
+
*/
|
|
121
|
+
selectedColor?: string;
|
|
122
|
+
/**
|
|
123
|
+
* 背景色
|
|
124
|
+
*/
|
|
125
|
+
backgroundColor?: string;
|
|
126
|
+
/**
|
|
127
|
+
* 每个 tab 配置
|
|
128
|
+
*/
|
|
129
|
+
items: TabItem[];
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* 分包配置
|
|
133
|
+
*/
|
|
134
|
+
subPackages?: Array<{
|
|
135
|
+
/**
|
|
136
|
+
* 分包根目录
|
|
137
|
+
*/
|
|
138
|
+
root: string;
|
|
139
|
+
/**
|
|
140
|
+
* 分包页面路径
|
|
141
|
+
*/
|
|
142
|
+
pages: string[];
|
|
143
|
+
}>;
|
|
144
|
+
plugins?: {
|
|
145
|
+
[name: string]: {
|
|
146
|
+
version: string;
|
|
147
|
+
provider: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config';
|
package/node.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/node');
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rsmax/ali",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Rsmax for Ali",
|
|
5
|
+
"main": "./cjs/index.js",
|
|
6
|
+
"esnext": "./esm/index.js",
|
|
7
|
+
"module": "./esm/index.js",
|
|
8
|
+
"typings": "./esm/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rimraf cjs esm tsconfig.tsbuildinfo",
|
|
11
|
+
"prebuild": "npm run clean",
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"build:cjs": "tsc --module CommonJS --outDir cjs",
|
|
14
|
+
"test": "vitest run"
|
|
15
|
+
},
|
|
16
|
+
"repository": "git+https://github.com/remaxjs/remax.git",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@rsmax/framework-shared": "workspace:*",
|
|
20
|
+
"@rsmax/runtime": "workspace:*",
|
|
21
|
+
"@rsmax/shared": "workspace:*",
|
|
22
|
+
"@rsmax/types": "workspace:*"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@mini-types/alipay": "^3.0.14",
|
|
26
|
+
"@types/react": "^18.3.0",
|
|
27
|
+
"@types/react-test-renderer": "^18.3.0",
|
|
28
|
+
"react": "^18.3.0",
|
|
29
|
+
"react-test-renderer": "^18.3.0"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"gitHead": "d2ff644810449152d124a9da76218bcd9fdfff46"
|
|
35
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template name="REMAX_TPL">
|
|
2
|
+
<block a:for="{{root.children}}" a:key="{{item.id}}">
|
|
3
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
4
|
+
</block>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<% for (let component of components) { -%>
|
|
8
|
+
<%_ if (component.type !== 'native') { -%>
|
|
9
|
+
<%- include('./native-component.ejs', {
|
|
10
|
+
props: component.props,
|
|
11
|
+
id: component.id,
|
|
12
|
+
slotView: slotView,
|
|
13
|
+
type: component.type,
|
|
14
|
+
})
|
|
15
|
+
-%>
|
|
16
|
+
<%_ } -%>
|
|
17
|
+
<% } -%>
|
|
18
|
+
|
|
19
|
+
<template name="REMAX_TPL_1_plain-text">
|
|
20
|
+
<block>{{item.text}}</block>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<template name="REMAX_TPL_1_CONTAINER">
|
|
24
|
+
<template is="{{'REMAX_TPL_1_' + item.type}}" data="{{item: item}}" />
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<template name="REMAX_TPL_1_<%=id%>">
|
|
2
|
+
<<%=id%>
|
|
3
|
+
<% for(let i=0;i < props.length; i++) { -%>
|
|
4
|
+
<%_ if (props[i] === 'key') { -%>
|
|
5
|
+
key="{{item.props.__key}}"
|
|
6
|
+
<%_ } else { -%>
|
|
7
|
+
<%=props[i]%>="{{item.props['<%=props[i]%>']}}"
|
|
8
|
+
<%_ } -%>
|
|
9
|
+
<% } -%>
|
|
10
|
+
<%_ if (type === 'native') { -%>
|
|
11
|
+
ref="{{item.props['__ref']}}"
|
|
12
|
+
<%_ } -%>
|
|
13
|
+
>
|
|
14
|
+
<%_ if (id === 'swiper') { -%>
|
|
15
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
16
|
+
<swiper-item
|
|
17
|
+
<%_ for(let i=0;i < components.get('swiper-item').props.length; i++) { -%>
|
|
18
|
+
<%=components.get('swiper-item').props[i]%>="{{item.props['<%=components.get('swiper-item').props[i]%>']}}"
|
|
19
|
+
<%_ } -%>
|
|
20
|
+
>
|
|
21
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
22
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
23
|
+
</block>
|
|
24
|
+
</swiper-item>
|
|
25
|
+
</block>
|
|
26
|
+
<%_ } else if (id === 'text') { %>
|
|
27
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
28
|
+
<block a:if="{{item.type === 'plain-text'}}">{{item.text}}</block>
|
|
29
|
+
<template a:else is="REMAX_TPL_1_CONTAINER" data="{{item: item.children[0]}}" />
|
|
30
|
+
</block>
|
|
31
|
+
<%_ } else if (id === 'picker') { -%>
|
|
32
|
+
<view>
|
|
33
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item.children[0]}}" />
|
|
34
|
+
</view>
|
|
35
|
+
<%_ } else if (id === 'picker-view') { -%>
|
|
36
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
37
|
+
<picker-view-column>
|
|
38
|
+
<view a:for="{{item.children}}">
|
|
39
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item}}" />
|
|
40
|
+
</view>
|
|
41
|
+
</picker-view-column>
|
|
42
|
+
</block>
|
|
43
|
+
<%_ } else if (type === 'native') { -%>
|
|
44
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
45
|
+
<block a:if="{{item.props['slot']}}">
|
|
46
|
+
<view
|
|
47
|
+
slot="{{item.props['slot']}}"
|
|
48
|
+
<%_ for(let i=0;i < slotView.props.length; i++) { -%>
|
|
49
|
+
<%=slotView.props[i]%>="{{item.props['<%=slotView.props[i]%>']}}"
|
|
50
|
+
<%_ } -%>
|
|
51
|
+
>
|
|
52
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
53
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
54
|
+
</block>
|
|
55
|
+
</view>
|
|
56
|
+
</block>
|
|
57
|
+
<block a:else>
|
|
58
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
59
|
+
</block>
|
|
60
|
+
</block>
|
|
61
|
+
<%_ } else { -%>
|
|
62
|
+
<block a:for="{{item.children}}" key="{{item.id}}">
|
|
63
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
64
|
+
</block>
|
|
65
|
+
<%_ } -%>
|
|
66
|
+
</<%=id%>>
|
|
67
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template is="REMAX_TPL" data="{{ root: root }}" />
|
|
2
|
+
|
|
3
|
+
<template name="REMAX_TPL">
|
|
4
|
+
<block a:for="{{root.children}}" a:key="{{item.id}}">
|
|
5
|
+
<template is="REMAX_TPL_1_CONTAINER" data="{{item: item}}" />
|
|
6
|
+
</block>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<% for (let component of sortBy(Array.from(components.values()), 'id')) { -%>
|
|
10
|
+
<%_ if (skipComponents.includes(component.id)) {
|
|
11
|
+
continue;
|
|
12
|
+
} else { -%>
|
|
13
|
+
<%- include('./component.ejs', {
|
|
14
|
+
components: components,
|
|
15
|
+
type: component.type,
|
|
16
|
+
props: component.props,
|
|
17
|
+
id: component.id,
|
|
18
|
+
slotView: slotView
|
|
19
|
+
})
|
|
20
|
+
-%>
|
|
21
|
+
|
|
22
|
+
<%_ } -%>
|
|
23
|
+
<% } -%>
|
|
24
|
+
<template name="REMAX_TPL_1_plain-text">
|
|
25
|
+
<block>{{item.text}}</block>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<template name="REMAX_TPL_1_CONTAINER">
|
|
29
|
+
<template is="{{'REMAX_TPL_1_' + item.type}}" data="{{item: item}}" />
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<template is="REMAX_TPL" data="{{ root: modalRoot }}" />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template name="TPL_picker-view">
|
|
2
|
+
<picker-view <% for (let i = 0; i< props.length; i++) { %>
|
|
3
|
+
<%=props[i]%>="{{node.props['<%=props[i]%>']}}" <% } %>
|
|
4
|
+
>
|
|
5
|
+
<block a:for="{{node.children}}" key="{{item.id}}">
|
|
6
|
+
<picker-view-column>
|
|
7
|
+
<view a:for="{{item.children}}">
|
|
8
|
+
<template is="TPL_TRAVERSAL" data="{{root: item}}" />
|
|
9
|
+
</view>
|
|
10
|
+
</picker-view-column>
|
|
11
|
+
</block>
|
|
12
|
+
</picker-view>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template name="TPL_swiper">
|
|
2
|
+
<swiper <% for (let i = 0; i< props.length; i++) { %>
|
|
3
|
+
<%=props[i]%>="{{node.props['<%=props[i]%>']}}" <% } %>
|
|
4
|
+
>
|
|
5
|
+
<block a:for="{{node.children}}" key="{{item.id}}">
|
|
6
|
+
<swiper-item <% for(let i=0;i < components.get('swiper-item').props.length; i++) { %>
|
|
7
|
+
<%=components.get('swiper-item').props[i]%>="{{item.props['<%=components.get('swiper-item').props[i]%>']}}" <% } %>
|
|
8
|
+
>
|
|
9
|
+
<template is="TPL_TRAVERSAL" data="{{root: item}}" />
|
|
10
|
+
</swiper-item>
|
|
11
|
+
</block>
|
|
12
|
+
</swiper>
|
|
13
|
+
</template>
|