@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,22 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
scrollX: 'scroll-x',
|
|
6
|
+
scrollY: 'scroll-y',
|
|
7
|
+
upperThreshold: 'upper-threshold',
|
|
8
|
+
lowerThreshold: 'lower-threshold',
|
|
9
|
+
scrollTop: 'scroll-top',
|
|
10
|
+
scrollLeft: 'scroll-left',
|
|
11
|
+
scrollIntoView: 'scroll-into-view',
|
|
12
|
+
scrollWithAnimation: 'scroll-with-animation',
|
|
13
|
+
enableBackToTop: 'enable-back-to-top',
|
|
14
|
+
enableFlex: 'enable-flex',
|
|
15
|
+
onScrollToUpper: 'bindscrolltoupper',
|
|
16
|
+
onScrollToLower: 'bindscrolltolower',
|
|
17
|
+
onScroll: 'bindscroll',
|
|
18
|
+
onTap: 'bindtap',
|
|
19
|
+
onClick: 'bindtap',
|
|
20
|
+
animation: 'animation',
|
|
21
|
+
};
|
|
22
|
+
export const props = Object.values(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,16 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
export const Slider = createHostComponent('slider');
|
|
3
|
+
Slider.defaultProps = {
|
|
4
|
+
min: 0,
|
|
5
|
+
max: 100,
|
|
6
|
+
step: 1,
|
|
7
|
+
disabled: false,
|
|
8
|
+
value: 0,
|
|
9
|
+
color: '#e9e9e9',
|
|
10
|
+
selectedColor: '#1aad19',
|
|
11
|
+
activeColor: '#1aad19',
|
|
12
|
+
backgroundColor: '#e9e9e9',
|
|
13
|
+
blockSize: 28,
|
|
14
|
+
blockColor: '#ffffff',
|
|
15
|
+
showValue: false,
|
|
16
|
+
};
|
|
@@ -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,23 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
name: 'name',
|
|
6
|
+
min: 'min',
|
|
7
|
+
color: 'color',
|
|
8
|
+
max: 'max',
|
|
9
|
+
step: 'step',
|
|
10
|
+
disabled: 'disabled',
|
|
11
|
+
value: 'value',
|
|
12
|
+
showValue: 'show-value',
|
|
13
|
+
activeColor: 'activeColor',
|
|
14
|
+
backgroundColor: 'backgroundColor',
|
|
15
|
+
trackSize: 'track-size',
|
|
16
|
+
blockSize: 'block-size',
|
|
17
|
+
blockColor: 'block-color',
|
|
18
|
+
onChange: 'bindchange',
|
|
19
|
+
onChanging: 'bindchanging',
|
|
20
|
+
selectedColor: 'selected-color',
|
|
21
|
+
animation: 'animation',
|
|
22
|
+
};
|
|
23
|
+
export const props = Object.values(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,17 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
export const Swiper = createHostComponent('swiper');
|
|
3
|
+
Swiper.defaultProps = {
|
|
4
|
+
indicatorDots: false,
|
|
5
|
+
indicatorColor: 'rgba(0, 0, 0, 0.3)',
|
|
6
|
+
indicatorActiveColor: 'rgba(0, 0, 0, 0)',
|
|
7
|
+
autoplay: false,
|
|
8
|
+
current: 0,
|
|
9
|
+
currentItemId: '',
|
|
10
|
+
interval: 5000,
|
|
11
|
+
previousMargin: '',
|
|
12
|
+
nextMargin: '',
|
|
13
|
+
displayMultipleItems: 1,
|
|
14
|
+
duration: 500,
|
|
15
|
+
circular: false,
|
|
16
|
+
vertical: false,
|
|
17
|
+
};
|
|
@@ -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,26 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
indicatorDots: 'indicator-dots',
|
|
6
|
+
indicatorColor: 'indicator-color',
|
|
7
|
+
indicatorActiveColor: 'indicator-active-color',
|
|
8
|
+
autoplay: 'autoplay',
|
|
9
|
+
current: 'current',
|
|
10
|
+
interval: 'interval',
|
|
11
|
+
duration: 'duration',
|
|
12
|
+
circular: 'circular',
|
|
13
|
+
vertical: 'vertical',
|
|
14
|
+
previousMargin: 'previous-margin',
|
|
15
|
+
nextMargin: 'next-margin',
|
|
16
|
+
displayMultipleItems: 'display-multiple-items',
|
|
17
|
+
skipHiddenItemLayout: 'skip-hidden-item-layout',
|
|
18
|
+
easingFunction: 'easing-function',
|
|
19
|
+
onChange: 'bindchange',
|
|
20
|
+
onTransition: 'bindtransition',
|
|
21
|
+
onAnimationFinish: 'bindanimationfinish',
|
|
22
|
+
onTap: 'bindtap',
|
|
23
|
+
onClick: 'bindtap',
|
|
24
|
+
animation: 'animation',
|
|
25
|
+
};
|
|
26
|
+
export const props = Object.values(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,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,14 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
name: 'name',
|
|
6
|
+
checked: 'checked',
|
|
7
|
+
disabled: 'disabled',
|
|
8
|
+
color: 'color',
|
|
9
|
+
onChange: 'bindchange',
|
|
10
|
+
controlled: 'controlled',
|
|
11
|
+
type: 'type',
|
|
12
|
+
animation: 'animation',
|
|
13
|
+
};
|
|
14
|
+
export const props = Object.values(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,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,13 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
export const Textarea = createHostComponent('textarea');
|
|
3
|
+
Textarea.defaultProps = {
|
|
4
|
+
disabled: false,
|
|
5
|
+
maxlength: 140,
|
|
6
|
+
focus: false,
|
|
7
|
+
autoHeight: false,
|
|
8
|
+
fixed: false,
|
|
9
|
+
cursorSpacing: 0,
|
|
10
|
+
cursor: -1,
|
|
11
|
+
selectionStart: -1,
|
|
12
|
+
selectionEnd: -1,
|
|
13
|
+
};
|
|
@@ -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,33 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
name: 'name',
|
|
6
|
+
value: 'value',
|
|
7
|
+
placeholder: 'placeholder',
|
|
8
|
+
placeholderStyle: 'placeholder-style',
|
|
9
|
+
placeholderClass: 'placeholder-class',
|
|
10
|
+
placeholderClassName: 'placeholder-class',
|
|
11
|
+
disabled: 'disabled',
|
|
12
|
+
maxlength: 'maxlength',
|
|
13
|
+
autoFocus: 'auto-focus',
|
|
14
|
+
focus: 'focus',
|
|
15
|
+
fixed: 'fixed',
|
|
16
|
+
autoHeight: 'auto-height',
|
|
17
|
+
showCount: 'show-count',
|
|
18
|
+
controlled: 'controlled',
|
|
19
|
+
cursorSpacing: 'cursor-spacing',
|
|
20
|
+
cursor: 'cursor',
|
|
21
|
+
showConfirmBar: 'show-confirm-bar',
|
|
22
|
+
selectionStart: 'selection-start',
|
|
23
|
+
selectionEnd: 'selection-end',
|
|
24
|
+
adjustPosition: 'adjust-position',
|
|
25
|
+
onFocus: 'bindfocus',
|
|
26
|
+
onBlur: 'bindblur',
|
|
27
|
+
onLineChange: 'bindlinechange',
|
|
28
|
+
onInput: 'bindinput',
|
|
29
|
+
onConfirm: 'bindconfirm',
|
|
30
|
+
onKeyboardHeightChange: 'bindkeyboardheightchange',
|
|
31
|
+
animation: 'animation',
|
|
32
|
+
};
|
|
33
|
+
export const props = Object.values(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,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
export const Video = createHostComponent('video');
|
|
3
|
+
Video.defaultProps = {
|
|
4
|
+
autoplay: false,
|
|
5
|
+
loop: false,
|
|
6
|
+
showFullscreenBtn: true,
|
|
7
|
+
showPlayBtn: true,
|
|
8
|
+
controls: true,
|
|
9
|
+
objectFit: 'contain',
|
|
10
|
+
playBtnPosition: 'center',
|
|
11
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
src: string;
|
|
6
|
+
duration: string;
|
|
7
|
+
controls: string;
|
|
8
|
+
danmuList: string;
|
|
9
|
+
danmuBtn: string;
|
|
10
|
+
enableDanmu: string;
|
|
11
|
+
autoplay: string;
|
|
12
|
+
loop: string;
|
|
13
|
+
muted: string;
|
|
14
|
+
initialTime: string;
|
|
15
|
+
pageGesture: string;
|
|
16
|
+
direction: string;
|
|
17
|
+
showProgress: string;
|
|
18
|
+
showFullscreenBtn: string;
|
|
19
|
+
showPlayBtn: string;
|
|
20
|
+
showCenterPlayBtn: string;
|
|
21
|
+
enableProgressGesture: string;
|
|
22
|
+
objectFit: string;
|
|
23
|
+
poster: string;
|
|
24
|
+
showMuteBtn: string;
|
|
25
|
+
title: string;
|
|
26
|
+
playBtnPosition: string;
|
|
27
|
+
enablePlayGesture: string;
|
|
28
|
+
autoPauseIfNavigate: string;
|
|
29
|
+
autoPauseIfOpenNative: string;
|
|
30
|
+
vSlideGesture: string;
|
|
31
|
+
vSlideGestureInfullscreen: string;
|
|
32
|
+
onPlay: string;
|
|
33
|
+
onPause: string;
|
|
34
|
+
onEnded: string;
|
|
35
|
+
onTimeUpdate: string;
|
|
36
|
+
onFullscreenChange: string;
|
|
37
|
+
onWaiting: string;
|
|
38
|
+
onError: string;
|
|
39
|
+
onProgress: string;
|
|
40
|
+
animation: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
src: 'src',
|
|
6
|
+
duration: 'duration',
|
|
7
|
+
controls: 'controls',
|
|
8
|
+
danmuList: 'danmu-list',
|
|
9
|
+
danmuBtn: 'danmu-btn',
|
|
10
|
+
enableDanmu: 'enable-danmu',
|
|
11
|
+
autoplay: 'autoplay',
|
|
12
|
+
loop: 'loop',
|
|
13
|
+
muted: 'muted',
|
|
14
|
+
initialTime: 'initial-time',
|
|
15
|
+
pageGesture: 'page-gesture',
|
|
16
|
+
direction: 'direction',
|
|
17
|
+
showProgress: 'show-progress',
|
|
18
|
+
showFullscreenBtn: 'show-fullscreen-btn',
|
|
19
|
+
showPlayBtn: 'show-play-btn',
|
|
20
|
+
showCenterPlayBtn: 'show-center-play-btn',
|
|
21
|
+
enableProgressGesture: 'enable-progress-gesture',
|
|
22
|
+
objectFit: 'object-fit',
|
|
23
|
+
poster: 'poster',
|
|
24
|
+
showMuteBtn: 'show-mute-btn',
|
|
25
|
+
title: 'title',
|
|
26
|
+
playBtnPosition: 'play-btn-position',
|
|
27
|
+
enablePlayGesture: 'enable-play-gesture',
|
|
28
|
+
autoPauseIfNavigate: 'auto-pause-if-navigate',
|
|
29
|
+
autoPauseIfOpenNative: 'auto-pause-if-open-native',
|
|
30
|
+
vSlideGesture: 'vslide-gesture',
|
|
31
|
+
vSlideGestureInfullscreen: 'vslide-gesture-in-fullscreen',
|
|
32
|
+
onPlay: 'bindplay',
|
|
33
|
+
onPause: 'bindpause',
|
|
34
|
+
onEnded: 'bindended',
|
|
35
|
+
onTimeUpdate: 'bindtimeupdate',
|
|
36
|
+
onFullscreenChange: 'bindfullscreenchange',
|
|
37
|
+
onWaiting: 'bindwaiting',
|
|
38
|
+
onError: 'binderror',
|
|
39
|
+
onProgress: 'bindprogress',
|
|
40
|
+
animation: 'animation',
|
|
41
|
+
};
|
|
42
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface ViewProps extends BaseProps {
|
|
4
|
+
slot?: string;
|
|
5
|
+
hoverClassName?: string;
|
|
6
|
+
hoverStartTime?: number;
|
|
7
|
+
hoverStayTime?: number;
|
|
8
|
+
hoverStopPropagation?: boolean;
|
|
9
|
+
onFocus?: (e: any) => void;
|
|
10
|
+
onTap?: (e: any) => any;
|
|
11
|
+
onClick?: (e: any) => any;
|
|
12
|
+
onTouchStart?: (e: any) => any;
|
|
13
|
+
onTouchMove?: (e: any) => any;
|
|
14
|
+
onTouchEnd?: (e: any) => any;
|
|
15
|
+
onTouchCancel?: (e: any) => any;
|
|
16
|
+
onLongTap?: (e: any) => any;
|
|
17
|
+
onLongClick?: (e: any) => any;
|
|
18
|
+
onTransitionEnd?: (e: any) => any;
|
|
19
|
+
onAnimationIteration?: (e: any) => any;
|
|
20
|
+
onAnimationStart?: (e: any) => any;
|
|
21
|
+
onAnimationEnd?: (e: any) => any;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const View: React.ComponentType<ViewProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
disableScroll: string;
|
|
4
|
+
hoverClass: string;
|
|
5
|
+
hoverClassName: string;
|
|
6
|
+
hoverStartTime: string;
|
|
7
|
+
hoverStayTime: string;
|
|
8
|
+
hidden: string;
|
|
9
|
+
className: string;
|
|
10
|
+
style: string;
|
|
11
|
+
animation: 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
|
+
onTransitionEnd: string;
|
|
22
|
+
onAnimationIteration: string;
|
|
23
|
+
onAnimationStart: string;
|
|
24
|
+
onAnimationEnd: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
disableScroll: 'disable-scroll',
|
|
4
|
+
hoverClass: 'hover-class',
|
|
5
|
+
hoverClassName: 'hover-class',
|
|
6
|
+
hoverStartTime: 'hover-start-time',
|
|
7
|
+
hoverStayTime: 'hover-stay-time',
|
|
8
|
+
hidden: 'hidden',
|
|
9
|
+
className: 'class',
|
|
10
|
+
style: 'style',
|
|
11
|
+
animation: 'animation',
|
|
12
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
13
|
+
onTap: 'bindtap',
|
|
14
|
+
onClick: 'bindtap',
|
|
15
|
+
onTouchStart: 'bindtouchstart',
|
|
16
|
+
onTouchMove: 'bindtouchmove',
|
|
17
|
+
onTouchEnd: 'bindtouchend',
|
|
18
|
+
onTouchCancel: 'bindtouchcancel',
|
|
19
|
+
onLongTap: 'bindlongtap',
|
|
20
|
+
onLongClick: 'bindlongtap',
|
|
21
|
+
onTransitionEnd: 'bindtransitionend',
|
|
22
|
+
onAnimationIteration: 'bindanimationiteration',
|
|
23
|
+
onAnimationStart: 'bindanimationstart',
|
|
24
|
+
onAnimationEnd: 'bindanimationend',
|
|
25
|
+
};
|
|
26
|
+
export const props = Object.values(alias);
|