@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,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
style: string;
|
|
4
|
+
className: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
scaleArea: string;
|
|
7
|
+
disableScroll: string;
|
|
8
|
+
hoverClass: string;
|
|
9
|
+
hoverClassName: string;
|
|
10
|
+
hoverStartTime: string;
|
|
11
|
+
hoverStayTime: string;
|
|
12
|
+
hidden: string;
|
|
13
|
+
hoverStopPropagation: string;
|
|
14
|
+
onTap: string;
|
|
15
|
+
onClick: 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,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface MovableViewProps extends Omit<BaseProps, 'animation'> {
|
|
4
|
+
direction?: string;
|
|
5
|
+
inertia?: boolean;
|
|
6
|
+
outOfBounds?: boolean;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
damping?: number;
|
|
10
|
+
friction?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
scale?: boolean;
|
|
13
|
+
scaleMin?: number;
|
|
14
|
+
scaleMax?: number;
|
|
15
|
+
scaleValue?: number;
|
|
16
|
+
animation?: boolean;
|
|
17
|
+
onChange?: (event: GenericEvent) => void;
|
|
18
|
+
onScale?: (event: GenericEvent) => void;
|
|
19
|
+
htouchmove?: (event: GenericEvent) => void;
|
|
20
|
+
vtouchmove?: (event: GenericEvent) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
24
|
+
*/
|
|
25
|
+
export declare const MovableView: React.ComponentType<MovableViewProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
4
|
+
*/
|
|
5
|
+
export const MovableView = createHostComponent('movable-view');
|
|
6
|
+
MovableView.defaultProps = {
|
|
7
|
+
direction: 'none',
|
|
8
|
+
inertia: false,
|
|
9
|
+
outOfBounds: false,
|
|
10
|
+
damping: 20,
|
|
11
|
+
friction: 2,
|
|
12
|
+
disabled: false,
|
|
13
|
+
scale: false,
|
|
14
|
+
scaleMin: 0.5,
|
|
15
|
+
scaleMax: 10,
|
|
16
|
+
scaleValue: 1,
|
|
17
|
+
animation: true,
|
|
18
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
style: string;
|
|
5
|
+
id: string;
|
|
6
|
+
direction: string;
|
|
7
|
+
inertia: string;
|
|
8
|
+
outOfBounds: string;
|
|
9
|
+
x: string;
|
|
10
|
+
y: string;
|
|
11
|
+
damping: string;
|
|
12
|
+
friction: string;
|
|
13
|
+
disabled: string;
|
|
14
|
+
scale: string;
|
|
15
|
+
scaleMin: string;
|
|
16
|
+
scaleMax: string;
|
|
17
|
+
scaleValue: string;
|
|
18
|
+
onChange: string;
|
|
19
|
+
onScale: string;
|
|
20
|
+
htouchmove: string;
|
|
21
|
+
vtouchmove: string;
|
|
22
|
+
disableScroll: string;
|
|
23
|
+
hoverClass: string;
|
|
24
|
+
hoverClassName: string;
|
|
25
|
+
hoverStartTime: string;
|
|
26
|
+
hoverStayTime: string;
|
|
27
|
+
hidden: string;
|
|
28
|
+
hoverStopPropagation: string;
|
|
29
|
+
onTap: string;
|
|
30
|
+
onClick: string;
|
|
31
|
+
onTouchStart: string;
|
|
32
|
+
onTouchMove: string;
|
|
33
|
+
onTouchEnd: string;
|
|
34
|
+
onTouchCancel: string;
|
|
35
|
+
onLongTap: string;
|
|
36
|
+
onLongClick: string;
|
|
37
|
+
onLongPress: string;
|
|
38
|
+
onTransitionEnd: string;
|
|
39
|
+
onAnimationIteration: string;
|
|
40
|
+
onAnimationStart: string;
|
|
41
|
+
onAnimationEnd: string;
|
|
42
|
+
};
|
|
43
|
+
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', direction: 'direction', inertia: 'inertia', outOfBounds: 'out-of-bounds', x: 'x', y: 'y', damping: 'damping', friction: 'friction', disabled: 'disabled', scale: 'scale', scaleMin: 'scale-min', scaleMax: 'scale-max', scaleValue: 'scale-value', onChange: 'bindchange', onScale: 'bindscale', htouchmove: 'htouchmove', vtouchmove: 'vtouchmove' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer } from '../../types/component';
|
|
3
|
+
export interface NativeVideoProps extends BaseProps, DiffLayer {
|
|
4
|
+
src: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
initialTime?: number;
|
|
11
|
+
showFullscreenBtn?: boolean;
|
|
12
|
+
showPlayBtn?: boolean;
|
|
13
|
+
showCenterPlayBtn?: boolean;
|
|
14
|
+
objectFit?: string;
|
|
15
|
+
poster?: string;
|
|
16
|
+
showMuteBtn?: boolean;
|
|
17
|
+
borderWidth?: number;
|
|
18
|
+
borderStyle?: string;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
borderRadius?: number;
|
|
21
|
+
borderRadiusTopLeft?: number;
|
|
22
|
+
borderRadiusTopRight?: number;
|
|
23
|
+
borderRadiusBottomLeft?: number;
|
|
24
|
+
borderRadiusBottomRight?: number;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
onPlay?: (event: any) => void;
|
|
27
|
+
onPause?: (event: any) => void;
|
|
28
|
+
onEnded?: (event: any) => void;
|
|
29
|
+
onTimeupdate?: (event: any) => void;
|
|
30
|
+
onFullscreenchange?: (event: any) => void;
|
|
31
|
+
onWaiting?: (event: any) => void;
|
|
32
|
+
onError?: (event: any) => void;
|
|
33
|
+
onProgress?: (event: any) => void;
|
|
34
|
+
onLoadedmetadata?: (event: any) => void;
|
|
35
|
+
onControlstoggle?: (event: any) => void;
|
|
36
|
+
onSeekcomplete?: (event: any) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const NativeVideo: React.ComponentType<NativeVideoProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const NativeVideo = createHostComponent('native-video');
|
|
3
|
+
NativeVideo.defaultProps = {
|
|
4
|
+
controls: true,
|
|
5
|
+
autoplay: false,
|
|
6
|
+
loop: false,
|
|
7
|
+
muted: false,
|
|
8
|
+
initialTime: 0,
|
|
9
|
+
showFullscreenBtn: true,
|
|
10
|
+
showPlayBtn: true,
|
|
11
|
+
objectFit: 'contain',
|
|
12
|
+
showMuteBtn: false,
|
|
13
|
+
borderWidth: 0,
|
|
14
|
+
borderStyle: 'solid',
|
|
15
|
+
borderColor: '#ffffff',
|
|
16
|
+
borderRadius: 0,
|
|
17
|
+
backgroundColor: '#ffffff',
|
|
18
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
style: string;
|
|
5
|
+
id: string;
|
|
6
|
+
updateLayout: string;
|
|
7
|
+
src: string;
|
|
8
|
+
duration: string;
|
|
9
|
+
controls: string;
|
|
10
|
+
autoplay: string;
|
|
11
|
+
loop: string;
|
|
12
|
+
muted: string;
|
|
13
|
+
initialTime: string;
|
|
14
|
+
showFullscreenBtn: string;
|
|
15
|
+
showPlayBtn: string;
|
|
16
|
+
showCenterPlayBtn: string;
|
|
17
|
+
objectFit: string;
|
|
18
|
+
poster: string;
|
|
19
|
+
showMuteBtn: string;
|
|
20
|
+
borderWidth: string;
|
|
21
|
+
borderStyle: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
borderRadiusTopLeft: string;
|
|
25
|
+
borderRadiusTopRight: string;
|
|
26
|
+
borderRadiusBottomLeft: string;
|
|
27
|
+
borderRadiusBottomRight: string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
onPlay: string;
|
|
30
|
+
onPause: string;
|
|
31
|
+
onEnded: string;
|
|
32
|
+
onTimeupdate: string;
|
|
33
|
+
onFullscreenchange: string;
|
|
34
|
+
onWaiting: string;
|
|
35
|
+
onError: string;
|
|
36
|
+
onProgress: string;
|
|
37
|
+
onLoadedmetadata: string;
|
|
38
|
+
onControlstoggle: string;
|
|
39
|
+
onSeekcomplete: string;
|
|
40
|
+
disableScroll: string;
|
|
41
|
+
hoverClass: string;
|
|
42
|
+
hoverClassName: string;
|
|
43
|
+
hoverStartTime: string;
|
|
44
|
+
hoverStayTime: string;
|
|
45
|
+
hidden: string;
|
|
46
|
+
hoverStopPropagation: string;
|
|
47
|
+
onTap: string;
|
|
48
|
+
onClick: string;
|
|
49
|
+
onTouchStart: string;
|
|
50
|
+
onTouchMove: string;
|
|
51
|
+
onTouchEnd: string;
|
|
52
|
+
onTouchCancel: string;
|
|
53
|
+
onLongTap: string;
|
|
54
|
+
onLongClick: string;
|
|
55
|
+
onLongPress: string;
|
|
56
|
+
onTransitionEnd: string;
|
|
57
|
+
onAnimationIteration: string;
|
|
58
|
+
onAnimationStart: string;
|
|
59
|
+
onAnimationEnd: string;
|
|
60
|
+
};
|
|
61
|
+
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', updateLayout: 'update-layout', src: 'src', duration: 'duration', controls: 'controls', autoplay: 'autoplay', loop: 'loop', muted: 'muted', initialTime: 'initial-time', showFullscreenBtn: 'show-fullscreen-btn', showPlayBtn: 'show-play-btn', showCenterPlayBtn: 'show-center-play-btn', objectFit: 'object-fit', poster: 'poster', showMuteBtn: 'show-mute-btn', 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', onPlay: 'bind:play', onPause: 'bind:pause', onEnded: 'bind:ended', onTimeupdate: 'bind:timeupdate', onFullscreenchange: 'bind:fullscreenchange', onWaiting: 'bind:waiting', onError: 'bind:error', onProgress: 'bind:progress', onLoadedmetadata: 'bind:loadedmetadata', onControlstoggle: 'bind:controlstoggle', onSeekcomplete: 'bind:seekcomplete' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface NavigatorProps extends BaseProps {
|
|
4
|
+
/** (default: self) 在哪个目标上发生跳转,默认当前小程序 2.0.7 */
|
|
5
|
+
target?: 'self' | 'miniProgram';
|
|
6
|
+
/** 当前小程序内的跳转链接 1.0.0 */
|
|
7
|
+
url?: string;
|
|
8
|
+
/** (default: navigate) 跳转方式 1.0.0 */
|
|
9
|
+
openType?: 'navigate' | 'redirect' | 'switchTab' | 'reLaunch' | 'navigateBack' | 'exit';
|
|
10
|
+
/** (default: 1) 当 open-type 为 'navigateBack' 时有效,表示回退的层数 1.0.0 */
|
|
11
|
+
delta?: number;
|
|
12
|
+
/** 当target="miniProgram"时有效,要打开的小程序 appId 2.0.7 */
|
|
13
|
+
appId?: string;
|
|
14
|
+
/** 当target="miniProgram"时有效,打开的页面路径,如果为空则打开首页 2.0.7 */
|
|
15
|
+
path?: string;
|
|
16
|
+
/** 当target="miniProgram"时有效,需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情 2.0.7 */
|
|
17
|
+
extraData?: any;
|
|
18
|
+
/** (default: release) 当target="miniProgram"时有效,要打开的小程序版本 2.0.7 */
|
|
19
|
+
version?: 'develop' | 'trial' | 'release';
|
|
20
|
+
/** (default: navigator-hover) 指定点击时的样式类,当hover-class="none"时,没有点击态效果 1.0.0 */
|
|
21
|
+
hoverClassName?: string;
|
|
22
|
+
/** (default: false) 指定是否阻止本节点的祖先节点出现点击态 1.5.0 */
|
|
23
|
+
hoverStopPropagation?: boolean;
|
|
24
|
+
/** (default: 50) 按住后多久出现点击态,单位毫秒 1.0.0 */
|
|
25
|
+
hoverStartTime?: number;
|
|
26
|
+
/** (default: 600) 手指松开后点击态保留时间,单位毫秒 1.0.0 */
|
|
27
|
+
hoverStayTime?: number;
|
|
28
|
+
/** 当target="miniProgram"时有效,跳转小程序成功 2.0.7 */
|
|
29
|
+
onSuccess?: (event: GenericEvent) => any;
|
|
30
|
+
/** 当target="miniProgram"时有效,跳转小程序失败 2.0.7 */
|
|
31
|
+
onFail?: (event: GenericEvent) => any;
|
|
32
|
+
/** 当target="miniProgram"时有效,跳转小程序完成 2.0.7 */
|
|
33
|
+
onComplete?: (event: GenericEvent) => any;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
37
|
+
*/
|
|
38
|
+
export declare const Navigator: React.ComponentType<NavigatorProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
4
|
+
*/
|
|
5
|
+
export const Navigator = createHostComponent('navigator');
|
|
6
|
+
Navigator.defaultProps = {
|
|
7
|
+
target: 'self',
|
|
8
|
+
openType: 'navigate',
|
|
9
|
+
delta: 1,
|
|
10
|
+
hoverClassName: 'navigator-hover',
|
|
11
|
+
hoverStopPropagation: false,
|
|
12
|
+
hoverStartTime: 50,
|
|
13
|
+
hoverStayTime: 600,
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
openType: string;
|
|
7
|
+
hoverClass: string;
|
|
8
|
+
hoverClassName: string;
|
|
9
|
+
hoverStartTime: string;
|
|
10
|
+
hoverStayTime: string;
|
|
11
|
+
url: string;
|
|
12
|
+
target: string;
|
|
13
|
+
delta: string;
|
|
14
|
+
appId: string;
|
|
15
|
+
path: string;
|
|
16
|
+
extraData: string;
|
|
17
|
+
version: string;
|
|
18
|
+
hoverStopPropagation: string;
|
|
19
|
+
onSuccess: string;
|
|
20
|
+
onFail: string;
|
|
21
|
+
onComplete: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
openType: 'open-type',
|
|
7
|
+
hoverClass: 'hover-class',
|
|
8
|
+
hoverClassName: 'hover-class',
|
|
9
|
+
hoverStartTime: 'hover-start-time',
|
|
10
|
+
hoverStayTime: 'hover-stay-time',
|
|
11
|
+
url: 'url',
|
|
12
|
+
target: 'target',
|
|
13
|
+
delta: 'delta',
|
|
14
|
+
appId: 'app-id',
|
|
15
|
+
path: 'path',
|
|
16
|
+
extraData: 'extra-data',
|
|
17
|
+
version: 'version',
|
|
18
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
19
|
+
onSuccess: 'bindsuccess',
|
|
20
|
+
onFail: 'bindfail',
|
|
21
|
+
onComplete: 'bindcomplete',
|
|
22
|
+
};
|
|
23
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface PageContainerProps extends BaseProps {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
duration?: number;
|
|
6
|
+
zIndex?: number;
|
|
7
|
+
overlay?: boolean;
|
|
8
|
+
position?: 'top' | 'bottom' | 'right' | 'center';
|
|
9
|
+
round?: boolean;
|
|
10
|
+
overlayStyle?: string;
|
|
11
|
+
customStyle?: string;
|
|
12
|
+
onBeforeEnter?: (event: GenericEvent) => any;
|
|
13
|
+
onEnter?: (event: GenericEvent) => any;
|
|
14
|
+
onAfterEnter?: (event: GenericEvent) => any;
|
|
15
|
+
onBeforeLeave?: (event: GenericEvent) => any;
|
|
16
|
+
onLeave?: (event: GenericEvent) => any;
|
|
17
|
+
onAfterLeave?: (event: GenericEvent) => any;
|
|
18
|
+
onClickOverlay?: (event: GenericEvent) => any;
|
|
19
|
+
}
|
|
20
|
+
export declare const PageContainer: React.ComponentType<PageContainerProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const PageContainer = createHostComponent('page-container');
|
|
3
|
+
PageContainer.defaultProps = {
|
|
4
|
+
// show: false,
|
|
5
|
+
duration: 300,
|
|
6
|
+
zIndex: 100,
|
|
7
|
+
overlay: true,
|
|
8
|
+
position: 'bottom',
|
|
9
|
+
// round: false,
|
|
10
|
+
// closeOnSlideDown: false,
|
|
11
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
style: string;
|
|
5
|
+
id: string;
|
|
6
|
+
show: string;
|
|
7
|
+
duration: string;
|
|
8
|
+
zIndex: string;
|
|
9
|
+
overlay: string;
|
|
10
|
+
position: string;
|
|
11
|
+
round: string;
|
|
12
|
+
closeOnSlideDown: string;
|
|
13
|
+
overlayStyle: string;
|
|
14
|
+
customStyle: string;
|
|
15
|
+
onBeforeEnter: string;
|
|
16
|
+
onEnter: string;
|
|
17
|
+
onAfterEnter: string;
|
|
18
|
+
onBeforeLeave: string;
|
|
19
|
+
onLeave: string;
|
|
20
|
+
onAfterLeave: string;
|
|
21
|
+
onClickOverlay: string;
|
|
22
|
+
disableScroll: string;
|
|
23
|
+
hoverClass: string;
|
|
24
|
+
hoverClassName: string;
|
|
25
|
+
hoverStartTime: string;
|
|
26
|
+
hoverStayTime: string;
|
|
27
|
+
hidden: string;
|
|
28
|
+
hoverStopPropagation: string;
|
|
29
|
+
onTap: string;
|
|
30
|
+
onClick: string;
|
|
31
|
+
onTouchStart: string;
|
|
32
|
+
onTouchMove: string;
|
|
33
|
+
onTouchEnd: string;
|
|
34
|
+
onTouchCancel: string;
|
|
35
|
+
onLongTap: string;
|
|
36
|
+
onLongClick: string;
|
|
37
|
+
onLongPress: string;
|
|
38
|
+
onTransitionEnd: string;
|
|
39
|
+
onAnimationIteration: string;
|
|
40
|
+
onAnimationStart: string;
|
|
41
|
+
onAnimationEnd: string;
|
|
42
|
+
};
|
|
43
|
+
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', show: 'show', duration: 'duration', zIndex: 'z-index', overlay: 'overlay', position: 'position', round: 'round', closeOnSlideDown: 'close-on-slideDown', overlayStyle: 'overlay-style', customStyle: 'custom-style', onBeforeEnter: 'bindbeforeenter', onEnter: 'bindenter', onAfterEnter: 'bindafterenter', onBeforeLeave: 'bindbeforeleave', onLeave: 'bindleave', onAfterLeave: 'bindafterleave', onClickOverlay: 'bindclickoverlay' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface PickerProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
/**
|
|
6
|
+
* 选择器类型
|
|
7
|
+
*
|
|
8
|
+
* selector 普通选择器
|
|
9
|
+
* multiSelector 多列选择器
|
|
10
|
+
* time 时间选择器
|
|
11
|
+
* date 日期选择器
|
|
12
|
+
* region 省市区选择器
|
|
13
|
+
*/
|
|
14
|
+
mode?: 'selector' | 'multiSelector' | 'time' | 'date' | 'region';
|
|
15
|
+
/**
|
|
16
|
+
* 是否禁用
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 1.9.90
|
|
21
|
+
* 取消选择时触发
|
|
22
|
+
*/
|
|
23
|
+
onCancel?: (event: GenericEvent) => any;
|
|
24
|
+
onChange?: (event: GenericEvent) => void;
|
|
25
|
+
/**
|
|
26
|
+
* 列改变时触发
|
|
27
|
+
*/
|
|
28
|
+
onColumnChange?: (event: any) => void;
|
|
29
|
+
/**
|
|
30
|
+
* mode 为 selector 或 multiSelector 时,range 有效
|
|
31
|
+
*/
|
|
32
|
+
range?: any[];
|
|
33
|
+
/**
|
|
34
|
+
* 当 range 是一个 Object Array 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容
|
|
35
|
+
*/
|
|
36
|
+
rangeKey?: string;
|
|
37
|
+
value?: any;
|
|
38
|
+
/**
|
|
39
|
+
* mode = time
|
|
40
|
+
* 表示有效时间范围的开始,字符串格式为"hh:mm"
|
|
41
|
+
*
|
|
42
|
+
* mode = date
|
|
43
|
+
* 表示有效日期范围的开始,字符串格式为"YYYY-MM-DD"
|
|
44
|
+
*/
|
|
45
|
+
start?: string;
|
|
46
|
+
/**
|
|
47
|
+
* mode = time
|
|
48
|
+
* 表示有效时间范围的结束,字符串格式为"hh:mm"
|
|
49
|
+
*
|
|
50
|
+
* mode = date
|
|
51
|
+
* 表示有效日期范围的结束,字符串格式为"YYYY-MM-DD"
|
|
52
|
+
*/
|
|
53
|
+
end?: string;
|
|
54
|
+
/**
|
|
55
|
+
* 有效值 year,month,day,表示选择器的粒度
|
|
56
|
+
*/
|
|
57
|
+
fields?: 'year' | 'month' | 'day';
|
|
58
|
+
/**
|
|
59
|
+
* mode = region
|
|
60
|
+
* 可为每一列的顶部添加一个自定义的项
|
|
61
|
+
*/
|
|
62
|
+
customItem?: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const Picker: React.ComponentType<PickerProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Picker = createHostComponent('picker');
|
|
3
|
+
Picker.defaultProps = {
|
|
4
|
+
mode: 'selector',
|
|
5
|
+
// disabled: false,
|
|
6
|
+
// FIXME: value 的值与 mode 类型变化
|
|
7
|
+
// value: 0,
|
|
8
|
+
range: [],
|
|
9
|
+
fields: 'day',
|
|
10
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
className: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
style: string;
|
|
7
|
+
mode: string;
|
|
8
|
+
range: string;
|
|
9
|
+
rangeKey: string;
|
|
10
|
+
value: string;
|
|
11
|
+
onChange: string;
|
|
12
|
+
onCancel: string;
|
|
13
|
+
onColumnChange: string;
|
|
14
|
+
start: string;
|
|
15
|
+
end: string;
|
|
16
|
+
fields: string;
|
|
17
|
+
customItem: string;
|
|
18
|
+
disabled: string;
|
|
19
|
+
onClick: string;
|
|
20
|
+
onTap: string;
|
|
21
|
+
disableScroll: string;
|
|
22
|
+
hoverClass: string;
|
|
23
|
+
hoverClassName: string;
|
|
24
|
+
hoverStartTime: string;
|
|
25
|
+
hoverStayTime: string;
|
|
26
|
+
hidden: string;
|
|
27
|
+
hoverStopPropagation: string;
|
|
28
|
+
onTouchStart: string;
|
|
29
|
+
onTouchMove: string;
|
|
30
|
+
onTouchEnd: string;
|
|
31
|
+
onTouchCancel: string;
|
|
32
|
+
onLongTap: string;
|
|
33
|
+
onLongClick: string;
|
|
34
|
+
onLongPress: string;
|
|
35
|
+
onTransitionEnd: string;
|
|
36
|
+
onAnimationIteration: string;
|
|
37
|
+
onAnimationStart: string;
|
|
38
|
+
onAnimationEnd: string;
|
|
39
|
+
};
|
|
40
|
+
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', name: 'name', className: 'class', animation: 'animation', style: 'style', mode: 'mode', range: 'range', rangeKey: 'range-key', value: 'value', onChange: 'bindchange', onCancel: 'bindcancel', onColumnChange: 'bindcolumnchange', start: 'start', end: 'end', fields: 'fields', customItem: 'custom-item', disabled: 'disabled', onClick: 'bindtap', onTap: 'bindtap' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface PickerViewProps extends BaseProps {
|
|
4
|
+
/** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
|
|
5
|
+
value?: number[];
|
|
6
|
+
/** 设置选择器中间选中框的样式 */
|
|
7
|
+
indicatorStyle?: React.CSSProperties;
|
|
8
|
+
/** 设置蒙层的样式 */
|
|
9
|
+
maskStyle?: React.CSSProperties;
|
|
10
|
+
/** 滚动选择时触发 change 事件,event.detail = {value};value 为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始) */
|
|
11
|
+
onChange?: (event: GenericEvent) => any;
|
|
12
|
+
/** 当滚动选择开始时候触发事件 */
|
|
13
|
+
onPickstart?: (event: GenericEvent) => any;
|
|
14
|
+
/** 当滚动选择结束时候触发事件 */
|
|
15
|
+
onPickend?: (event: GenericEvent) => any;
|
|
16
|
+
}
|
|
17
|
+
export declare const PickerView: React.ComponentType<PickerViewProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
value: string;
|
|
3
|
+
indicatorStyle: string;
|
|
4
|
+
maskStyle: string;
|
|
5
|
+
onChange: string;
|
|
6
|
+
onPickstart: string;
|
|
7
|
+
onPickend: string;
|
|
8
|
+
id: string;
|
|
9
|
+
disableScroll: string;
|
|
10
|
+
hoverClass: string;
|
|
11
|
+
hoverClassName: string;
|
|
12
|
+
hoverStartTime: string;
|
|
13
|
+
hoverStayTime: string;
|
|
14
|
+
hidden: string;
|
|
15
|
+
className: string;
|
|
16
|
+
animation: string;
|
|
17
|
+
style: string;
|
|
18
|
+
hoverStopPropagation: string;
|
|
19
|
+
onTap: string;
|
|
20
|
+
onClick: string;
|
|
21
|
+
onTouchStart: string;
|
|
22
|
+
onTouchMove: string;
|
|
23
|
+
onTouchEnd: string;
|
|
24
|
+
onTouchCancel: string;
|
|
25
|
+
onLongTap: string;
|
|
26
|
+
onLongClick: string;
|
|
27
|
+
onLongPress: string;
|
|
28
|
+
onTransitionEnd: string;
|
|
29
|
+
onAnimationIteration: string;
|
|
30
|
+
onAnimationStart: string;
|
|
31
|
+
onAnimationEnd: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange', onPickstart: 'bindpickstart', onPickend: 'bindpickend' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: 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[];
|