@ray-js/adapter 1.4.0-alpha.6 → 1.4.0-alpha.8
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/cjs/hostComponents/Button/index.d.ts +16 -0
- package/cjs/hostComponents/Button/index.js +15 -0
- package/cjs/hostComponents/Button/node.d.ts +35 -0
- package/cjs/hostComponents/Button/node.js +6 -0
- package/cjs/hostComponents/Camera/index.d.ts +21 -0
- package/cjs/hostComponents/Camera/index.js +16 -0
- package/cjs/hostComponents/Camera/node.d.ts +44 -0
- package/cjs/hostComponents/Camera/node.js +6 -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 +30 -0
- package/cjs/hostComponents/Canvas/node.js +6 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +13 -0
- package/cjs/hostComponents/Checkbox/index.js +9 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +31 -0
- package/cjs/hostComponents/Checkbox/node.js +6 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +10 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +29 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +6 -0
- package/cjs/hostComponents/CoverView/index.d.ts +6 -0
- package/cjs/hostComponents/CoverView/index.js +6 -0
- package/cjs/hostComponents/CoverView/node.d.ts +27 -0
- package/cjs/hostComponents/CoverView/node.js +6 -0
- package/cjs/hostComponents/Form/index.d.ts +13 -0
- package/cjs/hostComponents/Form/index.js +9 -0
- package/cjs/hostComponents/Form/node.d.ts +31 -0
- package/cjs/hostComponents/Form/node.js +6 -0
- package/cjs/hostComponents/Iframe/index.d.ts +21 -0
- package/cjs/hostComponents/Iframe/index.js +6 -0
- package/cjs/hostComponents/Iframe/node.d.ts +31 -0
- package/cjs/hostComponents/Iframe/node.js +6 -0
- package/cjs/hostComponents/Image/index.d.ts +43 -0
- package/cjs/hostComponents/Image/index.js +8 -0
- package/cjs/hostComponents/Image/node.d.ts +32 -0
- package/cjs/hostComponents/Image/node.js +6 -0
- package/cjs/hostComponents/Input/index.d.ts +25 -0
- package/cjs/hostComponents/Input/index.js +10 -0
- package/cjs/hostComponents/Input/node.d.ts +41 -0
- package/cjs/hostComponents/Input/node.js +6 -0
- package/cjs/hostComponents/IpcPlayer/index.d.ts +41 -0
- package/cjs/hostComponents/IpcPlayer/index.js +24 -0
- package/cjs/hostComponents/IpcPlayer/node.d.ts +53 -0
- package/cjs/hostComponents/IpcPlayer/node.js +6 -0
- package/cjs/hostComponents/Label/index.d.ts +7 -0
- package/cjs/hostComponents/Label/index.js +5 -0
- package/cjs/hostComponents/Label/node.d.ts +28 -0
- package/cjs/hostComponents/Label/node.js +6 -0
- package/cjs/hostComponents/Map/index.d.ts +66 -0
- package/cjs/hostComponents/Map/index.js +15 -0
- package/cjs/hostComponents/Map/node.d.ts +50 -0
- package/cjs/hostComponents/Map/node.js +6 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +7 -0
- package/cjs/hostComponents/MovableArea/index.js +8 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +28 -0
- package/cjs/hostComponents/MovableArea/node.js +6 -0
- package/cjs/hostComponents/MovableView/index.d.ts +25 -0
- package/cjs/hostComponents/MovableView/index.js +21 -0
- package/cjs/hostComponents/MovableView/node.d.ts +43 -0
- package/cjs/hostComponents/MovableView/node.js +6 -0
- package/cjs/hostComponents/NativeVideo/index.d.ts +38 -0
- package/cjs/hostComponents/NativeVideo/index.js +21 -0
- package/cjs/hostComponents/NativeVideo/node.d.ts +61 -0
- package/cjs/hostComponents/NativeVideo/node.js +6 -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/PageContainer/index.d.ts +20 -0
- package/cjs/hostComponents/PageContainer/index.js +14 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +43 -0
- package/cjs/hostComponents/PageContainer/node.js +6 -0
- package/cjs/hostComponents/Picker/index.d.ts +64 -0
- package/cjs/hostComponents/Picker/index.js +13 -0
- package/cjs/hostComponents/Picker/node.d.ts +40 -0
- package/cjs/hostComponents/Picker/node.js +6 -0
- package/cjs/hostComponents/PickerView/index.d.ts +17 -0
- package/cjs/hostComponents/PickerView/index.js +5 -0
- package/cjs/hostComponents/PickerView/node.d.ts +33 -0
- package/cjs/hostComponents/PickerView/node.js +6 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +4 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +27 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +6 -0
- package/cjs/hostComponents/Progress/index.d.ts +14 -0
- package/cjs/hostComponents/Progress/index.js +13 -0
- package/cjs/hostComponents/Progress/node.d.ts +36 -0
- package/cjs/hostComponents/Progress/node.js +6 -0
- package/cjs/hostComponents/Radio/index.d.ts +13 -0
- package/cjs/hostComponents/Radio/index.js +9 -0
- package/cjs/hostComponents/Radio/node.d.ts +31 -0
- package/cjs/hostComponents/Radio/node.js +6 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +11 -0
- package/cjs/hostComponents/RadioGroup/index.js +5 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +29 -0
- package/cjs/hostComponents/RadioGroup/node.js +6 -0
- package/cjs/hostComponents/RichText/index.d.ts +13 -0
- package/cjs/hostComponents/RichText/index.js +6 -0
- package/cjs/hostComponents/RichText/node.d.ts +28 -0
- package/cjs/hostComponents/RichText/node.js +6 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +31 -0
- package/cjs/hostComponents/ScrollView/index.js +17 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +53 -0
- package/cjs/hostComponents/ScrollView/node.js +8 -0
- package/cjs/hostComponents/Slider/index.d.ts +27 -0
- package/cjs/hostComponents/Slider/index.js +15 -0
- package/cjs/hostComponents/Slider/node.d.ts +41 -0
- package/cjs/hostComponents/Slider/node.js +6 -0
- package/cjs/hostComponents/Swiper/index.d.ts +21 -0
- package/cjs/hostComponents/Swiper/index.js +15 -0
- package/cjs/hostComponents/Swiper/node.d.ts +43 -0
- package/cjs/hostComponents/Swiper/node.js +6 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +7 -0
- package/cjs/hostComponents/SwiperItem/index.js +5 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +29 -0
- package/cjs/hostComponents/SwiperItem/node.js +6 -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 +33 -0
- package/cjs/hostComponents/Switch/node.js +6 -0
- package/cjs/hostComponents/Text/index.d.ts +8 -0
- package/cjs/hostComponents/Text/index.js +9 -0
- package/cjs/hostComponents/Text/node.d.ts +31 -0
- package/cjs/hostComponents/Text/node.js +6 -0
- package/cjs/hostComponents/Textarea/index.d.ts +16 -0
- package/cjs/hostComponents/Textarea/index.js +15 -0
- package/cjs/hostComponents/Textarea/node.d.ts +39 -0
- package/cjs/hostComponents/Textarea/node.js +6 -0
- package/cjs/hostComponents/Video/index.d.ts +37 -0
- package/cjs/hostComponents/Video/index.js +5 -0
- package/cjs/hostComponents/Video/node.d.ts +57 -0
- package/cjs/hostComponents/Video/node.js +7 -0
- package/cjs/hostComponents/View/index.d.ts +24 -0
- package/cjs/hostComponents/View/index.js +11 -0
- package/cjs/hostComponents/View/node.d.ts +28 -0
- package/cjs/hostComponents/View/node.js +6 -0
- package/cjs/hostComponents/WebView/index.d.ts +21 -0
- package/cjs/hostComponents/WebView/index.js +6 -0
- package/cjs/hostComponents/WebView/node.d.ts +32 -0
- package/cjs/hostComponents/WebView/node.js +6 -0
- package/cjs/hostComponents/index.d.ts +35 -0
- package/cjs/hostComponents/index.js +51 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +97 -0
- package/cjs/hostComponents/universal.d.ts +26 -0
- package/cjs/hostComponents/universal.js +29 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +18 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +48 -0
- package/cjs/types/component.d.ts +84 -0
- package/cjs/types/component.js +2 -0
- package/cjs/types/config.d.ts +185 -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/hostComponents/Button/index.d.ts +16 -0
- package/esm/hostComponents/Button/index.js +12 -0
- package/esm/hostComponents/Button/node.d.ts +35 -0
- package/esm/hostComponents/Button/node.js +3 -0
- package/esm/hostComponents/Camera/index.d.ts +21 -0
- package/esm/hostComponents/Camera/index.js +13 -0
- package/esm/hostComponents/Camera/node.d.ts +44 -0
- package/esm/hostComponents/Camera/node.js +3 -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 +30 -0
- package/esm/hostComponents/Canvas/node.js +3 -0
- package/esm/hostComponents/Checkbox/index.d.ts +13 -0
- package/esm/hostComponents/Checkbox/index.js +6 -0
- package/esm/hostComponents/Checkbox/node.d.ts +31 -0
- package/esm/hostComponents/Checkbox/node.js +3 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +10 -0
- package/esm/hostComponents/CheckboxGroup/index.js +2 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +29 -0
- package/esm/hostComponents/CheckboxGroup/node.js +3 -0
- package/esm/hostComponents/CoverView/index.d.ts +6 -0
- package/esm/hostComponents/CoverView/index.js +3 -0
- package/esm/hostComponents/CoverView/node.d.ts +27 -0
- package/esm/hostComponents/CoverView/node.js +3 -0
- package/esm/hostComponents/Form/index.d.ts +13 -0
- package/esm/hostComponents/Form/index.js +6 -0
- package/esm/hostComponents/Form/node.d.ts +31 -0
- package/esm/hostComponents/Form/node.js +3 -0
- package/esm/hostComponents/Iframe/index.d.ts +21 -0
- package/esm/hostComponents/Iframe/index.js +3 -0
- package/esm/hostComponents/Iframe/node.d.ts +31 -0
- package/esm/hostComponents/Iframe/node.js +3 -0
- package/esm/hostComponents/Image/index.d.ts +43 -0
- package/esm/hostComponents/Image/index.js +5 -0
- package/esm/hostComponents/Image/node.d.ts +32 -0
- package/esm/hostComponents/Image/node.js +3 -0
- package/esm/hostComponents/Input/index.d.ts +25 -0
- package/esm/hostComponents/Input/index.js +7 -0
- package/esm/hostComponents/Input/node.d.ts +41 -0
- package/esm/hostComponents/Input/node.js +3 -0
- package/esm/hostComponents/IpcPlayer/index.d.ts +41 -0
- package/esm/hostComponents/IpcPlayer/index.js +21 -0
- package/esm/hostComponents/IpcPlayer/node.d.ts +53 -0
- package/esm/hostComponents/IpcPlayer/node.js +3 -0
- package/esm/hostComponents/Label/index.d.ts +7 -0
- package/esm/hostComponents/Label/index.js +2 -0
- package/esm/hostComponents/Label/node.d.ts +28 -0
- package/esm/hostComponents/Label/node.js +3 -0
- package/esm/hostComponents/Map/index.d.ts +66 -0
- package/esm/hostComponents/Map/index.js +12 -0
- package/esm/hostComponents/Map/node.d.ts +50 -0
- package/esm/hostComponents/Map/node.js +3 -0
- package/esm/hostComponents/MovableArea/index.d.ts +7 -0
- package/esm/hostComponents/MovableArea/index.js +5 -0
- package/esm/hostComponents/MovableArea/node.d.ts +28 -0
- package/esm/hostComponents/MovableArea/node.js +3 -0
- package/esm/hostComponents/MovableView/index.d.ts +25 -0
- package/esm/hostComponents/MovableView/index.js +18 -0
- package/esm/hostComponents/MovableView/node.d.ts +43 -0
- package/esm/hostComponents/MovableView/node.js +3 -0
- package/esm/hostComponents/NativeVideo/index.d.ts +38 -0
- package/esm/hostComponents/NativeVideo/index.js +18 -0
- package/esm/hostComponents/NativeVideo/node.d.ts +61 -0
- package/esm/hostComponents/NativeVideo/node.js +3 -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/PageContainer/index.d.ts +20 -0
- package/esm/hostComponents/PageContainer/index.js +11 -0
- package/esm/hostComponents/PageContainer/node.d.ts +43 -0
- package/esm/hostComponents/PageContainer/node.js +3 -0
- package/esm/hostComponents/Picker/index.d.ts +64 -0
- package/esm/hostComponents/Picker/index.js +10 -0
- package/esm/hostComponents/Picker/node.d.ts +40 -0
- package/esm/hostComponents/Picker/node.js +3 -0
- package/esm/hostComponents/PickerView/index.d.ts +17 -0
- package/esm/hostComponents/PickerView/index.js +2 -0
- package/esm/hostComponents/PickerView/node.d.ts +33 -0
- package/esm/hostComponents/PickerView/node.js +3 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +4 -0
- package/esm/hostComponents/PickerViewColumn/index.js +2 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +27 -0
- package/esm/hostComponents/PickerViewColumn/node.js +3 -0
- package/esm/hostComponents/Progress/index.d.ts +14 -0
- package/esm/hostComponents/Progress/index.js +10 -0
- package/esm/hostComponents/Progress/node.d.ts +36 -0
- package/esm/hostComponents/Progress/node.js +3 -0
- package/esm/hostComponents/Radio/index.d.ts +13 -0
- package/esm/hostComponents/Radio/index.js +6 -0
- package/esm/hostComponents/Radio/node.d.ts +31 -0
- package/esm/hostComponents/Radio/node.js +3 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +11 -0
- package/esm/hostComponents/RadioGroup/index.js +2 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +29 -0
- package/esm/hostComponents/RadioGroup/node.js +3 -0
- package/esm/hostComponents/RichText/index.d.ts +13 -0
- package/esm/hostComponents/RichText/index.js +3 -0
- package/esm/hostComponents/RichText/node.d.ts +28 -0
- package/esm/hostComponents/RichText/node.js +3 -0
- package/esm/hostComponents/ScrollView/index.d.ts +31 -0
- package/esm/hostComponents/ScrollView/index.js +14 -0
- package/esm/hostComponents/ScrollView/node.d.ts +53 -0
- package/esm/hostComponents/ScrollView/node.js +5 -0
- package/esm/hostComponents/Slider/index.d.ts +27 -0
- package/esm/hostComponents/Slider/index.js +12 -0
- package/esm/hostComponents/Slider/node.d.ts +41 -0
- package/esm/hostComponents/Slider/node.js +3 -0
- package/esm/hostComponents/Swiper/index.d.ts +21 -0
- package/esm/hostComponents/Swiper/index.js +12 -0
- package/esm/hostComponents/Swiper/node.d.ts +43 -0
- package/esm/hostComponents/Swiper/node.js +3 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +7 -0
- package/esm/hostComponents/SwiperItem/index.js +2 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +29 -0
- package/esm/hostComponents/SwiperItem/node.js +3 -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 +33 -0
- package/esm/hostComponents/Switch/node.js +3 -0
- package/esm/hostComponents/Text/index.d.ts +8 -0
- package/esm/hostComponents/Text/index.js +6 -0
- package/esm/hostComponents/Text/node.d.ts +31 -0
- package/esm/hostComponents/Text/node.js +3 -0
- package/esm/hostComponents/Textarea/index.d.ts +16 -0
- package/esm/hostComponents/Textarea/index.js +12 -0
- package/esm/hostComponents/Textarea/node.d.ts +39 -0
- package/esm/hostComponents/Textarea/node.js +3 -0
- package/esm/hostComponents/Video/index.d.ts +37 -0
- package/esm/hostComponents/Video/index.js +2 -0
- package/esm/hostComponents/Video/node.d.ts +57 -0
- package/esm/hostComponents/Video/node.js +4 -0
- package/esm/hostComponents/View/index.d.ts +24 -0
- package/esm/hostComponents/View/index.js +8 -0
- package/esm/hostComponents/View/node.d.ts +28 -0
- package/esm/hostComponents/View/node.js +3 -0
- package/esm/hostComponents/WebView/index.d.ts +21 -0
- package/esm/hostComponents/WebView/index.js +3 -0
- package/esm/hostComponents/WebView/node.d.ts +32 -0
- package/esm/hostComponents/WebView/node.js +3 -0
- package/esm/hostComponents/index.d.ts +35 -0
- package/esm/hostComponents/index.js +35 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +72 -0
- package/esm/hostComponents/universal.d.ts +26 -0
- package/esm/hostComponents/universal.js +26 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +20 -0
- package/esm/types/component.d.ts +84 -0
- package/esm/types/component.js +1 -0
- package/esm/types/config.d.ts +185 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +1 -0
- package/package.json +24 -19
- package/CHANGELOG.md +0 -283
- package/node.js +0 -1
- package/tsconfig.build.json +0 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
style: string;
|
|
5
|
+
id: string;
|
|
6
|
+
disableScroll: string;
|
|
7
|
+
hoverClass: string;
|
|
8
|
+
hoverClassName: string;
|
|
9
|
+
hoverStartTime: string;
|
|
10
|
+
hoverStayTime: string;
|
|
11
|
+
hidden: string;
|
|
12
|
+
hoverStopPropagation: string;
|
|
13
|
+
onTap: string;
|
|
14
|
+
onClick: string;
|
|
15
|
+
onTouchStart: string;
|
|
16
|
+
onTouchMove: string;
|
|
17
|
+
onTouchEnd: string;
|
|
18
|
+
onTouchCancel: string;
|
|
19
|
+
onLongTap: string;
|
|
20
|
+
onLongClick: string;
|
|
21
|
+
onLongPress: string;
|
|
22
|
+
onTransitionEnd: string;
|
|
23
|
+
onAnimationIteration: string;
|
|
24
|
+
onAnimationStart: string;
|
|
25
|
+
onAnimationEnd: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface FormProps extends BaseProps {
|
|
4
|
+
/** 是否返回 formId 用于发送模板消息 */
|
|
5
|
+
reportSubmit?: boolean;
|
|
6
|
+
/** 等待一段时间(毫秒数)以确认 formId 是否生效。如果未指定这个参数,formId 有很小的概率是无效的(如遇到网络失败的情况)。指定这个参数将可以检测 formId 是否有效,以这个参数的时间作为这项检测的超时时间。如果失败,将返回 requestFormId:fail 开头的 formId */
|
|
7
|
+
reportSubmitTimeout?: number;
|
|
8
|
+
/** 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: '', ...} */
|
|
9
|
+
onSubmit?: (event: GenericEvent) => any;
|
|
10
|
+
/** 表单重置时会触发 reset 事件 */
|
|
11
|
+
onReset?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
export declare const Form: React.ComponentType<FormProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
reportSubmit: string;
|
|
7
|
+
onSubmit: string;
|
|
8
|
+
onReset: string;
|
|
9
|
+
reportSubmitTimeout: string;
|
|
10
|
+
disableScroll: string;
|
|
11
|
+
hoverClass: string;
|
|
12
|
+
hoverClassName: string;
|
|
13
|
+
hoverStartTime: string;
|
|
14
|
+
hoverStayTime: string;
|
|
15
|
+
hidden: string;
|
|
16
|
+
hoverStopPropagation: string;
|
|
17
|
+
onTap: string;
|
|
18
|
+
onClick: string;
|
|
19
|
+
onTouchStart: string;
|
|
20
|
+
onTouchMove: string;
|
|
21
|
+
onTouchEnd: string;
|
|
22
|
+
onTouchCancel: string;
|
|
23
|
+
onLongTap: string;
|
|
24
|
+
onLongClick: string;
|
|
25
|
+
onLongPress: string;
|
|
26
|
+
onTransitionEnd: string;
|
|
27
|
+
onAnimationIteration: string;
|
|
28
|
+
onAnimationStart: string;
|
|
29
|
+
onAnimationEnd: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', style: 'style', animation: 'animation', reportSubmit: 'report-submit', onSubmit: 'bindsubmit', onReset: 'bindreset', reportSubmitTimeout: 'report-submit-timeout' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface IframeProps extends BaseProps, DiffLayer {
|
|
4
|
+
/**
|
|
5
|
+
* webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
|
|
10
|
+
*/
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
/**
|
|
13
|
+
* 网页加载成功时候触发此事件。e.detail = { src }
|
|
14
|
+
*/
|
|
15
|
+
onLoad?: (event: GenericEvent) => any;
|
|
16
|
+
/**
|
|
17
|
+
* 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data },data是多次 postMessage 的参数组成的数组
|
|
18
|
+
*/
|
|
19
|
+
onMessage?: (event: GenericEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
export declare const Iframe: React.ComponentType<IframeProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
src: string;
|
|
3
|
+
onError: string;
|
|
4
|
+
onLoad: string;
|
|
5
|
+
onMessage: string;
|
|
6
|
+
id: string;
|
|
7
|
+
disableScroll: string;
|
|
8
|
+
hoverClass: string;
|
|
9
|
+
hoverClassName: string;
|
|
10
|
+
hoverStartTime: string;
|
|
11
|
+
hoverStayTime: string;
|
|
12
|
+
hidden: string;
|
|
13
|
+
className: string;
|
|
14
|
+
animation: string;
|
|
15
|
+
style: string;
|
|
16
|
+
hoverStopPropagation: string;
|
|
17
|
+
onTap: string;
|
|
18
|
+
onClick: string;
|
|
19
|
+
onTouchStart: string;
|
|
20
|
+
onTouchMove: string;
|
|
21
|
+
onTouchEnd: string;
|
|
22
|
+
onTouchCancel: string;
|
|
23
|
+
onLongTap: string;
|
|
24
|
+
onLongClick: string;
|
|
25
|
+
onLongPress: string;
|
|
26
|
+
onTransitionEnd: string;
|
|
27
|
+
onAnimationIteration: string;
|
|
28
|
+
onAnimationStart: string;
|
|
29
|
+
onAnimationEnd: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface ImageProps extends BaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 图片资源地址
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 图片裁剪、缩放的模式
|
|
10
|
+
* scaleToFill 缩放模式,不保持纵横比缩放图片,使图片的宽高完全拉伸至填满 image 元素
|
|
11
|
+
* aspectFit 缩放模式,保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整地将图片显示出来。
|
|
12
|
+
* aspectFill 缩放模式,保持纵横比缩放图片,只保证图片的短边能完全显示出来。也就是说,图片通常只在水平或垂直方向是完整的,另一个方向将会发生截取。
|
|
13
|
+
* widthFix 缩放模式,宽度不变,高度自动变化,保持原图宽高比不变
|
|
14
|
+
* heightFix 缩放模式,高度不变,宽度自动变化,保持原图宽高比不变
|
|
15
|
+
* top 裁剪模式,不缩放图片,只显示图片的顶部区域
|
|
16
|
+
* bottom 裁剪模式,不缩放图片,只显示图片的底部区域
|
|
17
|
+
* center 裁剪模式,不缩放图片,只显示图片的中间区域
|
|
18
|
+
* left 裁剪模式,不缩放图片,只显示图片的左边区域
|
|
19
|
+
* right 裁剪模式,不缩放图片,只显示图片的右边区域
|
|
20
|
+
* top left 裁剪模式,不缩放图片,只显示图片的左上边区域
|
|
21
|
+
* top right 裁剪模式,不缩放图片,只显示图片的右上边区域
|
|
22
|
+
* bottom left 裁剪模式,不缩放图片,只显示图片的左下边区域
|
|
23
|
+
* bottom right 裁剪模式,不缩放图片,只显示图片的右下边区域
|
|
24
|
+
*/
|
|
25
|
+
mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
|
26
|
+
/**
|
|
27
|
+
* 默认不解析 webP 格式,只支持网络资源
|
|
28
|
+
*/
|
|
29
|
+
webp?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 图片懒加载,在即将进入一定范围(上下三屏)时才开始加载
|
|
32
|
+
*/
|
|
33
|
+
lazyLoad?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 当错误发生时触发,,event.detail = {errMsg}
|
|
36
|
+
*/
|
|
37
|
+
onError?: (event: GenericEvent) => any;
|
|
38
|
+
/**
|
|
39
|
+
* 当图片载入完毕时触发,event.detail = {height, width}
|
|
40
|
+
*/
|
|
41
|
+
onLoad?: (event: GenericEvent) => any;
|
|
42
|
+
}
|
|
43
|
+
export declare const Image: React.ComponentType<ImageProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
src: string;
|
|
4
|
+
mode: string;
|
|
5
|
+
className: string;
|
|
6
|
+
animation: string;
|
|
7
|
+
style: string;
|
|
8
|
+
lazyLoad: string;
|
|
9
|
+
onLoad: string;
|
|
10
|
+
onError: string;
|
|
11
|
+
onTap: string;
|
|
12
|
+
onClick: string;
|
|
13
|
+
onTouchStart: string;
|
|
14
|
+
onTouchMove: string;
|
|
15
|
+
onTouchEnd: string;
|
|
16
|
+
onTouchCancel: string;
|
|
17
|
+
disableScroll: string;
|
|
18
|
+
hoverClass: string;
|
|
19
|
+
hoverClassName: string;
|
|
20
|
+
hoverStartTime: string;
|
|
21
|
+
hoverStayTime: string;
|
|
22
|
+
hidden: string;
|
|
23
|
+
hoverStopPropagation: string;
|
|
24
|
+
onLongTap: string;
|
|
25
|
+
onLongClick: string;
|
|
26
|
+
onLongPress: string;
|
|
27
|
+
onTransitionEnd: string;
|
|
28
|
+
onAnimationIteration: string;
|
|
29
|
+
onAnimationStart: string;
|
|
30
|
+
onAnimationEnd: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', src: 'src', mode: 'mode', className: 'class', animation: 'animation', style: 'style', lazyLoad: 'lazy-load', onLoad: 'bindload', onError: 'binderror', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface InputProps extends BaseProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
type?: 'text' | 'number';
|
|
6
|
+
password?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
placeholderStyle?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
|
|
12
|
+
/**
|
|
13
|
+
* string | number 输入框内容左侧内容缩进,仅在涂鸦小程序有效
|
|
14
|
+
*/
|
|
15
|
+
indentStart?: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* string | number 输入框内容右侧内容缩进,仅在涂鸦小程序有效
|
|
18
|
+
*/
|
|
19
|
+
indentEnd?: string | number;
|
|
20
|
+
onInput?: (event: GenericEvent) => void;
|
|
21
|
+
onFocus?: (event: GenericEvent) => void;
|
|
22
|
+
onBlur?: (event: GenericEvent) => void;
|
|
23
|
+
onConfirm?: (event: GenericEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const Input: React.ComponentType<InputProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
value: string;
|
|
7
|
+
type: string;
|
|
8
|
+
password: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
placeholderStyle: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
maxLength: string;
|
|
13
|
+
confirmType: string;
|
|
14
|
+
indentStart: string;
|
|
15
|
+
indentEnd: string;
|
|
16
|
+
onInput: string;
|
|
17
|
+
onFocus: string;
|
|
18
|
+
onBlur: string;
|
|
19
|
+
onConfirm: string;
|
|
20
|
+
disableScroll: string;
|
|
21
|
+
hoverClass: string;
|
|
22
|
+
hoverClassName: string;
|
|
23
|
+
hoverStartTime: string;
|
|
24
|
+
hoverStayTime: string;
|
|
25
|
+
hidden: string;
|
|
26
|
+
hoverStopPropagation: string;
|
|
27
|
+
onTap: string;
|
|
28
|
+
onClick: string;
|
|
29
|
+
onTouchStart: string;
|
|
30
|
+
onTouchMove: string;
|
|
31
|
+
onTouchEnd: string;
|
|
32
|
+
onTouchCancel: string;
|
|
33
|
+
onLongTap: string;
|
|
34
|
+
onLongClick: string;
|
|
35
|
+
onLongPress: string;
|
|
36
|
+
onTransitionEnd: string;
|
|
37
|
+
onAnimationIteration: string;
|
|
38
|
+
onAnimationStart: string;
|
|
39
|
+
onAnimationEnd: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', confirmType: 'confirm-type', indentStart: 'indent-start', indentEnd: 'indent-end', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer } from '../../types/component';
|
|
3
|
+
export interface IpcPlayerProps extends BaseProps, DiffLayer {
|
|
4
|
+
deviceId: string;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
muted?: boolean;
|
|
7
|
+
clarity?: 'normal' | 'hd';
|
|
8
|
+
soundMode?: 'speaker' | 'ear';
|
|
9
|
+
orientation?: 'vertical' | 'horizontal';
|
|
10
|
+
objectFit?: 'contain' | 'fillCrop';
|
|
11
|
+
autoPauseIfNavigate?: boolean;
|
|
12
|
+
autoPauseIfOpenNative?: boolean;
|
|
13
|
+
rotateZ?: number;
|
|
14
|
+
scalable?: boolean;
|
|
15
|
+
scaleMultiple?: number;
|
|
16
|
+
ptzControllable?: boolean;
|
|
17
|
+
borderWidth?: number | string;
|
|
18
|
+
borderStyle?: 'solid' | 'dashed';
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
borderRadius?: number | string;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
onConnectchange?: (event: {
|
|
23
|
+
state: number;
|
|
24
|
+
}) => void;
|
|
25
|
+
onPreviewchange?: (event: {
|
|
26
|
+
state: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
onOnlinechange?: (event: {
|
|
29
|
+
online: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
onInitdone?: () => void;
|
|
32
|
+
onZoomchange?: (event: {
|
|
33
|
+
zoomLevel: number;
|
|
34
|
+
}) => void;
|
|
35
|
+
onVideotap?: () => void;
|
|
36
|
+
onError?: (event: {
|
|
37
|
+
errCode: number | string;
|
|
38
|
+
errMsg: string;
|
|
39
|
+
}) => void;
|
|
40
|
+
}
|
|
41
|
+
export declare const IpcPlayer: React.ComponentType<IpcPlayerProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const IpcPlayer = createHostComponent('ipc-player');
|
|
3
|
+
IpcPlayer.defaultProps = {
|
|
4
|
+
deviceId: '',
|
|
5
|
+
autoplay: false,
|
|
6
|
+
clarity: 'normal',
|
|
7
|
+
soundMode: 'speaker',
|
|
8
|
+
orientation: 'vertical',
|
|
9
|
+
objectFit: 'contain',
|
|
10
|
+
autoPauseIfNavigate: true,
|
|
11
|
+
autoPauseIfOpenNative: true,
|
|
12
|
+
rotateZ: 0,
|
|
13
|
+
scalable: true,
|
|
14
|
+
scaleMultiple: 0,
|
|
15
|
+
ptzControllable: true,
|
|
16
|
+
borderWidth: 0,
|
|
17
|
+
borderStyle: 'solid',
|
|
18
|
+
borderColor: '#ffffff',
|
|
19
|
+
borderRadius: 0,
|
|
20
|
+
backgroundColor: '#ffffff',
|
|
21
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
style: string;
|
|
5
|
+
id: string;
|
|
6
|
+
deviceId: string;
|
|
7
|
+
autoplay: string;
|
|
8
|
+
muted: string;
|
|
9
|
+
clarity: string;
|
|
10
|
+
soundMode: string;
|
|
11
|
+
orientation: string;
|
|
12
|
+
objectFit: string;
|
|
13
|
+
autoPauseIfNavigate: string;
|
|
14
|
+
autoPauseIfOpenNative: string;
|
|
15
|
+
rotateZ: string;
|
|
16
|
+
scalable: string;
|
|
17
|
+
scaleMultiple: string;
|
|
18
|
+
ptzControllable: string;
|
|
19
|
+
borderWidth: string;
|
|
20
|
+
borderStyle: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
borderRadius: string;
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
onConnectchange: string;
|
|
25
|
+
onPreviewchange: string;
|
|
26
|
+
onInitdone: string;
|
|
27
|
+
onOnlinechange: string;
|
|
28
|
+
onZoomchange: string;
|
|
29
|
+
onVideotap: string;
|
|
30
|
+
onError: string;
|
|
31
|
+
updateLayout: string;
|
|
32
|
+
disableScroll: string;
|
|
33
|
+
hoverClass: string;
|
|
34
|
+
hoverClassName: string;
|
|
35
|
+
hoverStartTime: string;
|
|
36
|
+
hoverStayTime: string;
|
|
37
|
+
hidden: string;
|
|
38
|
+
hoverStopPropagation: string;
|
|
39
|
+
onTap: string;
|
|
40
|
+
onClick: string;
|
|
41
|
+
onTouchStart: string;
|
|
42
|
+
onTouchMove: string;
|
|
43
|
+
onTouchEnd: string;
|
|
44
|
+
onTouchCancel: string;
|
|
45
|
+
onLongTap: string;
|
|
46
|
+
onLongClick: string;
|
|
47
|
+
onLongPress: string;
|
|
48
|
+
onTransitionEnd: string;
|
|
49
|
+
onAnimationIteration: string;
|
|
50
|
+
onAnimationStart: string;
|
|
51
|
+
onAnimationEnd: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', deviceId: 'device-id', autoplay: 'autoplay', muted: 'muted', clarity: 'clarity', soundMode: 'sound-mode', orientation: 'orientation', objectFit: 'object-fit', autoPauseIfNavigate: 'auto-pause-if-navigate', autoPauseIfOpenNative: 'auto-pause-if-open-native', rotateZ: 'rotate-z', scalable: 'scalable', scaleMultiple: 'scale-multiple', ptzControllable: 'ptz-controllable', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', backgroundColor: 'background-color', onConnectchange: 'bind:connectchange', onPreviewchange: 'bind:previewchange', onInitdone: 'bind:initdone', onOnlinechange: 'bind:onlinechange', onZoomchange: 'bind:zoomchange', onVideotap: 'bind:videotap', onError: 'bind:error', updateLayout: 'update-layout' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
for: string;
|
|
7
|
+
onClick: string;
|
|
8
|
+
onTap: string;
|
|
9
|
+
disableScroll: string;
|
|
10
|
+
hoverClass: string;
|
|
11
|
+
hoverClassName: string;
|
|
12
|
+
hoverStartTime: string;
|
|
13
|
+
hoverStayTime: string;
|
|
14
|
+
hidden: string;
|
|
15
|
+
hoverStopPropagation: string;
|
|
16
|
+
onTouchStart: string;
|
|
17
|
+
onTouchMove: string;
|
|
18
|
+
onTouchEnd: string;
|
|
19
|
+
onTouchCancel: string;
|
|
20
|
+
onLongTap: string;
|
|
21
|
+
onLongClick: string;
|
|
22
|
+
onLongPress: string;
|
|
23
|
+
onTransitionEnd: string;
|
|
24
|
+
onAnimationIteration: string;
|
|
25
|
+
onAnimationStart: string;
|
|
26
|
+
onAnimationEnd: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', for: 'for', onClick: 'bindtap', onTap: 'bindtap' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface MapProps extends BaseProps, DiffLayer {
|
|
4
|
+
longitude: number;
|
|
5
|
+
latitude: number;
|
|
6
|
+
scale?: number;
|
|
7
|
+
minScale?: number;
|
|
8
|
+
maxScale?: number;
|
|
9
|
+
markers?: Array<Marker>;
|
|
10
|
+
polyline?: Array<Polyline>;
|
|
11
|
+
circles?: Array<Circle>;
|
|
12
|
+
polygons?: Array<Polygon>;
|
|
13
|
+
borderWidth?: number;
|
|
14
|
+
borderStyle?: string;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
borderRadius?: number;
|
|
17
|
+
borderRadiusTopLeft?: number;
|
|
18
|
+
borderRadiusTopRight?: number;
|
|
19
|
+
borderRadiusBottomLeft?: number;
|
|
20
|
+
borderRadiusBottomRight?: number;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
onMarkertap?: (e: GenericEvent) => void;
|
|
23
|
+
onCallouttap?: (e: GenericEvent) => void;
|
|
24
|
+
onRegionchange?: (e: GenericEvent) => void;
|
|
25
|
+
onInitdone?: (e: GenericEvent) => void;
|
|
26
|
+
}
|
|
27
|
+
export type Marker = {
|
|
28
|
+
content?: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
fontSize?: number;
|
|
31
|
+
borderRadius?: number;
|
|
32
|
+
borderWidth?: number;
|
|
33
|
+
borderColor?: string;
|
|
34
|
+
bgColor?: string;
|
|
35
|
+
padding?: number;
|
|
36
|
+
textAlign?: string;
|
|
37
|
+
anchorX?: number;
|
|
38
|
+
anchorY?: number;
|
|
39
|
+
};
|
|
40
|
+
export type Polyline = {
|
|
41
|
+
points: Array<{
|
|
42
|
+
latitude: number;
|
|
43
|
+
longitude: number;
|
|
44
|
+
}>;
|
|
45
|
+
color?: string;
|
|
46
|
+
width?: number;
|
|
47
|
+
dottedLine?: boolean;
|
|
48
|
+
};
|
|
49
|
+
export type Circle = {
|
|
50
|
+
latitude: number;
|
|
51
|
+
longitude: number;
|
|
52
|
+
color?: string;
|
|
53
|
+
fillColor?: string;
|
|
54
|
+
radius: number;
|
|
55
|
+
strokeWidth?: number;
|
|
56
|
+
};
|
|
57
|
+
export type Polygon = {
|
|
58
|
+
points: Array<{
|
|
59
|
+
latitude: number;
|
|
60
|
+
longitude: number;
|
|
61
|
+
}>;
|
|
62
|
+
strokeWidth?: number;
|
|
63
|
+
strokeColor?: number;
|
|
64
|
+
fillColor?: number;
|
|
65
|
+
};
|
|
66
|
+
export declare const Map: React.ComponentType<MapProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Map = createHostComponent('map');
|
|
3
|
+
Map.defaultProps = {
|
|
4
|
+
scale: 16,
|
|
5
|
+
minScale: 4,
|
|
6
|
+
maxScale: 19,
|
|
7
|
+
borderWidth: 0,
|
|
8
|
+
borderStyle: 'solid',
|
|
9
|
+
borderColor: '#ffffff',
|
|
10
|
+
borderRadius: 0,
|
|
11
|
+
backgroundColor: '#ffffff',
|
|
12
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
updateLayout: string;
|
|
6
|
+
longitude: string;
|
|
7
|
+
latitude: string;
|
|
8
|
+
scale: string;
|
|
9
|
+
minScale: string;
|
|
10
|
+
maxScale: string;
|
|
11
|
+
markers: string;
|
|
12
|
+
polyline: string;
|
|
13
|
+
circles: string;
|
|
14
|
+
polygons: string;
|
|
15
|
+
borderWidth: string;
|
|
16
|
+
borderStyle: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
borderRadius: string;
|
|
19
|
+
borderRadiusTopLeft: string;
|
|
20
|
+
borderRadiusTopRight: string;
|
|
21
|
+
borderRadiusBottomLeft: string;
|
|
22
|
+
borderRadiusBottomRight: string;
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
onMarkertap: string;
|
|
25
|
+
onCallouttap: string;
|
|
26
|
+
onRegionchange: string;
|
|
27
|
+
onInitdone: string;
|
|
28
|
+
disableScroll: string;
|
|
29
|
+
hoverClass: string;
|
|
30
|
+
hoverClassName: string;
|
|
31
|
+
hoverStartTime: string;
|
|
32
|
+
hoverStayTime: string;
|
|
33
|
+
hidden: string;
|
|
34
|
+
animation: string;
|
|
35
|
+
hoverStopPropagation: string;
|
|
36
|
+
onTap: string;
|
|
37
|
+
onClick: string;
|
|
38
|
+
onTouchStart: string;
|
|
39
|
+
onTouchMove: string;
|
|
40
|
+
onTouchEnd: string;
|
|
41
|
+
onTouchCancel: string;
|
|
42
|
+
onLongTap: string;
|
|
43
|
+
onLongClick: string;
|
|
44
|
+
onLongPress: string;
|
|
45
|
+
onTransitionEnd: string;
|
|
46
|
+
onAnimationIteration: string;
|
|
47
|
+
onAnimationStart: string;
|
|
48
|
+
onAnimationEnd: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', style: 'style', updateLayout: 'update-layout', longitude: 'longitude', latitude: 'latitude', scale: 'scale', minScale: 'min-scale', maxScale: 'max-scale', markers: 'markers', polyline: 'polyline', circles: 'circles', polygons: 'polygons', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', borderRadiusTopLeft: 'border-radius-top-left', borderRadiusTopRight: 'border-radius-top-right', borderRadiusBottomLeft: 'border-radius-bottom-left', borderRadiusBottomRight: 'border-radius-bottom-right', backgroundColor: 'background-color', onMarkertap: 'bind:markertap', onCallouttap: 'bind:callouttap', onRegionchange: 'bind:regionchange', onInitdone: 'bind:initdone' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface MovableAreaProps extends BaseProps {
|
|
4
|
+
/** 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个 movable-area */
|
|
5
|
+
scaleArea?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const MovableArea: React.ComponentType<MovableAreaProps>;
|