@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,31 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
selectable: string;
|
|
7
|
+
userSelect: string;
|
|
8
|
+
space: string;
|
|
9
|
+
decode: string;
|
|
10
|
+
onTap: string;
|
|
11
|
+
onClick: string;
|
|
12
|
+
disableScroll: string;
|
|
13
|
+
hoverClass: string;
|
|
14
|
+
hoverClassName: string;
|
|
15
|
+
hoverStartTime: string;
|
|
16
|
+
hoverStayTime: string;
|
|
17
|
+
hidden: string;
|
|
18
|
+
hoverStopPropagation: 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', selectable: 'selectable', userSelect: 'user-select', space: 'space', decode: 'decode', onTap: 'bindtap', onClick: 'bindtap' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } 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
|
+
autoHeight?: boolean;
|
|
11
|
+
onInput?: (event: GenericEvent) => void;
|
|
12
|
+
onFocus?: (event: GenericEvent) => void;
|
|
13
|
+
onBlur?: (event: GenericEvent) => void;
|
|
14
|
+
onLineChange?: (event: GenericEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Textarea: React.ComponentType<TextareaProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
+
export const Textarea = createHostComponent('textarea');
|
|
3
|
+
Textarea.defaultProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 修复 <Textarea maxLength={1000} />
|
|
6
|
+
* 在编译时会将 maxLength 转为 maxlength,但实际 defaultProps 中 仍然使用 maxLength
|
|
7
|
+
* 最终导致传给组件的props { maxlength: 1000, maxlength: 140 }
|
|
8
|
+
* 最后经过 html2mini-plugin 转换后 maxLength 再次转为 maxlength, 且值变为 140。
|
|
9
|
+
* 最终导致值错误
|
|
10
|
+
*/
|
|
11
|
+
maxlength: 140,
|
|
12
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
animation: string;
|
|
5
|
+
style: string;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
placeholderStyle: string;
|
|
10
|
+
disabled: string;
|
|
11
|
+
maxLength: string;
|
|
12
|
+
maxlength: string;
|
|
13
|
+
autoHeight: string;
|
|
14
|
+
onInput: string;
|
|
15
|
+
onFocus: string;
|
|
16
|
+
onBlur: string;
|
|
17
|
+
onLineChange: string;
|
|
18
|
+
disableScroll: string;
|
|
19
|
+
hoverClass: string;
|
|
20
|
+
hoverClassName: string;
|
|
21
|
+
hoverStartTime: string;
|
|
22
|
+
hoverStayTime: string;
|
|
23
|
+
hidden: string;
|
|
24
|
+
hoverStopPropagation: string;
|
|
25
|
+
onTap: string;
|
|
26
|
+
onClick: string;
|
|
27
|
+
onTouchStart: string;
|
|
28
|
+
onTouchMove: string;
|
|
29
|
+
onTouchEnd: string;
|
|
30
|
+
onTouchCancel: string;
|
|
31
|
+
onLongTap: string;
|
|
32
|
+
onLongClick: string;
|
|
33
|
+
onLongPress: string;
|
|
34
|
+
onTransitionEnd: string;
|
|
35
|
+
onAnimationIteration: string;
|
|
36
|
+
onAnimationStart: string;
|
|
37
|
+
onAnimationEnd: string;
|
|
38
|
+
};
|
|
39
|
+
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', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', autoHeight: 'auto-height', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onLineChange: 'bindlinechange' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface VideoProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
src?: string;
|
|
7
|
+
duration?: number;
|
|
8
|
+
controls?: boolean;
|
|
9
|
+
danmuList?: string;
|
|
10
|
+
danmuBtn?: boolean;
|
|
11
|
+
enableDanmu?: boolean;
|
|
12
|
+
autoplay?: boolean;
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
muted?: boolean;
|
|
15
|
+
initialTime?: number;
|
|
16
|
+
showFullscreenBtn?: boolean;
|
|
17
|
+
showPlayBtn?: boolean;
|
|
18
|
+
showCenterPlayBtn?: boolean;
|
|
19
|
+
objectFit?: string;
|
|
20
|
+
poster?: string;
|
|
21
|
+
showMuteBtn?: boolean;
|
|
22
|
+
onPlay?: (event: any) => void;
|
|
23
|
+
onPause?: (event: any) => void;
|
|
24
|
+
onEnded?: (event: any) => void;
|
|
25
|
+
onTimeUpdate?: (event: any) => void;
|
|
26
|
+
onWaiting?: (event: any) => void;
|
|
27
|
+
onError?: (event: any) => void;
|
|
28
|
+
onProgress?: (event: any) => void;
|
|
29
|
+
onLoadedMetadata?: (event: any) => void;
|
|
30
|
+
onCanplay?: (event: any) => void;
|
|
31
|
+
onCanplayThrough?: (event: any) => void;
|
|
32
|
+
onPlaying?: (event: any) => void;
|
|
33
|
+
onRateChange?: (event: any) => void;
|
|
34
|
+
onVolumeChange?: (event: any) => void;
|
|
35
|
+
onSeekComplete?: (event: any) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare const Video: React.ComponentType<VideoProps>;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
showFullscreenBtn: string;
|
|
16
|
+
showPlayBtn: string;
|
|
17
|
+
showCenterPlayBtn: string;
|
|
18
|
+
objectFit: string;
|
|
19
|
+
poster: string;
|
|
20
|
+
showMuteBtn: string;
|
|
21
|
+
onPlay: string;
|
|
22
|
+
onPause: string;
|
|
23
|
+
onEnded: string;
|
|
24
|
+
onTimeUpdate: string;
|
|
25
|
+
onWaiting: string;
|
|
26
|
+
onError: string;
|
|
27
|
+
onProgress: string;
|
|
28
|
+
onLoadedMetadata: string;
|
|
29
|
+
onCanplay: string;
|
|
30
|
+
onCanplayThrough: string;
|
|
31
|
+
onPlaying: string;
|
|
32
|
+
onRateChange: string;
|
|
33
|
+
onVolumeChange: string;
|
|
34
|
+
onSeekComplete: string;
|
|
35
|
+
disableScroll: string;
|
|
36
|
+
hoverClass: string;
|
|
37
|
+
hoverClassName: string;
|
|
38
|
+
hoverStartTime: string;
|
|
39
|
+
hoverStayTime: string;
|
|
40
|
+
hidden: string;
|
|
41
|
+
animation: string;
|
|
42
|
+
hoverStopPropagation: string;
|
|
43
|
+
onTap: string;
|
|
44
|
+
onClick: string;
|
|
45
|
+
onTouchStart: string;
|
|
46
|
+
onTouchMove: string;
|
|
47
|
+
onTouchEnd: string;
|
|
48
|
+
onTouchCancel: string;
|
|
49
|
+
onLongTap: string;
|
|
50
|
+
onLongClick: string;
|
|
51
|
+
onLongPress: string;
|
|
52
|
+
onTransitionEnd: string;
|
|
53
|
+
onAnimationIteration: string;
|
|
54
|
+
onAnimationStart: string;
|
|
55
|
+
onAnimationEnd: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { unique } from '@ray-core/shared';
|
|
2
|
+
import { universalAlias } from '../universal';
|
|
3
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', style: 'style', src: 'src', duration: 'duration', controls: 'controls', danmuList: 'danmu-list', danmuBtn: 'danmu-btn', enableDanmu: 'enable-danmu', autoplay: 'autoplay', loop: 'loop', muted: 'muted', initialTime: 'initial-time', showFullscreenBtn: 'show-fullscreen-btn', showPlayBtn: 'show-play-btn', showCenterPlayBtn: 'show-center-play-btn', objectFit: 'object-fit', poster: 'poster', showMuteBtn: 'show-mute-btn', onPlay: 'bindplay', onPause: 'bindpause', onEnded: 'bindended', onTimeUpdate: 'bindtimeupdate', onWaiting: 'bindwaiting', onError: 'binderror', onProgress: 'bindprogress', onLoadedMetadata: 'bindloadedmetadata', onCanplay: 'bindcanplay', onCanplayThrough: 'bindcanplaythrough', onPlaying: 'bindplaying', onRateChange: 'bindratechange', onVolumeChange: 'bindvolumechange', onSeekComplete: 'bindseekcomplete' });
|
|
4
|
+
export const props = unique(Object.values(alias));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, TouchEvent } from '../../types/component';
|
|
3
|
+
export interface ViewProps extends BaseProps {
|
|
4
|
+
slot?: string;
|
|
5
|
+
/** 指定按下去的样式类。当为 "none" 时,没有点击态效果 1.0.0 */
|
|
6
|
+
hoverClassName?: string;
|
|
7
|
+
/** 指定是否阻止本节点的祖先节点出现点击态 1.5.0 */
|
|
8
|
+
hoverStopPropagation?: boolean;
|
|
9
|
+
/** (default: 50) 按住后多久出现点击态,单位毫秒 1.0.0 */
|
|
10
|
+
hoverStartTime?: number;
|
|
11
|
+
/** (default: 400) 手指松开后点击态保留时间,单位毫秒 1.0.0 */
|
|
12
|
+
hoverStayTime?: number;
|
|
13
|
+
disableScroll?: boolean;
|
|
14
|
+
onTouchStart?: (event: TouchEvent) => any;
|
|
15
|
+
onTouchMove?: (event: TouchEvent) => any;
|
|
16
|
+
onTouchEnd?: (event: TouchEvent) => any;
|
|
17
|
+
onTouchCancel?: (event: TouchEvent) => any;
|
|
18
|
+
onLongClick?: (event: TouchEvent) => any;
|
|
19
|
+
onTransitionEnd?: (event: any) => any;
|
|
20
|
+
onAnimationIteration?: (event: any) => any;
|
|
21
|
+
onAnimationStart?: (event: any) => any;
|
|
22
|
+
onAnimationEnd?: (event: any) => any;
|
|
23
|
+
}
|
|
24
|
+
export declare const View: React.ComponentType<ViewProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
catchTouchMove: 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,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface WebViewProps extends BaseProps, DiffLayer {
|
|
4
|
+
/**
|
|
5
|
+
* webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url
|
|
10
|
+
*/
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
/**
|
|
13
|
+
* 网页加载成功时候触发此事件。e.detail = { src }
|
|
14
|
+
*/
|
|
15
|
+
onLoad?: (event: GenericEvent) => any;
|
|
16
|
+
/**
|
|
17
|
+
* 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data },data是多次 postMessage 的参数组成的数组
|
|
18
|
+
*/
|
|
19
|
+
onMessage?: (event: GenericEvent) => any;
|
|
20
|
+
}
|
|
21
|
+
export declare const WebView: React.ComponentType<WebViewProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
src: string;
|
|
3
|
+
onError: string;
|
|
4
|
+
onLoad: string;
|
|
5
|
+
onMessage: string;
|
|
6
|
+
updateLayout: string;
|
|
7
|
+
id: string;
|
|
8
|
+
disableScroll: string;
|
|
9
|
+
hoverClass: string;
|
|
10
|
+
hoverClassName: string;
|
|
11
|
+
hoverStartTime: string;
|
|
12
|
+
hoverStayTime: string;
|
|
13
|
+
hidden: string;
|
|
14
|
+
className: string;
|
|
15
|
+
animation: string;
|
|
16
|
+
style: string;
|
|
17
|
+
hoverStopPropagation: string;
|
|
18
|
+
onTap: string;
|
|
19
|
+
onClick: string;
|
|
20
|
+
onTouchStart: string;
|
|
21
|
+
onTouchMove: string;
|
|
22
|
+
onTouchEnd: string;
|
|
23
|
+
onTouchCancel: string;
|
|
24
|
+
onLongTap: string;
|
|
25
|
+
onLongClick: string;
|
|
26
|
+
onLongPress: string;
|
|
27
|
+
onTransitionEnd: string;
|
|
28
|
+
onAnimationIteration: string;
|
|
29
|
+
onAnimationStart: string;
|
|
30
|
+
onAnimationEnd: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { universalAlias } from '../universal';
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: 'bindmessage', updateLayout: 'update-layout' });
|
|
3
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Canvas';
|
|
3
|
+
export * from './Checkbox';
|
|
4
|
+
export * from './CheckboxGroup';
|
|
5
|
+
export * from './Form';
|
|
6
|
+
export * from './Image';
|
|
7
|
+
export * from './Input';
|
|
8
|
+
export * from './Label';
|
|
9
|
+
export * from './MovableArea';
|
|
10
|
+
export * from './MovableView';
|
|
11
|
+
export * from './Picker';
|
|
12
|
+
export * from './PickerView';
|
|
13
|
+
export * from './PickerViewColumn';
|
|
14
|
+
export * from './Radio';
|
|
15
|
+
export * from './RadioGroup';
|
|
16
|
+
export * from './ScrollView';
|
|
17
|
+
export * from './Swiper';
|
|
18
|
+
export * from './SwiperItem';
|
|
19
|
+
export * from './Switch';
|
|
20
|
+
export * from './Slider';
|
|
21
|
+
export * from './Text';
|
|
22
|
+
export * from './Textarea';
|
|
23
|
+
export * from './Video';
|
|
24
|
+
export * from './View';
|
|
25
|
+
export * from './PageContainer';
|
|
26
|
+
export * from './IpcPlayer';
|
|
27
|
+
export * from './CoverView';
|
|
28
|
+
export * from './NativeVideo';
|
|
29
|
+
export * from './WebView';
|
|
30
|
+
export * from './Iframe';
|
|
31
|
+
export * from './Map';
|
|
32
|
+
export * from './Camera';
|
|
33
|
+
export * from './Progress';
|
|
34
|
+
export * from './RichText';
|
|
35
|
+
export * from './Navigator';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Canvas';
|
|
3
|
+
export * from './Checkbox';
|
|
4
|
+
export * from './CheckboxGroup';
|
|
5
|
+
export * from './Form';
|
|
6
|
+
export * from './Image';
|
|
7
|
+
export * from './Input';
|
|
8
|
+
export * from './Label';
|
|
9
|
+
export * from './MovableArea';
|
|
10
|
+
export * from './MovableView';
|
|
11
|
+
export * from './Picker';
|
|
12
|
+
export * from './PickerView';
|
|
13
|
+
export * from './PickerViewColumn';
|
|
14
|
+
export * from './Radio';
|
|
15
|
+
export * from './RadioGroup';
|
|
16
|
+
export * from './ScrollView';
|
|
17
|
+
export * from './Swiper';
|
|
18
|
+
export * from './SwiperItem';
|
|
19
|
+
export * from './Switch';
|
|
20
|
+
export * from './Slider';
|
|
21
|
+
export * from './Text';
|
|
22
|
+
export * from './Textarea';
|
|
23
|
+
export * from './Video';
|
|
24
|
+
export * from './View';
|
|
25
|
+
export * from './PageContainer';
|
|
26
|
+
export * from './IpcPlayer';
|
|
27
|
+
export * from './CoverView';
|
|
28
|
+
export * from './NativeVideo';
|
|
29
|
+
export * from './WebView';
|
|
30
|
+
export * from './Iframe';
|
|
31
|
+
export * from './Map';
|
|
32
|
+
export * from './Camera';
|
|
33
|
+
export * from './Progress';
|
|
34
|
+
export * from './RichText';
|
|
35
|
+
export * from './Navigator';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as Button from './Button/node';
|
|
2
|
+
import * as Canvas from './Canvas/node';
|
|
3
|
+
import * as Checkbox from './Checkbox/node';
|
|
4
|
+
import * as CheckboxGroup from './CheckboxGroup/node';
|
|
5
|
+
import * as Form from './Form/node';
|
|
6
|
+
import * as Image from './Image/node';
|
|
7
|
+
import * as Input from './Input/node';
|
|
8
|
+
import * as Label from './Label/node';
|
|
9
|
+
import * as MovableArea from './MovableArea/node';
|
|
10
|
+
import * as MovableView from './MovableView/node';
|
|
11
|
+
import * as Picker from './Picker/node';
|
|
12
|
+
import * as PickerView from './PickerView/node';
|
|
13
|
+
import * as PickerViewColumn from './PickerViewColumn/node';
|
|
14
|
+
import * as Radio from './Radio/node';
|
|
15
|
+
import * as RadioGroup from './RadioGroup/node';
|
|
16
|
+
import * as ScrollView from './ScrollView/node';
|
|
17
|
+
import * as Swiper from './Swiper/node';
|
|
18
|
+
import * as SwiperItem from './SwiperItem/node';
|
|
19
|
+
import * as Switch from './Switch/node';
|
|
20
|
+
import * as Slider from './Slider/node';
|
|
21
|
+
import * as Text from './Text/node';
|
|
22
|
+
import * as Textarea from './Textarea/node';
|
|
23
|
+
import * as Video from './Video/node';
|
|
24
|
+
import * as View from './View/node';
|
|
25
|
+
import * as PageContainer from './PageContainer/node';
|
|
26
|
+
import * as Progress from './Progress/node';
|
|
27
|
+
import * as IpcPlayer from './IpcPlayer/node';
|
|
28
|
+
import * as CoverView from './CoverView/node';
|
|
29
|
+
import * as NativeVideo from './NativeVideo/node';
|
|
30
|
+
import * as WebView from './WebView/node';
|
|
31
|
+
import * as MapView from './Map/node';
|
|
32
|
+
import * as Camera from './Camera/node';
|
|
33
|
+
import * as RichText from './RichText/node';
|
|
34
|
+
import * as Iframe from './Iframe/node';
|
|
35
|
+
import * as Navigator from './Navigator/node';
|
|
36
|
+
const hostComponents = new Map();
|
|
37
|
+
hostComponents.set('button', Button);
|
|
38
|
+
hostComponents.set('canvas', Canvas);
|
|
39
|
+
hostComponents.set('checkbox', Checkbox);
|
|
40
|
+
hostComponents.set('checkbox-group', CheckboxGroup);
|
|
41
|
+
hostComponents.set('form', Form);
|
|
42
|
+
hostComponents.set('image', Image);
|
|
43
|
+
hostComponents.set('input', Input);
|
|
44
|
+
hostComponents.set('label', Label);
|
|
45
|
+
hostComponents.set('movable-area', MovableArea);
|
|
46
|
+
hostComponents.set('movable-view', MovableView);
|
|
47
|
+
hostComponents.set('picker', Picker);
|
|
48
|
+
hostComponents.set('picker-view', PickerView);
|
|
49
|
+
hostComponents.set('picker-view-column', PickerViewColumn);
|
|
50
|
+
hostComponents.set('radio', Radio);
|
|
51
|
+
hostComponents.set('radio-group', RadioGroup);
|
|
52
|
+
hostComponents.set('scroll-view', ScrollView);
|
|
53
|
+
hostComponents.set('swiper', Swiper);
|
|
54
|
+
hostComponents.set('swiper-item', SwiperItem);
|
|
55
|
+
hostComponents.set('switch', Switch);
|
|
56
|
+
hostComponents.set('slider', Slider);
|
|
57
|
+
hostComponents.set('text', Text);
|
|
58
|
+
hostComponents.set('textarea', Textarea);
|
|
59
|
+
hostComponents.set('video', Video);
|
|
60
|
+
hostComponents.set('view', View);
|
|
61
|
+
hostComponents.set('page-container', PageContainer);
|
|
62
|
+
hostComponents.set('ipc-player', IpcPlayer);
|
|
63
|
+
hostComponents.set('cover-view', CoverView);
|
|
64
|
+
hostComponents.set('native-video', NativeVideo);
|
|
65
|
+
hostComponents.set('web-view', WebView);
|
|
66
|
+
hostComponents.set('map', MapView);
|
|
67
|
+
hostComponents.set('camera', Camera);
|
|
68
|
+
hostComponents.set('progress', Progress);
|
|
69
|
+
hostComponents.set('rich-text', RichText);
|
|
70
|
+
hostComponents.set('iframe', Iframe);
|
|
71
|
+
hostComponents.set('navigator', Navigator);
|
|
72
|
+
export default hostComponents;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const universalAlias: {
|
|
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
|
+
animation: string;
|
|
11
|
+
style: string;
|
|
12
|
+
hoverStopPropagation: string;
|
|
13
|
+
onTap: string;
|
|
14
|
+
onClick: string;
|
|
15
|
+
onTouchStart: string;
|
|
16
|
+
onTouchMove: string;
|
|
17
|
+
onTouchEnd: string;
|
|
18
|
+
onTouchCancel: string;
|
|
19
|
+
onLongTap: string;
|
|
20
|
+
onLongClick: string;
|
|
21
|
+
onLongPress: string;
|
|
22
|
+
onTransitionEnd: string;
|
|
23
|
+
onAnimationIteration: string;
|
|
24
|
+
onAnimationStart: string;
|
|
25
|
+
onAnimationEnd: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const universalAlias = {
|
|
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
|
+
animation: 'animation',
|
|
11
|
+
style: 'style',
|
|
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
|
+
onLongPress: 'bindlongpress',
|
|
22
|
+
onTransitionEnd: 'bindtransitionend',
|
|
23
|
+
onAnimationIteration: 'bindanimationiteration',
|
|
24
|
+
onAnimationStart: 'bindanimationstart',
|
|
25
|
+
onAnimationEnd: 'bindanimationend',
|
|
26
|
+
};
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as path from 'path';
|
|
2
|
+
import hostComponents from '../hostComponents/node';
|
|
3
|
+
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
|
|
4
|
+
const plugin = () => {
|
|
5
|
+
return {
|
|
6
|
+
meta: {
|
|
7
|
+
global: 'ty',
|
|
8
|
+
template: { extension: '.tyml', tag: 'import', src: 'src' },
|
|
9
|
+
style: '.tyss',
|
|
10
|
+
jsHelper: { extension: '.sjs', tag: 'sjs', src: 'src' },
|
|
11
|
+
ejs: {
|
|
12
|
+
base: path.join(EJS_TPL_ROOT, 'base.ejs'),
|
|
13
|
+
page: path.join(EJS_TPL_ROOT, 'page.ejs'),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
hostComponents,
|
|
17
|
+
skipHostComponents: ['swiper-item'],
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default plugin;
|