@rsmax/toutiao 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/cjs/api/index.d.ts +2347 -0
- package/cjs/api/index.js +127 -0
- package/cjs/hostComponents/Button/index.d.ts +18 -0
- package/cjs/hostComponents/Button/index.js +15 -0
- package/cjs/hostComponents/Button/node.d.ts +34 -0
- package/cjs/hostComponents/Button/node.js +37 -0
- package/cjs/hostComponents/Canvas/index.d.ts +6 -0
- package/cjs/hostComponents/Canvas/index.js +5 -0
- package/cjs/hostComponents/Canvas/node.d.ts +19 -0
- package/cjs/hostComponents/Canvas/node.js +22 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +10 -0
- package/cjs/hostComponents/Checkbox/index.js +9 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +13 -0
- package/cjs/hostComponents/Checkbox/node.js +16 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +7 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +11 -0
- package/cjs/hostComponents/Form/index.d.ts +10 -0
- package/cjs/hostComponents/Form/index.js +8 -0
- package/cjs/hostComponents/Form/node.d.ts +11 -0
- package/cjs/hostComponents/Form/node.js +14 -0
- package/cjs/hostComponents/Icon/index.d.ts +8 -0
- package/cjs/hostComponents/Icon/index.js +8 -0
- package/cjs/hostComponents/Icon/node.d.ts +10 -0
- package/cjs/hostComponents/Icon/node.js +13 -0
- package/cjs/hostComponents/Image/index.d.ts +17 -0
- package/cjs/hostComponents/Image/index.js +9 -0
- package/cjs/hostComponents/Image/node.d.ts +19 -0
- package/cjs/hostComponents/Image/node.js +22 -0
- package/cjs/hostComponents/Input/index.d.ts +25 -0
- package/cjs/hostComponents/Input/index.js +17 -0
- package/cjs/hostComponents/Input/node.d.ts +32 -0
- package/cjs/hostComponents/Input/node.js +35 -0
- package/cjs/hostComponents/Label/index.d.ts +6 -0
- package/cjs/hostComponents/Label/index.js +5 -0
- package/cjs/hostComponents/Label/node.d.ts +8 -0
- package/cjs/hostComponents/Label/node.js +11 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/index.js +8 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +8 -0
- package/cjs/hostComponents/MovableArea/node.js +12 -0
- package/cjs/hostComponents/MovableView/index.d.ts +37 -0
- package/cjs/hostComponents/MovableView/index.js +20 -0
- package/cjs/hostComponents/MovableView/node.d.ts +26 -0
- package/cjs/hostComponents/MovableView/node.js +30 -0
- package/cjs/hostComponents/Navigator/index.d.ts +12 -0
- package/cjs/hostComponents/Navigator/index.js +12 -0
- package/cjs/hostComponents/Navigator/node.d.ts +23 -0
- package/cjs/hostComponents/Navigator/node.js +26 -0
- package/cjs/hostComponents/Picker/index.d.ts +45 -0
- package/cjs/hostComponents/Picker/index.js +9 -0
- package/cjs/hostComponents/Picker/node.d.ts +20 -0
- package/cjs/hostComponents/Picker/node.js +23 -0
- package/cjs/hostComponents/PickerView/index.d.ts +10 -0
- package/cjs/hostComponents/PickerView/index.js +5 -0
- package/cjs/hostComponents/PickerView/node.d.ts +18 -0
- package/cjs/hostComponents/PickerView/node.js +21 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +5 -0
- package/cjs/hostComponents/Progress/index.d.ts +12 -0
- package/cjs/hostComponents/Progress/index.js +14 -0
- package/cjs/hostComponents/Progress/node.d.ts +18 -0
- package/cjs/hostComponents/Progress/node.js +21 -0
- package/cjs/hostComponents/Radio/index.d.ts +10 -0
- package/cjs/hostComponents/Radio/index.js +10 -0
- package/cjs/hostComponents/Radio/node.d.ts +12 -0
- package/cjs/hostComponents/Radio/node.js +15 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +7 -0
- package/cjs/hostComponents/RadioGroup/index.js +5 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +9 -0
- package/cjs/hostComponents/RadioGroup/node.js +12 -0
- package/cjs/hostComponents/RichText/index.d.ts +12 -0
- package/cjs/hostComponents/RichText/index.js +5 -0
- package/cjs/hostComponents/RichText/node.d.ts +17 -0
- package/cjs/hostComponents/RichText/node.js +20 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +16 -0
- package/cjs/hostComponents/ScrollView/index.js +12 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +22 -0
- package/cjs/hostComponents/ScrollView/node.js +25 -0
- package/cjs/hostComponents/Slider/index.d.ts +20 -0
- package/cjs/hostComponents/Slider/index.js +19 -0
- package/cjs/hostComponents/Slider/node.d.ts +23 -0
- package/cjs/hostComponents/Slider/node.js +26 -0
- package/cjs/hostComponents/Swiper/index.d.ts +21 -0
- package/cjs/hostComponents/Swiper/index.js +20 -0
- package/cjs/hostComponents/Swiper/node.d.ts +26 -0
- package/cjs/hostComponents/Swiper/node.js +29 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +6 -0
- package/cjs/hostComponents/SwiperItem/index.js +5 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +9 -0
- package/cjs/hostComponents/SwiperItem/node.js +12 -0
- package/cjs/hostComponents/Switch/index.d.ts +11 -0
- package/cjs/hostComponents/Switch/index.js +11 -0
- package/cjs/hostComponents/Switch/node.d.ts +14 -0
- package/cjs/hostComponents/Switch/node.js +17 -0
- package/cjs/hostComponents/Text/index.d.ts +9 -0
- package/cjs/hostComponents/Text/index.js +10 -0
- package/cjs/hostComponents/Text/node.d.ts +11 -0
- package/cjs/hostComponents/Text/node.js +14 -0
- package/cjs/hostComponents/Textarea/index.d.ts +22 -0
- package/cjs/hostComponents/Textarea/index.js +16 -0
- package/cjs/hostComponents/Textarea/node.d.ts +33 -0
- package/cjs/hostComponents/Textarea/node.js +36 -0
- package/cjs/hostComponents/Video/index.d.ts +37 -0
- package/cjs/hostComponents/Video/index.js +14 -0
- package/cjs/hostComponents/Video/node.d.ts +42 -0
- package/cjs/hostComponents/Video/node.js +45 -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 +26 -0
- package/cjs/hostComponents/View/node.js +29 -0
- package/cjs/hostComponents/WebView/index.d.ts +8 -0
- package/cjs/hostComponents/WebView/index.js +8 -0
- package/cjs/hostComponents/WebView/node.d.ts +8 -0
- package/cjs/hostComponents/WebView/node.js +11 -0
- package/cjs/hostComponents/index.d.ts +29 -0
- package/cjs/hostComponents/index.js +45 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +85 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +19 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +51 -0
- package/cjs/types/component.d.ts +28 -0
- package/cjs/types/component.js +2 -0
- package/cjs/types/config.d.ts +192 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/index.js +17 -0
- package/esm/api/index.d.ts +2347 -0
- package/esm/api/index.js +122 -0
- package/esm/hostComponents/Button/index.d.ts +18 -0
- package/esm/hostComponents/Button/index.js +12 -0
- package/esm/hostComponents/Button/node.d.ts +34 -0
- package/esm/hostComponents/Button/node.js +34 -0
- package/esm/hostComponents/Canvas/index.d.ts +6 -0
- package/esm/hostComponents/Canvas/index.js +2 -0
- package/esm/hostComponents/Canvas/node.d.ts +19 -0
- package/esm/hostComponents/Canvas/node.js +19 -0
- package/esm/hostComponents/Checkbox/index.d.ts +10 -0
- package/esm/hostComponents/Checkbox/index.js +6 -0
- package/esm/hostComponents/Checkbox/node.d.ts +13 -0
- package/esm/hostComponents/Checkbox/node.js +13 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +7 -0
- package/esm/hostComponents/CheckboxGroup/index.js +2 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +8 -0
- package/esm/hostComponents/CheckboxGroup/node.js +8 -0
- package/esm/hostComponents/Form/index.d.ts +10 -0
- package/esm/hostComponents/Form/index.js +5 -0
- package/esm/hostComponents/Form/node.d.ts +11 -0
- package/esm/hostComponents/Form/node.js +11 -0
- package/esm/hostComponents/Icon/index.d.ts +8 -0
- package/esm/hostComponents/Icon/index.js +5 -0
- package/esm/hostComponents/Icon/node.d.ts +10 -0
- package/esm/hostComponents/Icon/node.js +10 -0
- package/esm/hostComponents/Image/index.d.ts +17 -0
- package/esm/hostComponents/Image/index.js +6 -0
- package/esm/hostComponents/Image/node.d.ts +19 -0
- package/esm/hostComponents/Image/node.js +19 -0
- package/esm/hostComponents/Input/index.d.ts +25 -0
- package/esm/hostComponents/Input/index.js +14 -0
- package/esm/hostComponents/Input/node.d.ts +32 -0
- package/esm/hostComponents/Input/node.js +32 -0
- package/esm/hostComponents/Label/index.d.ts +6 -0
- package/esm/hostComponents/Label/index.js +2 -0
- package/esm/hostComponents/Label/node.d.ts +8 -0
- package/esm/hostComponents/Label/node.js +8 -0
- package/esm/hostComponents/MovableArea/index.d.ts +10 -0
- package/esm/hostComponents/MovableArea/index.js +5 -0
- package/esm/hostComponents/MovableArea/node.d.ts +8 -0
- package/esm/hostComponents/MovableArea/node.js +9 -0
- package/esm/hostComponents/MovableView/index.d.ts +37 -0
- package/esm/hostComponents/MovableView/index.js +17 -0
- package/esm/hostComponents/MovableView/node.d.ts +26 -0
- package/esm/hostComponents/MovableView/node.js +27 -0
- package/esm/hostComponents/Navigator/index.d.ts +12 -0
- package/esm/hostComponents/Navigator/index.js +9 -0
- package/esm/hostComponents/Navigator/node.d.ts +23 -0
- package/esm/hostComponents/Navigator/node.js +23 -0
- package/esm/hostComponents/Picker/index.d.ts +45 -0
- package/esm/hostComponents/Picker/index.js +6 -0
- package/esm/hostComponents/Picker/node.d.ts +20 -0
- package/esm/hostComponents/Picker/node.js +20 -0
- package/esm/hostComponents/PickerView/index.d.ts +10 -0
- package/esm/hostComponents/PickerView/index.js +2 -0
- package/esm/hostComponents/PickerView/node.d.ts +18 -0
- package/esm/hostComponents/PickerView/node.js +18 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/index.js +2 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/node.js +2 -0
- package/esm/hostComponents/Progress/index.d.ts +12 -0
- package/esm/hostComponents/Progress/index.js +11 -0
- package/esm/hostComponents/Progress/node.d.ts +18 -0
- package/esm/hostComponents/Progress/node.js +18 -0
- package/esm/hostComponents/Radio/index.d.ts +10 -0
- package/esm/hostComponents/Radio/index.js +7 -0
- package/esm/hostComponents/Radio/node.d.ts +12 -0
- package/esm/hostComponents/Radio/node.js +12 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +7 -0
- package/esm/hostComponents/RadioGroup/index.js +2 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +9 -0
- package/esm/hostComponents/RadioGroup/node.js +9 -0
- package/esm/hostComponents/RichText/index.d.ts +12 -0
- package/esm/hostComponents/RichText/index.js +2 -0
- package/esm/hostComponents/RichText/node.d.ts +17 -0
- package/esm/hostComponents/RichText/node.js +17 -0
- package/esm/hostComponents/ScrollView/index.d.ts +16 -0
- package/esm/hostComponents/ScrollView/index.js +9 -0
- package/esm/hostComponents/ScrollView/node.d.ts +22 -0
- package/esm/hostComponents/ScrollView/node.js +22 -0
- package/esm/hostComponents/Slider/index.d.ts +20 -0
- package/esm/hostComponents/Slider/index.js +16 -0
- package/esm/hostComponents/Slider/node.d.ts +23 -0
- package/esm/hostComponents/Slider/node.js +23 -0
- package/esm/hostComponents/Swiper/index.d.ts +21 -0
- package/esm/hostComponents/Swiper/index.js +17 -0
- package/esm/hostComponents/Swiper/node.d.ts +26 -0
- package/esm/hostComponents/Swiper/node.js +26 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +6 -0
- package/esm/hostComponents/SwiperItem/index.js +2 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +9 -0
- package/esm/hostComponents/SwiperItem/node.js +9 -0
- package/esm/hostComponents/Switch/index.d.ts +11 -0
- package/esm/hostComponents/Switch/index.js +8 -0
- package/esm/hostComponents/Switch/node.d.ts +14 -0
- package/esm/hostComponents/Switch/node.js +14 -0
- package/esm/hostComponents/Text/index.d.ts +9 -0
- package/esm/hostComponents/Text/index.js +7 -0
- package/esm/hostComponents/Text/node.d.ts +11 -0
- package/esm/hostComponents/Text/node.js +11 -0
- package/esm/hostComponents/Textarea/index.d.ts +22 -0
- package/esm/hostComponents/Textarea/index.js +13 -0
- package/esm/hostComponents/Textarea/node.d.ts +33 -0
- package/esm/hostComponents/Textarea/node.js +33 -0
- package/esm/hostComponents/Video/index.d.ts +37 -0
- package/esm/hostComponents/Video/index.js +11 -0
- package/esm/hostComponents/Video/node.d.ts +42 -0
- package/esm/hostComponents/Video/node.js +42 -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 +26 -0
- package/esm/hostComponents/View/node.js +26 -0
- package/esm/hostComponents/WebView/index.d.ts +8 -0
- package/esm/hostComponents/WebView/index.js +5 -0
- package/esm/hostComponents/WebView/node.d.ts +8 -0
- package/esm/hostComponents/WebView/node.js +8 -0
- package/esm/hostComponents/index.d.ts +29 -0
- package/esm/hostComponents/index.js +29 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +60 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +23 -0
- package/esm/types/component.d.ts +28 -0
- package/esm/types/component.js +1 -0
- package/esm/types/config.d.ts +192 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/types/index.js +1 -0
- package/node.js +1 -0
- package/package.json +37 -0
- package/templates/base.ejs +52 -0
- package/templates/component.ejs +47 -0
- package/templates/page.ejs +3 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
onChange: 'bindchange',
|
|
9
|
+
name: 'name',
|
|
10
|
+
animation: 'animation',
|
|
11
|
+
};
|
|
12
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
interface Node {
|
|
4
|
+
name: string;
|
|
5
|
+
attrs?: any;
|
|
6
|
+
children?: Node[];
|
|
7
|
+
}
|
|
8
|
+
export interface RichTextProps extends BaseProps {
|
|
9
|
+
nodes?: Node | string;
|
|
10
|
+
}
|
|
11
|
+
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
nodes: string;
|
|
6
|
+
onTap: string;
|
|
7
|
+
onClick: string;
|
|
8
|
+
space: string;
|
|
9
|
+
onTouchStart: string;
|
|
10
|
+
onTouchMove: string;
|
|
11
|
+
onTouchEnd: string;
|
|
12
|
+
onTouchCancel: string;
|
|
13
|
+
onLongTap: string;
|
|
14
|
+
onLongClick: string;
|
|
15
|
+
animation: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
nodes: 'nodes',
|
|
9
|
+
onTap: 'bindtap',
|
|
10
|
+
onClick: 'bindtap',
|
|
11
|
+
space: 'space',
|
|
12
|
+
onTouchStart: 'bindtouchstart',
|
|
13
|
+
onTouchMove: 'bindtouchmove',
|
|
14
|
+
onTouchEnd: 'bindtouchend',
|
|
15
|
+
onTouchCancel: 'bindtouchcancel',
|
|
16
|
+
onLongTap: 'bindlongtap',
|
|
17
|
+
onLongClick: 'bindlongtap',
|
|
18
|
+
animation: 'animation',
|
|
19
|
+
};
|
|
20
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface ScrollViewProps extends BaseProps {
|
|
4
|
+
scrollX?: boolean;
|
|
5
|
+
scrollY?: boolean;
|
|
6
|
+
upperThreshold?: number;
|
|
7
|
+
lowerThreshold?: number;
|
|
8
|
+
scrollTop?: number;
|
|
9
|
+
scrollLeft?: number;
|
|
10
|
+
scrollIntoView?: string;
|
|
11
|
+
scrollWithAnimation?: boolean;
|
|
12
|
+
onScrollToUpper?: (e: any) => void;
|
|
13
|
+
onScrollToLower?: (e: any) => void;
|
|
14
|
+
onScroll?: (e: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScrollView = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.ScrollView = (0, runtime_1.createHostComponent)('scroll-view');
|
|
6
|
+
exports.ScrollView.defaultProps = {
|
|
7
|
+
scrollX: false,
|
|
8
|
+
scrollY: false,
|
|
9
|
+
upperThreshold: 50,
|
|
10
|
+
lowerThreshold: 50,
|
|
11
|
+
scrollWithAnimation: false,
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
scrollX: string;
|
|
6
|
+
scrollY: string;
|
|
7
|
+
upperThreshold: string;
|
|
8
|
+
lowerThreshold: string;
|
|
9
|
+
scrollTop: string;
|
|
10
|
+
scrollLeft: string;
|
|
11
|
+
scrollIntoView: string;
|
|
12
|
+
scrollWithAnimation: string;
|
|
13
|
+
enableBackToTop: string;
|
|
14
|
+
enableFlex: string;
|
|
15
|
+
onScrollToUpper: string;
|
|
16
|
+
onScrollToLower: string;
|
|
17
|
+
onScroll: string;
|
|
18
|
+
onTap: string;
|
|
19
|
+
onClick: string;
|
|
20
|
+
animation: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
scrollX: 'scroll-x',
|
|
9
|
+
scrollY: 'scroll-y',
|
|
10
|
+
upperThreshold: 'upper-threshold',
|
|
11
|
+
lowerThreshold: 'lower-threshold',
|
|
12
|
+
scrollTop: 'scroll-top',
|
|
13
|
+
scrollLeft: 'scroll-left',
|
|
14
|
+
scrollIntoView: 'scroll-into-view',
|
|
15
|
+
scrollWithAnimation: 'scroll-with-animation',
|
|
16
|
+
enableBackToTop: 'enable-back-to-top',
|
|
17
|
+
enableFlex: 'enable-flex',
|
|
18
|
+
onScrollToUpper: 'bindscrolltoupper',
|
|
19
|
+
onScrollToLower: 'bindscrolltolower',
|
|
20
|
+
onScroll: 'bindscroll',
|
|
21
|
+
onTap: 'bindtap',
|
|
22
|
+
onClick: 'bindtap',
|
|
23
|
+
animation: 'animation',
|
|
24
|
+
};
|
|
25
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface SliderProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
activeColor?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
blockColor?: string;
|
|
8
|
+
blockSize?: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
max?: number;
|
|
12
|
+
min?: number;
|
|
13
|
+
selectedColor?: string;
|
|
14
|
+
showValue?: boolean;
|
|
15
|
+
step?: number;
|
|
16
|
+
value?: number;
|
|
17
|
+
onChange?: (e: any) => void;
|
|
18
|
+
onChanging?: (e: any) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const Slider: React.ComponentType<SliderProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Slider = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Slider = (0, runtime_1.createHostComponent)('slider');
|
|
6
|
+
exports.Slider.defaultProps = {
|
|
7
|
+
min: 0,
|
|
8
|
+
max: 100,
|
|
9
|
+
step: 1,
|
|
10
|
+
disabled: false,
|
|
11
|
+
value: 0,
|
|
12
|
+
color: '#e9e9e9',
|
|
13
|
+
selectedColor: '#1aad19',
|
|
14
|
+
activeColor: '#1aad19',
|
|
15
|
+
backgroundColor: '#e9e9e9',
|
|
16
|
+
blockSize: 28,
|
|
17
|
+
blockColor: '#ffffff',
|
|
18
|
+
showValue: false,
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
name: string;
|
|
6
|
+
min: string;
|
|
7
|
+
color: string;
|
|
8
|
+
max: string;
|
|
9
|
+
step: string;
|
|
10
|
+
disabled: string;
|
|
11
|
+
value: string;
|
|
12
|
+
showValue: string;
|
|
13
|
+
activeColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
trackSize: string;
|
|
16
|
+
blockSize: string;
|
|
17
|
+
blockColor: string;
|
|
18
|
+
onChange: string;
|
|
19
|
+
onChanging: string;
|
|
20
|
+
selectedColor: string;
|
|
21
|
+
animation: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
name: 'name',
|
|
9
|
+
min: 'min',
|
|
10
|
+
color: 'color',
|
|
11
|
+
max: 'max',
|
|
12
|
+
step: 'step',
|
|
13
|
+
disabled: 'disabled',
|
|
14
|
+
value: 'value',
|
|
15
|
+
showValue: 'show-value',
|
|
16
|
+
activeColor: 'activeColor',
|
|
17
|
+
backgroundColor: 'backgroundColor',
|
|
18
|
+
trackSize: 'track-size',
|
|
19
|
+
blockSize: 'block-size',
|
|
20
|
+
blockColor: 'block-color',
|
|
21
|
+
onChange: 'bindchange',
|
|
22
|
+
onChanging: 'bindchanging',
|
|
23
|
+
selectedColor: 'selected-color',
|
|
24
|
+
animation: 'animation',
|
|
25
|
+
};
|
|
26
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } 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
|
+
currentItemId?: string;
|
|
10
|
+
duration?: number;
|
|
11
|
+
interval?: number;
|
|
12
|
+
displayMultipleItems?: number;
|
|
13
|
+
circular?: boolean;
|
|
14
|
+
vertical?: boolean;
|
|
15
|
+
previousMargin?: string;
|
|
16
|
+
nextMargin?: string;
|
|
17
|
+
onChange?: (e: any) => void;
|
|
18
|
+
onTransition?: (e: any) => void;
|
|
19
|
+
onAnimationFinish?: (e: any) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Swiper: React.ComponentType<SwiperProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Swiper = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Swiper = (0, runtime_1.createHostComponent)('swiper');
|
|
6
|
+
exports.Swiper.defaultProps = {
|
|
7
|
+
indicatorDots: false,
|
|
8
|
+
indicatorColor: 'rgba(0, 0, 0, 0.3)',
|
|
9
|
+
indicatorActiveColor: 'rgba(0, 0, 0, 0)',
|
|
10
|
+
autoplay: false,
|
|
11
|
+
current: 0,
|
|
12
|
+
currentItemId: '',
|
|
13
|
+
interval: 5000,
|
|
14
|
+
previousMargin: '',
|
|
15
|
+
nextMargin: '',
|
|
16
|
+
displayMultipleItems: 1,
|
|
17
|
+
duration: 500,
|
|
18
|
+
circular: false,
|
|
19
|
+
vertical: false,
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
indicatorDots: string;
|
|
6
|
+
indicatorColor: string;
|
|
7
|
+
indicatorActiveColor: string;
|
|
8
|
+
autoplay: string;
|
|
9
|
+
current: string;
|
|
10
|
+
interval: string;
|
|
11
|
+
duration: string;
|
|
12
|
+
circular: string;
|
|
13
|
+
vertical: string;
|
|
14
|
+
previousMargin: string;
|
|
15
|
+
nextMargin: string;
|
|
16
|
+
displayMultipleItems: string;
|
|
17
|
+
skipHiddenItemLayout: string;
|
|
18
|
+
easingFunction: string;
|
|
19
|
+
onChange: string;
|
|
20
|
+
onTransition: string;
|
|
21
|
+
onAnimationFinish: string;
|
|
22
|
+
onTap: string;
|
|
23
|
+
onClick: string;
|
|
24
|
+
animation: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
indicatorDots: 'indicator-dots',
|
|
9
|
+
indicatorColor: 'indicator-color',
|
|
10
|
+
indicatorActiveColor: 'indicator-active-color',
|
|
11
|
+
autoplay: 'autoplay',
|
|
12
|
+
current: 'current',
|
|
13
|
+
interval: 'interval',
|
|
14
|
+
duration: 'duration',
|
|
15
|
+
circular: 'circular',
|
|
16
|
+
vertical: 'vertical',
|
|
17
|
+
previousMargin: 'previous-margin',
|
|
18
|
+
nextMargin: 'next-margin',
|
|
19
|
+
displayMultipleItems: 'display-multiple-items',
|
|
20
|
+
skipHiddenItemLayout: 'skip-hidden-item-layout',
|
|
21
|
+
easingFunction: 'easing-function',
|
|
22
|
+
onChange: 'bindchange',
|
|
23
|
+
onTransition: 'bindtransition',
|
|
24
|
+
onAnimationFinish: 'bindanimationfinish',
|
|
25
|
+
onTap: 'bindtap',
|
|
26
|
+
onClick: 'bindtap',
|
|
27
|
+
animation: 'animation',
|
|
28
|
+
};
|
|
29
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
key: 'key',
|
|
6
|
+
id: 'id',
|
|
7
|
+
className: 'class',
|
|
8
|
+
style: 'style',
|
|
9
|
+
itemId: 'item-id',
|
|
10
|
+
animation: 'animation',
|
|
11
|
+
};
|
|
12
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface SwitchProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
type?: string;
|
|
8
|
+
onChange?: (e: any) => void;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Switch: React.ComponentType<SwitchProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Switch = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Switch = (0, runtime_1.createHostComponent)('switch');
|
|
6
|
+
exports.Switch.defaultProps = {
|
|
7
|
+
checked: false,
|
|
8
|
+
disabled: false,
|
|
9
|
+
type: 'switch',
|
|
10
|
+
color: '#F85959',
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
name: string;
|
|
6
|
+
checked: string;
|
|
7
|
+
disabled: string;
|
|
8
|
+
color: string;
|
|
9
|
+
onChange: string;
|
|
10
|
+
controlled: string;
|
|
11
|
+
type: string;
|
|
12
|
+
animation: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
name: 'name',
|
|
9
|
+
checked: 'checked',
|
|
10
|
+
disabled: 'disabled',
|
|
11
|
+
color: 'color',
|
|
12
|
+
onChange: 'bindchange',
|
|
13
|
+
controlled: 'controlled',
|
|
14
|
+
type: 'type',
|
|
15
|
+
animation: 'animation',
|
|
16
|
+
};
|
|
17
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface TextProps extends BaseProps {
|
|
4
|
+
selectable?: boolean;
|
|
5
|
+
space?: string | boolean;
|
|
6
|
+
decode?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Text: React.ComponentType<TextProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Text = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Text = (0, runtime_1.createHostComponent)('text');
|
|
6
|
+
exports.Text.defaultProps = {
|
|
7
|
+
selectable: false,
|
|
8
|
+
space: false,
|
|
9
|
+
decode: false,
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
selectable: 'selectable',
|
|
9
|
+
space: 'space',
|
|
10
|
+
decode: 'decode',
|
|
11
|
+
onTap: 'bindtap',
|
|
12
|
+
animation: 'animation',
|
|
13
|
+
};
|
|
14
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface TextareaProps extends BaseProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
placeholderStyle?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
maxlength?: number;
|
|
10
|
+
focus?: boolean;
|
|
11
|
+
autoHeight?: boolean;
|
|
12
|
+
fixed?: boolean;
|
|
13
|
+
cursorSpacing?: number;
|
|
14
|
+
cursor?: number;
|
|
15
|
+
selectionStart?: number;
|
|
16
|
+
selectionEnd?: number;
|
|
17
|
+
onInput?: (e: any) => void;
|
|
18
|
+
onFocus?: (e: any) => void;
|
|
19
|
+
onBlur?: (e: any) => void;
|
|
20
|
+
onConfirm?: (e: any) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const Textarea: React.ComponentType<TextareaProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Textarea = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Textarea = (0, runtime_1.createHostComponent)('textarea');
|
|
6
|
+
exports.Textarea.defaultProps = {
|
|
7
|
+
disabled: false,
|
|
8
|
+
maxlength: 140,
|
|
9
|
+
focus: false,
|
|
10
|
+
autoHeight: false,
|
|
11
|
+
fixed: false,
|
|
12
|
+
cursorSpacing: 0,
|
|
13
|
+
cursor: -1,
|
|
14
|
+
selectionStart: -1,
|
|
15
|
+
selectionEnd: -1,
|
|
16
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
placeholderStyle: string;
|
|
9
|
+
placeholderClass: string;
|
|
10
|
+
placeholderClassName: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
maxlength: string;
|
|
13
|
+
autoFocus: string;
|
|
14
|
+
focus: string;
|
|
15
|
+
fixed: string;
|
|
16
|
+
autoHeight: string;
|
|
17
|
+
showCount: string;
|
|
18
|
+
controlled: string;
|
|
19
|
+
cursorSpacing: string;
|
|
20
|
+
cursor: string;
|
|
21
|
+
showConfirmBar: string;
|
|
22
|
+
selectionStart: string;
|
|
23
|
+
selectionEnd: string;
|
|
24
|
+
adjustPosition: string;
|
|
25
|
+
onFocus: string;
|
|
26
|
+
onBlur: string;
|
|
27
|
+
onLineChange: string;
|
|
28
|
+
onInput: string;
|
|
29
|
+
onConfirm: string;
|
|
30
|
+
onKeyboardHeightChange: string;
|
|
31
|
+
animation: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
name: 'name',
|
|
9
|
+
value: 'value',
|
|
10
|
+
placeholder: 'placeholder',
|
|
11
|
+
placeholderStyle: 'placeholder-style',
|
|
12
|
+
placeholderClass: 'placeholder-class',
|
|
13
|
+
placeholderClassName: 'placeholder-class',
|
|
14
|
+
disabled: 'disabled',
|
|
15
|
+
maxlength: 'maxlength',
|
|
16
|
+
autoFocus: 'auto-focus',
|
|
17
|
+
focus: 'focus',
|
|
18
|
+
fixed: 'fixed',
|
|
19
|
+
autoHeight: 'auto-height',
|
|
20
|
+
showCount: 'show-count',
|
|
21
|
+
controlled: 'controlled',
|
|
22
|
+
cursorSpacing: 'cursor-spacing',
|
|
23
|
+
cursor: 'cursor',
|
|
24
|
+
showConfirmBar: 'show-confirm-bar',
|
|
25
|
+
selectionStart: 'selection-start',
|
|
26
|
+
selectionEnd: 'selection-end',
|
|
27
|
+
adjustPosition: 'adjust-position',
|
|
28
|
+
onFocus: 'bindfocus',
|
|
29
|
+
onBlur: 'bindblur',
|
|
30
|
+
onLineChange: 'bindlinechange',
|
|
31
|
+
onInput: 'bindinput',
|
|
32
|
+
onConfirm: 'bindconfirm',
|
|
33
|
+
onKeyboardHeightChange: 'bindkeyboardheightchange',
|
|
34
|
+
animation: 'animation',
|
|
35
|
+
};
|
|
36
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface VideoProps extends BaseProps {
|
|
4
|
+
/** 要播放视频的资源地址 1.0.0 */
|
|
5
|
+
src: string;
|
|
6
|
+
/** 是否自动播放 1.0.0 */
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
/** 视频封面的图片网络资源地址 1.0.0 */
|
|
9
|
+
poster?: string;
|
|
10
|
+
/** 当开始播放时触发 play 事件 1.0.0 */
|
|
11
|
+
onPlay?: (event: any) => any;
|
|
12
|
+
/** 当暂停播放时触发 pause 事件 1.0.0 */
|
|
13
|
+
onPause?: (event: any) => any;
|
|
14
|
+
/** 当播放到末尾时触发 ended 事件 1.0.0 */
|
|
15
|
+
onEnded?: (event: any) => any;
|
|
16
|
+
/** 视频播放出错时触发 1.0.0 */
|
|
17
|
+
onError?: (event: any) => any;
|
|
18
|
+
/** 播放进度变化时触发,event.detail = { currentTime, duration } 1.18.0 */
|
|
19
|
+
onTimeUpdate?: (event: any) => any;
|
|
20
|
+
/** 视频进入和退出全屏时触发 1.18.0 */
|
|
21
|
+
onFullScreenChange?: (event: any) => any;
|
|
22
|
+
/** 是否循环播放 1.47.0 */
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
/** 是否显示全屏按钮 1.47.0 */
|
|
25
|
+
showFullscreenBtn?: boolean;
|
|
26
|
+
/** 是否显示播放、暂停、重播按钮,不包括视频封面的播放按钮 1.47.0 */
|
|
27
|
+
showPlayBtn?: boolean;
|
|
28
|
+
/** 是否显示全部播放控件 1.47.0 */
|
|
29
|
+
controls?: boolean;
|
|
30
|
+
/** 当视频大小与 video 容器大小不一致时,视频的表现形式:contain(包含),fill(填充),cover(覆盖) 1.47.0 */
|
|
31
|
+
objectFit?: 'contain' | 'fill' | 'cover';
|
|
32
|
+
/** 播放按钮的位置:center(视频中间),bottom(控制条上) 1.47.0 */
|
|
33
|
+
playBtnPosition?: 'center' | 'bottom';
|
|
34
|
+
/** 视频出现缓冲时触发 1.47.0 */
|
|
35
|
+
onWaiting?: (event: any) => any;
|
|
36
|
+
}
|
|
37
|
+
export declare const Video: React.ComponentType<VideoProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Video = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.Video = (0, runtime_1.createHostComponent)('video');
|
|
6
|
+
exports.Video.defaultProps = {
|
|
7
|
+
autoplay: false,
|
|
8
|
+
loop: false,
|
|
9
|
+
showFullscreenBtn: true,
|
|
10
|
+
showPlayBtn: true,
|
|
11
|
+
controls: true,
|
|
12
|
+
objectFit: 'contain',
|
|
13
|
+
playBtnPosition: 'center',
|
|
14
|
+
};
|