@ray-js/adapter 1.4.0-alpha.6 → 1.4.0-alpha.7
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,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface ButtonProps extends BaseProps {
|
|
4
|
+
size?: 'mini' | 'default';
|
|
5
|
+
type?: 'primary' | 'default' | 'warn';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
formType?: 'submit' | 'reset';
|
|
9
|
+
plain?: boolean;
|
|
10
|
+
hoverClassName?: string;
|
|
11
|
+
hoverStartTime?: number;
|
|
12
|
+
hoverStayTime?: number;
|
|
13
|
+
hoverStopPropagation?: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const Button: React.ComponentType<ButtonProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.Button = (0, runtime_1.createHostComponent)('button');
|
|
6
|
+
exports.Button.defaultProps = {
|
|
7
|
+
size: 'default',
|
|
8
|
+
type: 'default',
|
|
9
|
+
hoverClassName: 'button-hover',
|
|
10
|
+
hoverStartTime: 20,
|
|
11
|
+
hoverStayTime: 70,
|
|
12
|
+
// disabled: false,
|
|
13
|
+
// loading: false,
|
|
14
|
+
// hoverStopPropagation: false,
|
|
15
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
id: string;
|
|
5
|
+
style: string;
|
|
6
|
+
size: string;
|
|
7
|
+
type: string;
|
|
8
|
+
plain: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
loading: string;
|
|
11
|
+
formType: string;
|
|
12
|
+
openType: string;
|
|
13
|
+
hoverClassName: string;
|
|
14
|
+
hoverStartTime: string;
|
|
15
|
+
hoverStayTime: string;
|
|
16
|
+
hoverStopPropagation: string;
|
|
17
|
+
onGetPhoneNumber: string;
|
|
18
|
+
onTap: string;
|
|
19
|
+
onClick: string;
|
|
20
|
+
onTouchStart: string;
|
|
21
|
+
onTouchMove: string;
|
|
22
|
+
onTouchEnd: string;
|
|
23
|
+
onTouchCancel: string;
|
|
24
|
+
onLongTap: string;
|
|
25
|
+
onLongClick: string;
|
|
26
|
+
onLongPress: string;
|
|
27
|
+
disableScroll: string;
|
|
28
|
+
hoverClass: string;
|
|
29
|
+
hidden: string;
|
|
30
|
+
onTransitionEnd: string;
|
|
31
|
+
onAnimationIteration: string;
|
|
32
|
+
onAnimationStart: string;
|
|
33
|
+
onAnimationEnd: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface CameraProps extends BaseProps, DiffLayer {
|
|
4
|
+
mode?: string;
|
|
5
|
+
resolution?: string;
|
|
6
|
+
devicePosition?: string;
|
|
7
|
+
flash?: string;
|
|
8
|
+
borderWidth?: number;
|
|
9
|
+
borderStyle?: string;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
borderRadius?: number;
|
|
12
|
+
borderRadiusTopLeft?: number;
|
|
13
|
+
borderRadiusTopRight?: number;
|
|
14
|
+
borderRadiusBottomLeft?: number;
|
|
15
|
+
borderRadiusBottomRight?: number;
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
onBindstop?: (event: GenericEvent) => any;
|
|
18
|
+
onError?: (event: GenericEvent) => any;
|
|
19
|
+
onInitdone?: (event: GenericEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
export declare const Camera: React.ComponentType<CameraProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Camera = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.Camera = (0, runtime_1.createHostComponent)('camera');
|
|
6
|
+
exports.Camera.defaultProps = {
|
|
7
|
+
mode: 'normal',
|
|
8
|
+
resolution: 'medium',
|
|
9
|
+
devicePosition: 'back',
|
|
10
|
+
flash: 'auto',
|
|
11
|
+
borderWidth: 0,
|
|
12
|
+
borderStyle: 'solid',
|
|
13
|
+
borderColor: '#ffffff',
|
|
14
|
+
borderRadius: 0,
|
|
15
|
+
backgroundColor: '#ffffff',
|
|
16
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
updateLayout: string;
|
|
6
|
+
mode: string;
|
|
7
|
+
resolution: string;
|
|
8
|
+
devicePosition: string;
|
|
9
|
+
flash: string;
|
|
10
|
+
borderWidth: string;
|
|
11
|
+
borderStyle: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
borderRadiusTopLeft: string;
|
|
15
|
+
borderRadiusTopRight: string;
|
|
16
|
+
borderRadiusBottomLeft: string;
|
|
17
|
+
borderRadiusBottomRight: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
onBindstop: string;
|
|
20
|
+
onError: string;
|
|
21
|
+
onInitdone: string;
|
|
22
|
+
disableScroll: string;
|
|
23
|
+
hoverClass: string;
|
|
24
|
+
hoverClassName: string;
|
|
25
|
+
hoverStartTime: string;
|
|
26
|
+
hoverStayTime: string;
|
|
27
|
+
hidden: string;
|
|
28
|
+
animation: string;
|
|
29
|
+
hoverStopPropagation: string;
|
|
30
|
+
onTap: string;
|
|
31
|
+
onClick: string;
|
|
32
|
+
onTouchStart: string;
|
|
33
|
+
onTouchMove: string;
|
|
34
|
+
onTouchEnd: string;
|
|
35
|
+
onTouchCancel: string;
|
|
36
|
+
onLongTap: string;
|
|
37
|
+
onLongClick: string;
|
|
38
|
+
onLongPress: string;
|
|
39
|
+
onTransitionEnd: string;
|
|
40
|
+
onAnimationIteration: string;
|
|
41
|
+
onAnimationStart: string;
|
|
42
|
+
onAnimationEnd: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', style: 'style', updateLayout: 'update-layout', mode: 'mode', resolution: 'resolution', devicePosition: 'device-position', flash: 'flash', 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', onBindstop: 'bind:bindstop', onError: 'bind:error', onInitdone: 'bind:initdone' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GenericEvent } from '../../types';
|
|
3
|
+
export interface CanvasProps {
|
|
4
|
+
readonly dataset?: DOMStringMap;
|
|
5
|
+
id?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
onTap?: (e: any) => void;
|
|
9
|
+
type?: string;
|
|
10
|
+
canvasId?: string;
|
|
11
|
+
disableScroll?: string;
|
|
12
|
+
onTouchStart?: (event: GenericEvent) => void;
|
|
13
|
+
onTouchMove?: (event: GenericEvent) => void;
|
|
14
|
+
onTouchEnd?: (event: GenericEvent) => void;
|
|
15
|
+
onTouchCancel?: (event: GenericEvent) => void;
|
|
16
|
+
onLongTap?: (event: GenericEvent) => void;
|
|
17
|
+
onError?: (event: GenericEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const Canvas: React.ComponentType<CanvasProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
style: string;
|
|
4
|
+
className: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
disableScroll: string;
|
|
7
|
+
type: string;
|
|
8
|
+
canvasId: string;
|
|
9
|
+
onTouchStart: string;
|
|
10
|
+
onTouchMove: string;
|
|
11
|
+
onTouchEnd: string;
|
|
12
|
+
onTouchCancel: string;
|
|
13
|
+
onError: string;
|
|
14
|
+
onLongTap: string;
|
|
15
|
+
onLongClick: string;
|
|
16
|
+
onTap: string;
|
|
17
|
+
onClick: string;
|
|
18
|
+
hoverClass: string;
|
|
19
|
+
hoverClassName: string;
|
|
20
|
+
hoverStartTime: string;
|
|
21
|
+
hoverStayTime: string;
|
|
22
|
+
hidden: string;
|
|
23
|
+
hoverStopPropagation: string;
|
|
24
|
+
onLongPress: string;
|
|
25
|
+
onTransitionEnd: string;
|
|
26
|
+
onAnimationIteration: string;
|
|
27
|
+
onAnimationStart: string;
|
|
28
|
+
onAnimationEnd: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', style: 'style', className: 'class', animation: 'animation', disableScroll: 'disable-scroll', type: 'type', canvasId: 'canvas-id', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onError: 'binderror', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onTap: 'bindtap', onClick: 'bindtap' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface CheckboxProps extends BaseProps {
|
|
4
|
+
/** checkbox 标识,选中时触发 checkbox-group 的 change 事件,并携带 checkbox 的 value */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 当前是否选中,可用来设置默认选中 */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
/** (default: #09BB07) checkbox的颜色,同css的color */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Checkbox: React.ComponentType<CheckboxProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Checkbox = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.Checkbox = (0, runtime_1.createHostComponent)('checkbox');
|
|
6
|
+
exports.Checkbox.defaultProps = {
|
|
7
|
+
// disabled: false,
|
|
8
|
+
// checked: false,
|
|
9
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
value: string;
|
|
7
|
+
checked: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
color: 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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', checked: 'checked', disabled: 'disabled', color: 'color' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as 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 的数组]}
|
|
7
|
+
*/
|
|
8
|
+
onChange?: (event: GenericEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const CheckboxGroup: React.ComponentType<CheckboxGroupProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
name: string;
|
|
7
|
+
onChange: string;
|
|
8
|
+
disableScroll: string;
|
|
9
|
+
hoverClass: string;
|
|
10
|
+
hoverClassName: string;
|
|
11
|
+
hoverStartTime: string;
|
|
12
|
+
hoverStayTime: string;
|
|
13
|
+
hidden: string;
|
|
14
|
+
hoverStopPropagation: string;
|
|
15
|
+
onTap: string;
|
|
16
|
+
onClick: string;
|
|
17
|
+
onTouchStart: string;
|
|
18
|
+
onTouchMove: string;
|
|
19
|
+
onTouchEnd: string;
|
|
20
|
+
onTouchCancel: string;
|
|
21
|
+
onLongTap: string;
|
|
22
|
+
onLongClick: string;
|
|
23
|
+
onLongPress: string;
|
|
24
|
+
onTransitionEnd: string;
|
|
25
|
+
onAnimationIteration: string;
|
|
26
|
+
onAnimationStart: string;
|
|
27
|
+
onAnimationEnd: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', onChange: 'bindchange' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -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,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Form = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.Form = (0, runtime_1.createHostComponent)('form');
|
|
6
|
+
exports.Form.defaultProps = {
|
|
7
|
+
// reportSubmit: false,
|
|
8
|
+
reportSubmitTimeout: 0,
|
|
9
|
+
};
|
|
@@ -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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', style: 'style', animation: 'animation', reportSubmit: 'report-submit', onSubmit: 'bindsubmit', onReset: 'bindreset', reportSubmitTimeout: 'report-submit-timeout' });
|
|
6
|
+
exports.props = Object.values(exports.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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: 'bindmessage' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Image = void 0;
|
|
4
|
+
const runtime_1 = require("@ray-core/runtime");
|
|
5
|
+
exports.Image = (0, runtime_1.createHostComponent)('image');
|
|
6
|
+
exports.Image.defaultProps = {
|
|
7
|
+
mode: 'scaleToFill',
|
|
8
|
+
};
|
|
@@ -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,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.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' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|