@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,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface ProgressProps extends BaseProps {
|
|
4
|
+
percent?: number;
|
|
5
|
+
showInfo?: boolean;
|
|
6
|
+
borderRadius?: number | string;
|
|
7
|
+
fontSize?: number | string;
|
|
8
|
+
strokeWidth?: number | string;
|
|
9
|
+
activeColor?: string;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
activeMode?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Progress: React.ComponentType<ProgressProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Progress = createHostComponent('progress');
|
|
3
|
+
Progress.defaultProps = {
|
|
4
|
+
borderRadius: 0,
|
|
5
|
+
fontSize: 16,
|
|
6
|
+
strokeWidth: 6,
|
|
7
|
+
activeColor: '#007aff',
|
|
8
|
+
backgroundColor: 'rgba(0,0,0,.04)',
|
|
9
|
+
activeMode: 'backwards',
|
|
10
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
animation: string;
|
|
4
|
+
id: string;
|
|
5
|
+
style: string;
|
|
6
|
+
percent: string;
|
|
7
|
+
showInfo: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
strokeWidth: string;
|
|
11
|
+
activeColor: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
active: string;
|
|
14
|
+
activeMode: string;
|
|
15
|
+
disableScroll: string;
|
|
16
|
+
hoverClass: string;
|
|
17
|
+
hoverClassName: string;
|
|
18
|
+
hoverStartTime: string;
|
|
19
|
+
hoverStayTime: string;
|
|
20
|
+
hidden: string;
|
|
21
|
+
hoverStopPropagation: string;
|
|
22
|
+
onTap: string;
|
|
23
|
+
onClick: string;
|
|
24
|
+
onTouchStart: string;
|
|
25
|
+
onTouchMove: string;
|
|
26
|
+
onTouchEnd: string;
|
|
27
|
+
onTouchCancel: string;
|
|
28
|
+
onLongTap: string;
|
|
29
|
+
onLongClick: string;
|
|
30
|
+
onLongPress: string;
|
|
31
|
+
onTransitionEnd: string;
|
|
32
|
+
onAnimationIteration: string;
|
|
33
|
+
onAnimationStart: string;
|
|
34
|
+
onAnimationEnd: string;
|
|
35
|
+
};
|
|
36
|
+
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', id: 'id', style: 'style', percent: 'percent', showInfo: 'show-info', borderRadius: 'border-radius', fontSize: 'font-size', strokeWidth: 'stroke-width', activeColor: 'active-Color', backgroundColor: 'background-color', active: 'active', activeMode: 'active-mode' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface RadioProps extends BaseProps {
|
|
4
|
+
/** radio 标识。当该radio 选中时,radio-group 的 change 事件会携带radio的value */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** (default: false) 当前是否选中 */
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
/** (default: false) 是否禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** (default: #09BB07) radio的颜色,同css的color */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Radio: React.ComponentType<RadioProps>;
|
|
@@ -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,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', checked: 'checked', disabled: 'disabled', color: 'color' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface RadioGroupProps extends BaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 用于 <form /> 组件,在表单提交事件中作为提交数据的 key 值
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/** radio-group 中选中项发生改变时触发 change 事件,detail = {value:[选中的 radio 的 value 的数组]} */
|
|
9
|
+
onChange?: (event: GenericEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const RadioGroup: React.ComponentType<RadioGroupProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
onChange: string;
|
|
7
|
+
name: 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,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', onChange: 'bindchange', name: 'name' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
type RichTextNode = {
|
|
4
|
+
name: string;
|
|
5
|
+
attrs?: Record<string, unknown>;
|
|
6
|
+
children?: RichTextNode[];
|
|
7
|
+
};
|
|
8
|
+
export interface RichTextProps extends BaseProps {
|
|
9
|
+
/** 节点列表/HTML String,现支持两种节点,通过 type 来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的 HTML 节点。 */
|
|
10
|
+
nodes?: string | RichTextNode[];
|
|
11
|
+
}
|
|
12
|
+
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
nodes: string;
|
|
3
|
+
id: string;
|
|
4
|
+
disableScroll: string;
|
|
5
|
+
hoverClass: string;
|
|
6
|
+
hoverClassName: string;
|
|
7
|
+
hoverStartTime: string;
|
|
8
|
+
hoverStayTime: string;
|
|
9
|
+
hidden: string;
|
|
10
|
+
className: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
style: 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,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface ScrollViewProps extends BaseProps {
|
|
4
|
+
scrollX?: boolean;
|
|
5
|
+
scrollY?: boolean;
|
|
6
|
+
upperThreshold?: number | string;
|
|
7
|
+
lowerThreshold?: number | string;
|
|
8
|
+
scrollTop?: number | string;
|
|
9
|
+
scrollLeft?: number | string;
|
|
10
|
+
scrollIntoView?: string;
|
|
11
|
+
scrollWithAnimation?: boolean;
|
|
12
|
+
onScroll?: (event: GenericEvent) => void;
|
|
13
|
+
onScrollToUpper?: (event: GenericEvent) => void;
|
|
14
|
+
onScrollToLower?: (event: GenericEvent) => void;
|
|
15
|
+
enableBackToTop?: boolean;
|
|
16
|
+
enableFlex?: boolean;
|
|
17
|
+
refresherEnabled?: boolean;
|
|
18
|
+
refresherThreshold?: number;
|
|
19
|
+
refresherDefaultStyle?: string;
|
|
20
|
+
refresherBackground?: string;
|
|
21
|
+
refresherTriggered: boolean;
|
|
22
|
+
onRefresherPulling?: (event: GenericEvent) => void;
|
|
23
|
+
onRefresherpulling?: (event: GenericEvent) => void;
|
|
24
|
+
onRefresherRefresh?: (event: GenericEvent) => void;
|
|
25
|
+
onRefresherrefresh?: (event: GenericEvent) => void;
|
|
26
|
+
onRefresherRestore?: (event: GenericEvent) => void;
|
|
27
|
+
onRefresherrestore?: (event: GenericEvent) => void;
|
|
28
|
+
onRefresherAbort?: (event: GenericEvent) => void;
|
|
29
|
+
onRefresherabort?: (event: GenericEvent) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const ScrollView = createHostComponent('scroll-view');
|
|
3
|
+
ScrollView.defaultProps = {
|
|
4
|
+
upperThreshold: 50,
|
|
5
|
+
lowerThreshold: 50,
|
|
6
|
+
scrollX: false,
|
|
7
|
+
scrollY: false,
|
|
8
|
+
scrollWithAnimation: false,
|
|
9
|
+
refresherEnabled: false,
|
|
10
|
+
refresherThreshold: 45,
|
|
11
|
+
refresherDefaultStyle: 'black',
|
|
12
|
+
refresherBackground: '#FFF',
|
|
13
|
+
refresherTriggered: false,
|
|
14
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
scrollX: string;
|
|
7
|
+
scrollY: string;
|
|
8
|
+
upperThreshold: string;
|
|
9
|
+
lowerThreshold: string;
|
|
10
|
+
scrollTop: string;
|
|
11
|
+
scrollLeft: string;
|
|
12
|
+
scrollIntoView: string;
|
|
13
|
+
scrollWithAnimation: string;
|
|
14
|
+
enableBackToTop: string;
|
|
15
|
+
enableFlex: string;
|
|
16
|
+
onScrollToUpper: string;
|
|
17
|
+
onScrollToLower: string;
|
|
18
|
+
onScroll: string;
|
|
19
|
+
refresherEnabled: string;
|
|
20
|
+
refresherThreshold: string;
|
|
21
|
+
refresherDefaultStyle: string;
|
|
22
|
+
refresherBackground: string;
|
|
23
|
+
refresherTriggered: string;
|
|
24
|
+
onRefresherPulling: string;
|
|
25
|
+
onRefresherpulling: string;
|
|
26
|
+
onRefresherRefresh: string;
|
|
27
|
+
onRefresherrefresh: string;
|
|
28
|
+
onRefresherRestore: string;
|
|
29
|
+
onRefresherrestore: string;
|
|
30
|
+
onRefresherAbort: string;
|
|
31
|
+
onRefresherabort: 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,5 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', scrollX: 'scroll-x', scrollY: 'scroll-y', upperThreshold: 'upper-threshold', lowerThreshold: 'lower-threshold', scrollTop: 'scroll-top', scrollLeft: 'scroll-left', scrollIntoView: 'scroll-into-view', scrollWithAnimation: 'scroll-with-animation', enableBackToTop: 'enable-back-to-top', enableFlex: 'enable-flex', onScrollToUpper: 'bindscrolltoupper', onScrollToLower: 'bindscrolltolower', onScroll: 'bindscroll',
|
|
3
|
+
/* 0.9.3新增 */
|
|
4
|
+
refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', onRefresherPulling: 'bindrefresherpulling', onRefresherpulling: 'bindrefresherpulling', onRefresherRefresh: 'bindrefresherrefresh', onRefresherrefresh: 'bindrefresherrefresh', onRefresherRestore: 'bindrefresherrestore', onRefresherrestore: 'bindrefresherrestore', onRefresherAbort: 'bindrefresherabort', onRefresherabort: 'bindrefresherabort' });
|
|
5
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface SliderProps extends BaseProps {
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
value?: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
selecteColor?: string;
|
|
11
|
+
activeColor?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
blockSize?: number;
|
|
14
|
+
blockColor?: string;
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
onChange?: (event: {
|
|
17
|
+
type: 'change';
|
|
18
|
+
value: number;
|
|
19
|
+
origin: any;
|
|
20
|
+
}) => void;
|
|
21
|
+
onChanging?: (event: {
|
|
22
|
+
type: 'changing';
|
|
23
|
+
value: boolean;
|
|
24
|
+
origin: any;
|
|
25
|
+
}) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const Slider: React.ComponentType<SliderProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Slider = createHostComponent('slider');
|
|
3
|
+
Slider.defaultProps = {
|
|
4
|
+
min: 0,
|
|
5
|
+
max: 100,
|
|
6
|
+
step: 1,
|
|
7
|
+
value: 0,
|
|
8
|
+
blockSize: 28,
|
|
9
|
+
blockColor: '#ffffff',
|
|
10
|
+
// disabled: false,
|
|
11
|
+
// showValue: false,
|
|
12
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
min: string;
|
|
3
|
+
max: string;
|
|
4
|
+
step: string;
|
|
5
|
+
value: string;
|
|
6
|
+
color: string;
|
|
7
|
+
selecteColor: string;
|
|
8
|
+
activeColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
boxSize: string;
|
|
11
|
+
blockColor: string;
|
|
12
|
+
blockSize: string;
|
|
13
|
+
showValue: string;
|
|
14
|
+
onChange: string;
|
|
15
|
+
onChanging: string;
|
|
16
|
+
id: string;
|
|
17
|
+
disableScroll: string;
|
|
18
|
+
hoverClass: string;
|
|
19
|
+
hoverClassName: string;
|
|
20
|
+
hoverStartTime: string;
|
|
21
|
+
hoverStayTime: string;
|
|
22
|
+
hidden: string;
|
|
23
|
+
className: string;
|
|
24
|
+
animation: string;
|
|
25
|
+
style: 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), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', blockSize: 'blockSize', showValue: 'showValue', onChange: 'bindchange', onChanging: 'bindchanging' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface SwiperProps extends BaseProps {
|
|
4
|
+
indicatorDots?: boolean;
|
|
5
|
+
indicatorColor?: string;
|
|
6
|
+
indicatorActiveColor?: string;
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
current?: number;
|
|
9
|
+
interval?: number;
|
|
10
|
+
duration?: number;
|
|
11
|
+
circular?: boolean;
|
|
12
|
+
vertical?: boolean;
|
|
13
|
+
previousMargin?: string;
|
|
14
|
+
nextMargin?: string;
|
|
15
|
+
snapToEdge?: boolean;
|
|
16
|
+
displayMultipleItems?: number;
|
|
17
|
+
onChange?: (event: GenericEvent) => any;
|
|
18
|
+
onTransition?: (event: GenericEvent) => any;
|
|
19
|
+
onAnimationFinish?: (event: GenericEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
export declare const Swiper: React.ComponentType<SwiperProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Swiper = createHostComponent('swiper');
|
|
3
|
+
Swiper.defaultProps = {
|
|
4
|
+
indicatorColor: 'rgba(0, 0, 0, 0.3)',
|
|
5
|
+
indicatorActiveColor: '#000000',
|
|
6
|
+
current: 0,
|
|
7
|
+
interval: 5000,
|
|
8
|
+
duration: 500,
|
|
9
|
+
previousMargin: '0px',
|
|
10
|
+
nextMargin: '0px',
|
|
11
|
+
displayMultipleItems: 1,
|
|
12
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
indicatorDots: string;
|
|
7
|
+
indicatorColor: string;
|
|
8
|
+
indicatorActiveColor: string;
|
|
9
|
+
autoplay: string;
|
|
10
|
+
current: string;
|
|
11
|
+
interval: string;
|
|
12
|
+
duration: string;
|
|
13
|
+
circular: string;
|
|
14
|
+
vertical: string;
|
|
15
|
+
previousMargin: string;
|
|
16
|
+
nextMargin: string;
|
|
17
|
+
snapToEdge: string;
|
|
18
|
+
displayMultipleItems: string;
|
|
19
|
+
onChange: string;
|
|
20
|
+
onTransition: string;
|
|
21
|
+
onAnimationFinish: string;
|
|
22
|
+
onTap: string;
|
|
23
|
+
onClick: string;
|
|
24
|
+
disableScroll: string;
|
|
25
|
+
hoverClass: string;
|
|
26
|
+
hoverClassName: string;
|
|
27
|
+
hoverStartTime: string;
|
|
28
|
+
hoverStayTime: string;
|
|
29
|
+
hidden: string;
|
|
30
|
+
hoverStopPropagation: 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), { id: 'id', className: 'class', animation: 'animation', style: 'style', indicatorDots: 'indicator-dots', indicatorColor: 'indicator-color', indicatorActiveColor: 'indicator-active-color', autoplay: 'autoplay', current: 'current', interval: 'interval', duration: 'duration', circular: 'circular', vertical: 'vertical', previousMargin: 'previous-margin', nextMargin: 'next-margin', snapToEdge: 'snap-to-edge', displayMultipleItems: 'display-multiple-items', onChange: 'bindchange', onTransition: 'bingtransition', onAnimationFinish: 'bindanimationfinish', onTap: 'bindtap', onClick: 'bindtap' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
key: string;
|
|
3
|
+
id: string;
|
|
4
|
+
className: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
style: string;
|
|
7
|
+
itemId: 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,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface SwitchProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
/** (default: false) 是否选中 */
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
/** (default: false) 是否禁用 */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** switch 样式,有效值:switch, checkbox */
|
|
10
|
+
type?: 'switch' | 'checkbox';
|
|
11
|
+
/** #ffffff switch 的颜色,同 css 的 color */
|
|
12
|
+
color?: string;
|
|
13
|
+
/** checked 改变时触发 change 事件,event.detail={ value} */
|
|
14
|
+
onChange?: (event: GenericEvent) => any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
18
|
+
*/
|
|
19
|
+
export declare const Switch: React.ComponentType<SwitchProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
4
|
+
*/
|
|
5
|
+
export const Switch = createHostComponent('switch');
|
|
6
|
+
Switch.defaultProps = {
|
|
7
|
+
// checked: false,
|
|
8
|
+
// disabled: false,
|
|
9
|
+
type: 'switch',
|
|
10
|
+
color: '#ffffff',
|
|
11
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
name: string;
|
|
7
|
+
checked: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
color: string;
|
|
10
|
+
onChange: string;
|
|
11
|
+
type: string;
|
|
12
|
+
disableScroll: string;
|
|
13
|
+
hoverClass: string;
|
|
14
|
+
hoverClassName: string;
|
|
15
|
+
hoverStartTime: string;
|
|
16
|
+
hoverStayTime: string;
|
|
17
|
+
hidden: 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), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', checked: 'checked', disabled: 'disabled', color: 'color', onChange: 'bindchange', type: 'type' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface TextProps extends BaseProps {
|
|
4
|
+
userSelect?: boolean;
|
|
5
|
+
space?: 'ensp' | 'emsp' | 'nbsp';
|
|
6
|
+
decode?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Text: React.ComponentType<TextProps>;
|