@ray-js/adapter 1.4.0-alpha.4 → 1.4.0-alpha.6
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 +26 -0
- package/package.json +7 -7
- package/LICENSE.md +0 -9
- package/cjs/hostComponents/Button/index.d.ts +0 -16
- package/cjs/hostComponents/Button/index.js +0 -15
- package/cjs/hostComponents/Button/node.d.ts +0 -35
- package/cjs/hostComponents/Button/node.js +0 -6
- package/cjs/hostComponents/Camera/index.d.ts +0 -21
- package/cjs/hostComponents/Camera/index.js +0 -16
- package/cjs/hostComponents/Camera/node.d.ts +0 -44
- package/cjs/hostComponents/Camera/node.js +0 -6
- package/cjs/hostComponents/Canvas/index.d.ts +0 -19
- package/cjs/hostComponents/Canvas/index.js +0 -5
- package/cjs/hostComponents/Canvas/node.d.ts +0 -30
- package/cjs/hostComponents/Canvas/node.js +0 -6
- package/cjs/hostComponents/Checkbox/index.d.ts +0 -13
- package/cjs/hostComponents/Checkbox/index.js +0 -9
- package/cjs/hostComponents/Checkbox/node.d.ts +0 -31
- package/cjs/hostComponents/Checkbox/node.js +0 -6
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +0 -10
- package/cjs/hostComponents/CheckboxGroup/index.js +0 -5
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +0 -29
- package/cjs/hostComponents/CheckboxGroup/node.js +0 -6
- package/cjs/hostComponents/CoverView/index.d.ts +0 -6
- package/cjs/hostComponents/CoverView/index.js +0 -6
- package/cjs/hostComponents/CoverView/node.d.ts +0 -27
- package/cjs/hostComponents/CoverView/node.js +0 -6
- package/cjs/hostComponents/Form/index.d.ts +0 -13
- package/cjs/hostComponents/Form/index.js +0 -9
- package/cjs/hostComponents/Form/node.d.ts +0 -31
- package/cjs/hostComponents/Form/node.js +0 -6
- package/cjs/hostComponents/Iframe/index.d.ts +0 -21
- package/cjs/hostComponents/Iframe/index.js +0 -6
- package/cjs/hostComponents/Iframe/node.d.ts +0 -31
- package/cjs/hostComponents/Iframe/node.js +0 -6
- package/cjs/hostComponents/Image/index.d.ts +0 -43
- package/cjs/hostComponents/Image/index.js +0 -8
- package/cjs/hostComponents/Image/node.d.ts +0 -32
- package/cjs/hostComponents/Image/node.js +0 -6
- package/cjs/hostComponents/Input/index.d.ts +0 -17
- package/cjs/hostComponents/Input/index.js +0 -10
- package/cjs/hostComponents/Input/node.d.ts +0 -39
- package/cjs/hostComponents/Input/node.js +0 -6
- package/cjs/hostComponents/IpcPlayer/index.d.ts +0 -41
- package/cjs/hostComponents/IpcPlayer/index.js +0 -24
- package/cjs/hostComponents/IpcPlayer/node.d.ts +0 -53
- package/cjs/hostComponents/IpcPlayer/node.js +0 -6
- package/cjs/hostComponents/Label/index.d.ts +0 -7
- package/cjs/hostComponents/Label/index.js +0 -5
- package/cjs/hostComponents/Label/node.d.ts +0 -28
- package/cjs/hostComponents/Label/node.js +0 -6
- package/cjs/hostComponents/Map/index.d.ts +0 -66
- package/cjs/hostComponents/Map/index.js +0 -15
- package/cjs/hostComponents/Map/node.d.ts +0 -50
- package/cjs/hostComponents/Map/node.js +0 -6
- package/cjs/hostComponents/MovableArea/index.d.ts +0 -7
- package/cjs/hostComponents/MovableArea/index.js +0 -8
- package/cjs/hostComponents/MovableArea/node.d.ts +0 -28
- package/cjs/hostComponents/MovableArea/node.js +0 -6
- package/cjs/hostComponents/MovableView/index.d.ts +0 -25
- package/cjs/hostComponents/MovableView/index.js +0 -21
- package/cjs/hostComponents/MovableView/node.d.ts +0 -43
- package/cjs/hostComponents/MovableView/node.js +0 -6
- package/cjs/hostComponents/NativeVideo/index.d.ts +0 -38
- package/cjs/hostComponents/NativeVideo/index.js +0 -21
- package/cjs/hostComponents/NativeVideo/node.d.ts +0 -61
- package/cjs/hostComponents/NativeVideo/node.js +0 -6
- package/cjs/hostComponents/Navigator/index.d.ts +0 -38
- package/cjs/hostComponents/Navigator/index.js +0 -17
- package/cjs/hostComponents/Navigator/node.d.ts +0 -23
- package/cjs/hostComponents/Navigator/node.js +0 -26
- package/cjs/hostComponents/PageContainer/index.d.ts +0 -20
- package/cjs/hostComponents/PageContainer/index.js +0 -14
- package/cjs/hostComponents/PageContainer/node.d.ts +0 -43
- package/cjs/hostComponents/PageContainer/node.js +0 -6
- package/cjs/hostComponents/Picker/index.d.ts +0 -64
- package/cjs/hostComponents/Picker/index.js +0 -13
- package/cjs/hostComponents/Picker/node.d.ts +0 -40
- package/cjs/hostComponents/Picker/node.js +0 -6
- package/cjs/hostComponents/PickerView/index.d.ts +0 -17
- package/cjs/hostComponents/PickerView/index.js +0 -5
- package/cjs/hostComponents/PickerView/node.d.ts +0 -33
- package/cjs/hostComponents/PickerView/node.js +0 -6
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +0 -4
- package/cjs/hostComponents/PickerViewColumn/index.js +0 -5
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +0 -27
- package/cjs/hostComponents/PickerViewColumn/node.js +0 -6
- package/cjs/hostComponents/Progress/index.d.ts +0 -14
- package/cjs/hostComponents/Progress/index.js +0 -13
- package/cjs/hostComponents/Progress/node.d.ts +0 -36
- package/cjs/hostComponents/Progress/node.js +0 -6
- package/cjs/hostComponents/Radio/index.d.ts +0 -13
- package/cjs/hostComponents/Radio/index.js +0 -9
- package/cjs/hostComponents/Radio/node.d.ts +0 -31
- package/cjs/hostComponents/Radio/node.js +0 -6
- package/cjs/hostComponents/RadioGroup/index.d.ts +0 -11
- package/cjs/hostComponents/RadioGroup/index.js +0 -5
- package/cjs/hostComponents/RadioGroup/node.d.ts +0 -29
- package/cjs/hostComponents/RadioGroup/node.js +0 -6
- package/cjs/hostComponents/RichText/index.d.ts +0 -13
- package/cjs/hostComponents/RichText/index.js +0 -6
- package/cjs/hostComponents/RichText/node.d.ts +0 -28
- package/cjs/hostComponents/RichText/node.js +0 -6
- package/cjs/hostComponents/ScrollView/index.d.ts +0 -31
- package/cjs/hostComponents/ScrollView/index.js +0 -17
- package/cjs/hostComponents/ScrollView/node.d.ts +0 -53
- package/cjs/hostComponents/ScrollView/node.js +0 -8
- package/cjs/hostComponents/Slider/index.d.ts +0 -27
- package/cjs/hostComponents/Slider/index.js +0 -15
- package/cjs/hostComponents/Slider/node.d.ts +0 -41
- package/cjs/hostComponents/Slider/node.js +0 -6
- package/cjs/hostComponents/Swiper/index.d.ts +0 -21
- package/cjs/hostComponents/Swiper/index.js +0 -15
- package/cjs/hostComponents/Swiper/node.d.ts +0 -43
- package/cjs/hostComponents/Swiper/node.js +0 -6
- package/cjs/hostComponents/SwiperItem/index.d.ts +0 -7
- package/cjs/hostComponents/SwiperItem/index.js +0 -5
- package/cjs/hostComponents/SwiperItem/node.d.ts +0 -29
- package/cjs/hostComponents/SwiperItem/node.js +0 -6
- package/cjs/hostComponents/Switch/index.d.ts +0 -19
- package/cjs/hostComponents/Switch/index.js +0 -14
- package/cjs/hostComponents/Switch/node.d.ts +0 -33
- package/cjs/hostComponents/Switch/node.js +0 -6
- package/cjs/hostComponents/Text/index.d.ts +0 -8
- package/cjs/hostComponents/Text/index.js +0 -9
- package/cjs/hostComponents/Text/node.d.ts +0 -31
- package/cjs/hostComponents/Text/node.js +0 -6
- package/cjs/hostComponents/Textarea/index.d.ts +0 -16
- package/cjs/hostComponents/Textarea/index.js +0 -15
- package/cjs/hostComponents/Textarea/node.d.ts +0 -39
- package/cjs/hostComponents/Textarea/node.js +0 -6
- package/cjs/hostComponents/Video/index.d.ts +0 -37
- package/cjs/hostComponents/Video/index.js +0 -5
- package/cjs/hostComponents/Video/node.d.ts +0 -57
- package/cjs/hostComponents/Video/node.js +0 -7
- package/cjs/hostComponents/View/index.d.ts +0 -24
- package/cjs/hostComponents/View/index.js +0 -11
- package/cjs/hostComponents/View/node.d.ts +0 -28
- package/cjs/hostComponents/View/node.js +0 -6
- package/cjs/hostComponents/WebView/index.d.ts +0 -21
- package/cjs/hostComponents/WebView/index.js +0 -6
- package/cjs/hostComponents/WebView/node.d.ts +0 -32
- package/cjs/hostComponents/WebView/node.js +0 -6
- package/cjs/hostComponents/index.d.ts +0 -35
- package/cjs/hostComponents/index.js +0 -51
- package/cjs/hostComponents/node.d.ts +0 -2
- package/cjs/hostComponents/node.js +0 -97
- package/cjs/hostComponents/universal.d.ts +0 -26
- package/cjs/hostComponents/universal.js +0 -29
- package/cjs/index.d.ts +0 -2
- package/cjs/index.js +0 -18
- package/cjs/node/index.d.ts +0 -3
- package/cjs/node/index.js +0 -48
- package/cjs/types/component.d.ts +0 -84
- package/cjs/types/component.js +0 -2
- package/cjs/types/config.d.ts +0 -185
- package/cjs/types/config.js +0 -2
- package/cjs/types/index.d.ts +0 -2
- package/cjs/types/index.js +0 -17
- package/esm/hostComponents/Button/index.d.ts +0 -16
- package/esm/hostComponents/Button/index.js +0 -12
- package/esm/hostComponents/Button/node.d.ts +0 -35
- package/esm/hostComponents/Button/node.js +0 -3
- package/esm/hostComponents/Camera/index.d.ts +0 -21
- package/esm/hostComponents/Camera/index.js +0 -13
- package/esm/hostComponents/Camera/node.d.ts +0 -44
- package/esm/hostComponents/Camera/node.js +0 -3
- package/esm/hostComponents/Canvas/index.d.ts +0 -19
- package/esm/hostComponents/Canvas/index.js +0 -2
- package/esm/hostComponents/Canvas/node.d.ts +0 -30
- package/esm/hostComponents/Canvas/node.js +0 -3
- package/esm/hostComponents/Checkbox/index.d.ts +0 -13
- package/esm/hostComponents/Checkbox/index.js +0 -6
- package/esm/hostComponents/Checkbox/node.d.ts +0 -31
- package/esm/hostComponents/Checkbox/node.js +0 -3
- package/esm/hostComponents/CheckboxGroup/index.d.ts +0 -10
- package/esm/hostComponents/CheckboxGroup/index.js +0 -2
- package/esm/hostComponents/CheckboxGroup/node.d.ts +0 -29
- package/esm/hostComponents/CheckboxGroup/node.js +0 -3
- package/esm/hostComponents/CoverView/index.d.ts +0 -6
- package/esm/hostComponents/CoverView/index.js +0 -3
- package/esm/hostComponents/CoverView/node.d.ts +0 -27
- package/esm/hostComponents/CoverView/node.js +0 -3
- package/esm/hostComponents/Form/index.d.ts +0 -13
- package/esm/hostComponents/Form/index.js +0 -6
- package/esm/hostComponents/Form/node.d.ts +0 -31
- package/esm/hostComponents/Form/node.js +0 -3
- package/esm/hostComponents/Iframe/index.d.ts +0 -21
- package/esm/hostComponents/Iframe/index.js +0 -3
- package/esm/hostComponents/Iframe/node.d.ts +0 -31
- package/esm/hostComponents/Iframe/node.js +0 -3
- package/esm/hostComponents/Image/index.d.ts +0 -43
- package/esm/hostComponents/Image/index.js +0 -5
- package/esm/hostComponents/Image/node.d.ts +0 -32
- package/esm/hostComponents/Image/node.js +0 -3
- package/esm/hostComponents/Input/index.d.ts +0 -17
- package/esm/hostComponents/Input/index.js +0 -7
- package/esm/hostComponents/Input/node.d.ts +0 -39
- package/esm/hostComponents/Input/node.js +0 -3
- package/esm/hostComponents/IpcPlayer/index.d.ts +0 -41
- package/esm/hostComponents/IpcPlayer/index.js +0 -21
- package/esm/hostComponents/IpcPlayer/node.d.ts +0 -53
- package/esm/hostComponents/IpcPlayer/node.js +0 -3
- package/esm/hostComponents/Label/index.d.ts +0 -7
- package/esm/hostComponents/Label/index.js +0 -2
- package/esm/hostComponents/Label/node.d.ts +0 -28
- package/esm/hostComponents/Label/node.js +0 -3
- package/esm/hostComponents/Map/index.d.ts +0 -66
- package/esm/hostComponents/Map/index.js +0 -12
- package/esm/hostComponents/Map/node.d.ts +0 -50
- package/esm/hostComponents/Map/node.js +0 -3
- package/esm/hostComponents/MovableArea/index.d.ts +0 -7
- package/esm/hostComponents/MovableArea/index.js +0 -5
- package/esm/hostComponents/MovableArea/node.d.ts +0 -28
- package/esm/hostComponents/MovableArea/node.js +0 -3
- package/esm/hostComponents/MovableView/index.d.ts +0 -25
- package/esm/hostComponents/MovableView/index.js +0 -18
- package/esm/hostComponents/MovableView/node.d.ts +0 -43
- package/esm/hostComponents/MovableView/node.js +0 -3
- package/esm/hostComponents/NativeVideo/index.d.ts +0 -38
- package/esm/hostComponents/NativeVideo/index.js +0 -18
- package/esm/hostComponents/NativeVideo/node.d.ts +0 -61
- package/esm/hostComponents/NativeVideo/node.js +0 -3
- package/esm/hostComponents/Navigator/index.d.ts +0 -38
- package/esm/hostComponents/Navigator/index.js +0 -14
- package/esm/hostComponents/Navigator/node.d.ts +0 -23
- package/esm/hostComponents/Navigator/node.js +0 -23
- package/esm/hostComponents/PageContainer/index.d.ts +0 -20
- package/esm/hostComponents/PageContainer/index.js +0 -11
- package/esm/hostComponents/PageContainer/node.d.ts +0 -43
- package/esm/hostComponents/PageContainer/node.js +0 -3
- package/esm/hostComponents/Picker/index.d.ts +0 -64
- package/esm/hostComponents/Picker/index.js +0 -10
- package/esm/hostComponents/Picker/node.d.ts +0 -40
- package/esm/hostComponents/Picker/node.js +0 -3
- package/esm/hostComponents/PickerView/index.d.ts +0 -17
- package/esm/hostComponents/PickerView/index.js +0 -2
- package/esm/hostComponents/PickerView/node.d.ts +0 -33
- package/esm/hostComponents/PickerView/node.js +0 -3
- package/esm/hostComponents/PickerViewColumn/index.d.ts +0 -4
- package/esm/hostComponents/PickerViewColumn/index.js +0 -2
- package/esm/hostComponents/PickerViewColumn/node.d.ts +0 -27
- package/esm/hostComponents/PickerViewColumn/node.js +0 -3
- package/esm/hostComponents/Progress/index.d.ts +0 -14
- package/esm/hostComponents/Progress/index.js +0 -10
- package/esm/hostComponents/Progress/node.d.ts +0 -36
- package/esm/hostComponents/Progress/node.js +0 -3
- package/esm/hostComponents/Radio/index.d.ts +0 -13
- package/esm/hostComponents/Radio/index.js +0 -6
- package/esm/hostComponents/Radio/node.d.ts +0 -31
- package/esm/hostComponents/Radio/node.js +0 -3
- package/esm/hostComponents/RadioGroup/index.d.ts +0 -11
- package/esm/hostComponents/RadioGroup/index.js +0 -2
- package/esm/hostComponents/RadioGroup/node.d.ts +0 -29
- package/esm/hostComponents/RadioGroup/node.js +0 -3
- package/esm/hostComponents/RichText/index.d.ts +0 -13
- package/esm/hostComponents/RichText/index.js +0 -3
- package/esm/hostComponents/RichText/node.d.ts +0 -28
- package/esm/hostComponents/RichText/node.js +0 -3
- package/esm/hostComponents/ScrollView/index.d.ts +0 -31
- package/esm/hostComponents/ScrollView/index.js +0 -14
- package/esm/hostComponents/ScrollView/node.d.ts +0 -53
- package/esm/hostComponents/ScrollView/node.js +0 -5
- package/esm/hostComponents/Slider/index.d.ts +0 -27
- package/esm/hostComponents/Slider/index.js +0 -12
- package/esm/hostComponents/Slider/node.d.ts +0 -41
- package/esm/hostComponents/Slider/node.js +0 -3
- package/esm/hostComponents/Swiper/index.d.ts +0 -21
- package/esm/hostComponents/Swiper/index.js +0 -12
- package/esm/hostComponents/Swiper/node.d.ts +0 -43
- package/esm/hostComponents/Swiper/node.js +0 -3
- package/esm/hostComponents/SwiperItem/index.d.ts +0 -7
- package/esm/hostComponents/SwiperItem/index.js +0 -2
- package/esm/hostComponents/SwiperItem/node.d.ts +0 -29
- package/esm/hostComponents/SwiperItem/node.js +0 -3
- package/esm/hostComponents/Switch/index.d.ts +0 -19
- package/esm/hostComponents/Switch/index.js +0 -11
- package/esm/hostComponents/Switch/node.d.ts +0 -33
- package/esm/hostComponents/Switch/node.js +0 -3
- package/esm/hostComponents/Text/index.d.ts +0 -8
- package/esm/hostComponents/Text/index.js +0 -6
- package/esm/hostComponents/Text/node.d.ts +0 -31
- package/esm/hostComponents/Text/node.js +0 -3
- package/esm/hostComponents/Textarea/index.d.ts +0 -16
- package/esm/hostComponents/Textarea/index.js +0 -12
- package/esm/hostComponents/Textarea/node.d.ts +0 -39
- package/esm/hostComponents/Textarea/node.js +0 -3
- package/esm/hostComponents/Video/index.d.ts +0 -37
- package/esm/hostComponents/Video/index.js +0 -2
- package/esm/hostComponents/Video/node.d.ts +0 -57
- package/esm/hostComponents/Video/node.js +0 -4
- package/esm/hostComponents/View/index.d.ts +0 -24
- package/esm/hostComponents/View/index.js +0 -8
- package/esm/hostComponents/View/node.d.ts +0 -28
- package/esm/hostComponents/View/node.js +0 -3
- package/esm/hostComponents/WebView/index.d.ts +0 -21
- package/esm/hostComponents/WebView/index.js +0 -3
- package/esm/hostComponents/WebView/node.d.ts +0 -32
- package/esm/hostComponents/WebView/node.js +0 -3
- package/esm/hostComponents/index.d.ts +0 -35
- package/esm/hostComponents/index.js +0 -35
- package/esm/hostComponents/node.d.ts +0 -2
- package/esm/hostComponents/node.js +0 -72
- package/esm/hostComponents/universal.d.ts +0 -26
- package/esm/hostComponents/universal.js +0 -26
- package/esm/index.d.ts +0 -2
- package/esm/index.js +0 -2
- package/esm/node/index.d.ts +0 -3
- package/esm/node/index.js +0 -20
- package/esm/types/component.d.ts +0 -84
- package/esm/types/component.js +0 -1
- package/esm/types/config.d.ts +0 -185
- package/esm/types/config.js +0 -1
- package/esm/types/index.d.ts +0 -2
- package/esm/types/index.js +0 -1
package/cjs/node/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const path = __importStar(require("path"));
|
|
30
|
-
const node_1 = __importDefault(require("../hostComponents/node"));
|
|
31
|
-
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
|
|
32
|
-
const plugin = () => {
|
|
33
|
-
return {
|
|
34
|
-
meta: {
|
|
35
|
-
global: 'ty',
|
|
36
|
-
template: { extension: '.tyml', tag: 'import', src: 'src' },
|
|
37
|
-
style: '.tyss',
|
|
38
|
-
jsHelper: { extension: '.sjs', tag: 'sjs', src: 'src' },
|
|
39
|
-
ejs: {
|
|
40
|
-
base: path.join(EJS_TPL_ROOT, 'base.ejs'),
|
|
41
|
-
page: path.join(EJS_TPL_ROOT, 'page.ejs'),
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
hostComponents: node_1.default,
|
|
45
|
-
skipHostComponents: ['swiper-item'],
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
exports.default = plugin;
|
package/cjs/types/component.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/** 微信内置组件公共属性 */
|
|
3
|
-
export interface BaseProps {
|
|
4
|
-
/** 自定义属性: 组件上触发的事件时,会发送给事件处理函数 */
|
|
5
|
-
readonly dataset?: DOMStringMap;
|
|
6
|
-
/** 组件的唯一标示: 保持整个页面唯一 */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** 组件的样式类: 在对应的 WXSS 中定义的样式类 */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** 组件的内联样式: 可以动态设置的内联样式 */
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
/** 组件是否显示: 所有组件默认显示 */
|
|
13
|
-
hidden?: boolean;
|
|
14
|
-
/** 动画对象: 由`ty.createAnimation`创建 */
|
|
15
|
-
animation?: Array<Record<string, any>>;
|
|
16
|
-
/** 子节点 children */
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
/** 点击时触发 */
|
|
19
|
-
onTap?: (event: TouchEvent) => void;
|
|
20
|
-
/** 点击时触发 */
|
|
21
|
-
onClick?: (event: TouchEvent) => void;
|
|
22
|
-
/** 手指触摸动作开始 */
|
|
23
|
-
onTouchStart?: (event: TouchEvent) => void;
|
|
24
|
-
/** 手指触摸后移动 */
|
|
25
|
-
onTouchMove?: (event: TouchEvent) => void;
|
|
26
|
-
/** 手指触摸动作被打断,如来电提醒,弹窗 */
|
|
27
|
-
onTouchCancel?: (event: TouchEvent) => void;
|
|
28
|
-
/** 手指触摸动作结束 */
|
|
29
|
-
onTouchEnd?: (event: TouchEvent) => void;
|
|
30
|
-
/** 手指触摸后,超过350ms再离开,如果指定了事件回调函数并触发了这个事件,tap事件将不被触发 */
|
|
31
|
-
onLongPress?: (event: TouchEvent) => void;
|
|
32
|
-
/** 手指触摸后,超过350ms再离开(推荐使用longpress事件代替) */
|
|
33
|
-
onLongTap?: (event: TouchEvent) => void;
|
|
34
|
-
/** 会在 WXSS transition 或 ty.createAnimation 动画结束后触发 */
|
|
35
|
-
onTransitionEnd?: (event: GenericEvent) => void;
|
|
36
|
-
/** 会在一个 WXSS animation 动画开始时触发 */
|
|
37
|
-
onAnimationStart?: (event: GenericEvent) => void;
|
|
38
|
-
/** 会在一个 WXSS animation 一次迭代结束时触发 */
|
|
39
|
-
onAnimationiteration?: (event: GenericEvent) => void;
|
|
40
|
-
/** 会在一个 WXSS animation 动画完成时触发 */
|
|
41
|
-
onAnimationEnd?: (event: GenericEvent) => void;
|
|
42
|
-
/** 在支持 3D Touch 的 iPhone 设备,重按时会触发 */
|
|
43
|
-
onTouchForceChange?: (event: TouchEvent) => void;
|
|
44
|
-
/** 点击时触发同时阻止事件冒泡 */
|
|
45
|
-
catchClick?: (event: any) => any;
|
|
46
|
-
}
|
|
47
|
-
interface Target {
|
|
48
|
-
/** 事件源组件的id */
|
|
49
|
-
id: string;
|
|
50
|
-
/** 事件源组件上的 `dataset` 自定义属性组成的集合 */
|
|
51
|
-
dataset: any;
|
|
52
|
-
}
|
|
53
|
-
/** 基础事件对象属性列表 */
|
|
54
|
-
export interface BaseEvent {
|
|
55
|
-
/** 事件类型 */
|
|
56
|
-
type: string;
|
|
57
|
-
/** 页面打开到触发事件所经过的毫秒数 */
|
|
58
|
-
timeStamp: number;
|
|
59
|
-
/** 触发事件的源组件 */
|
|
60
|
-
target: Target;
|
|
61
|
-
/**
|
|
62
|
-
* 当前组件的一些属性值集合
|
|
63
|
-
* @特殊事件 canvas 中的触摸事件不可冒泡,所以没有 currentTarget
|
|
64
|
-
*/
|
|
65
|
-
currentTarget: Target;
|
|
66
|
-
/** 事件标记数据 */
|
|
67
|
-
mark: any;
|
|
68
|
-
}
|
|
69
|
-
/** 自定义事件对象属性列表 */
|
|
70
|
-
export interface GenericEvent<Detail = any> extends BaseEvent {
|
|
71
|
-
/** 额外的信息 */
|
|
72
|
-
detail: Detail;
|
|
73
|
-
}
|
|
74
|
-
/** 触摸事件对象属性列表 */
|
|
75
|
-
export interface TouchEvent<T = Touch> extends BaseEvent {
|
|
76
|
-
/** 触摸事件,当前停留在屏幕中的触摸点信息的数组 */
|
|
77
|
-
touches: T[];
|
|
78
|
-
/** 触摸事件,当前变化的触摸点信息的数组 */
|
|
79
|
-
changedTouches: T[];
|
|
80
|
-
}
|
|
81
|
-
export interface DiffLayer {
|
|
82
|
-
updateLayout?: unknown;
|
|
83
|
-
}
|
|
84
|
-
export {};
|
package/cjs/types/component.js
DELETED
package/cjs/types/config.d.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
export interface PageConfig {
|
|
2
|
-
/**
|
|
3
|
-
* HexColor #000000 导航栏背景颜色,如 #000000
|
|
4
|
-
*/
|
|
5
|
-
navigationBarBackgroundColor?: string;
|
|
6
|
-
/**
|
|
7
|
-
* string white 导航栏标题颜色,仅支持 black / white
|
|
8
|
-
*/
|
|
9
|
-
navigationBarTextStyle?: string;
|
|
10
|
-
/**
|
|
11
|
-
* string 导航栏标题文字内容
|
|
12
|
-
*/
|
|
13
|
-
navigationBarTitleText?: string;
|
|
14
|
-
/**
|
|
15
|
-
* string default 导航栏样式
|
|
16
|
-
*/
|
|
17
|
-
navigationStyle?: string;
|
|
18
|
-
/**
|
|
19
|
-
* HexColor #ffffff 窗口的背景色
|
|
20
|
-
*/
|
|
21
|
-
backgroundColor?: string;
|
|
22
|
-
/**
|
|
23
|
-
* string dark 下拉 loading 的样式,仅支持 dark / light
|
|
24
|
-
*/
|
|
25
|
-
backgroundTextStyle?: string;
|
|
26
|
-
/**
|
|
27
|
-
* string #ffffff 顶部窗口的背景色
|
|
28
|
-
*/
|
|
29
|
-
backgroundColorTop?: string;
|
|
30
|
-
/**
|
|
31
|
-
* string #ffffff 底部窗口的背景色
|
|
32
|
-
*/
|
|
33
|
-
backgroundColorBottom?: string;
|
|
34
|
-
/**
|
|
35
|
-
* boolean false 是否开启当前页面下拉刷新
|
|
36
|
-
*/
|
|
37
|
-
enablePullDownRefresh?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* number 50 页面上拉触底事件触发时距页面底部距离,单位为 px
|
|
40
|
-
*/
|
|
41
|
-
onReachBottomDistance?: number;
|
|
42
|
-
/**
|
|
43
|
-
* string portrait 屏幕旋转设置,支持 auto / portrait / landscape
|
|
44
|
-
*/
|
|
45
|
-
pageOrientation?: string;
|
|
46
|
-
/**
|
|
47
|
-
* boolean false 设置为 true 则页面整体不能上下滚动
|
|
48
|
-
*/
|
|
49
|
-
disableScroll?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Object 否 页面自定义组件配置
|
|
52
|
-
*/
|
|
53
|
-
usingComponents?: Record<string, string>;
|
|
54
|
-
/**
|
|
55
|
-
* string 页面初始渲染缓存配置
|
|
56
|
-
*/
|
|
57
|
-
initialRenderingCache?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface AppConfig {
|
|
60
|
-
/**
|
|
61
|
-
* 指定小程序的默认启动路径(首页),常见情景是从微信聊天列表页下拉启动、小程序列表启动等。如果不填,将默认为 pages 列表的第一项。不支持带页面路径参数。
|
|
62
|
-
*/
|
|
63
|
-
entryPagePath?: string;
|
|
64
|
-
/**
|
|
65
|
-
* 自定义 theme.json 的路径,配置了 themeLocation 自动支持主题配置。
|
|
66
|
-
*/
|
|
67
|
-
themeLocation?: string;
|
|
68
|
-
/**
|
|
69
|
-
* 用于指定小程序由哪些页面组成,每一项都对应一个页面的 路径(含文件名) 信息。文件名不需要写文件后缀,框架会自动去寻找对应位置的 .json, .js, .xml, .css/less 四个文件进行处理。
|
|
70
|
-
* 未指定 entryPagePath 时,数组的第一项代表小程序的初始页面(首页)。
|
|
71
|
-
* 小程序中新增/减少页面,都需要对 pages 数组进行修改。
|
|
72
|
-
*/
|
|
73
|
-
pages: string[];
|
|
74
|
-
tabBar?: TabBar;
|
|
75
|
-
/**
|
|
76
|
-
* 用于设置小程序的状态栏、导航条、标题、窗口背景色。
|
|
77
|
-
*/
|
|
78
|
-
window?: Window;
|
|
79
|
-
networkTimeout?: NetworkTimeout;
|
|
80
|
-
}
|
|
81
|
-
interface TabBar {
|
|
82
|
-
/**
|
|
83
|
-
* HexColor 是 tab 上的文字默认颜色,仅支持十六进制颜色
|
|
84
|
-
*/
|
|
85
|
-
color: string;
|
|
86
|
-
/**
|
|
87
|
-
* HexColor 是 tab 上的文字选中时的颜色,仅支持十六进制颜色
|
|
88
|
-
*/
|
|
89
|
-
selectedColor: string;
|
|
90
|
-
/**
|
|
91
|
-
* HexColor 是 tab 的背景色,仅支持十六进制颜色
|
|
92
|
-
*/
|
|
93
|
-
backgroundColor?: string;
|
|
94
|
-
/**
|
|
95
|
-
* string 否 black tabbar 上边框的颜色, 仅支持 black / white
|
|
96
|
-
*/
|
|
97
|
-
borderStyle?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Array 是 tab 的列表,详见 list 属性说明,最少 2 个、最多 5 个 tab
|
|
100
|
-
*/
|
|
101
|
-
list: List[];
|
|
102
|
-
/**
|
|
103
|
-
* string 否 bottom tabBar 的位置,仅支持 bottom / top
|
|
104
|
-
*/
|
|
105
|
-
position?: 'top' | 'bottom';
|
|
106
|
-
/**
|
|
107
|
-
* boolean 否 false 自定义 tabBar,见详情
|
|
108
|
-
*/
|
|
109
|
-
custom?: boolean;
|
|
110
|
-
}
|
|
111
|
-
interface List {
|
|
112
|
-
/**
|
|
113
|
-
* 页面路径,必须在 pages 中先定义
|
|
114
|
-
*/
|
|
115
|
-
pagePath: string;
|
|
116
|
-
/**
|
|
117
|
-
* tab 上按钮文字
|
|
118
|
-
*/
|
|
119
|
-
text: string;
|
|
120
|
-
/**
|
|
121
|
-
* 图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。
|
|
122
|
-
*/
|
|
123
|
-
iconPath?: string;
|
|
124
|
-
/**
|
|
125
|
-
* 选中时的图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。 当 position 为 top 时,不显示 icon。
|
|
126
|
-
*/
|
|
127
|
-
selectedIconPath?: string;
|
|
128
|
-
}
|
|
129
|
-
interface Window {
|
|
130
|
-
/**
|
|
131
|
-
* HexColor #000000 导航栏背景颜色,如 #000000
|
|
132
|
-
*/
|
|
133
|
-
navigationBarBackgroundColor?: string;
|
|
134
|
-
/**
|
|
135
|
-
* string white 导航栏标题颜色,仅支持 black / white
|
|
136
|
-
*/
|
|
137
|
-
navigationBarTextStyle?: string;
|
|
138
|
-
/**
|
|
139
|
-
* string 导航栏标题文字内容
|
|
140
|
-
*/
|
|
141
|
-
navigationBarTitleText?: string;
|
|
142
|
-
/**
|
|
143
|
-
* string default 导航栏样式
|
|
144
|
-
*/
|
|
145
|
-
navigationStyle?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Boolean false 自定义导航栏,只保留右上角胶囊按钮。
|
|
148
|
-
*/
|
|
149
|
-
custom?: string;
|
|
150
|
-
/**
|
|
151
|
-
* HexColor #ffffff 窗口的背景色
|
|
152
|
-
*/
|
|
153
|
-
backgroundColor?: string;
|
|
154
|
-
/**
|
|
155
|
-
* string dark 下拉 loading 的样式,仅支持 dark / light
|
|
156
|
-
*/
|
|
157
|
-
backgroundTextStyle?: 'dark' | 'light';
|
|
158
|
-
/**
|
|
159
|
-
* string #ffffff 顶部窗口的背景色,仅 iOS 支持
|
|
160
|
-
*/
|
|
161
|
-
backgroundColorTop?: string;
|
|
162
|
-
/**
|
|
163
|
-
* string #ffffff 底部窗口的背景色,仅 iOS 支持
|
|
164
|
-
*/
|
|
165
|
-
backgroundColorBottom?: string;
|
|
166
|
-
/**
|
|
167
|
-
* boolean false 是否开启全局的下拉刷新。
|
|
168
|
-
*/
|
|
169
|
-
enablePullDownRefresh?: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* number 50 页面上拉触底事件触发时距页面底部距离,单位为 px。
|
|
172
|
-
*/
|
|
173
|
-
onReachBottomDistance?: number;
|
|
174
|
-
/**
|
|
175
|
-
* string portrait 屏幕旋转设置,支持 auto / portrait / landscape
|
|
176
|
-
*/
|
|
177
|
-
pageOrientation?: 'auto' | 'portrait' | 'landscape';
|
|
178
|
-
}
|
|
179
|
-
interface NetworkTimeout {
|
|
180
|
-
request: number;
|
|
181
|
-
connectSocket: number;
|
|
182
|
-
uploadFile: number;
|
|
183
|
-
downloadFile: number;
|
|
184
|
-
}
|
|
185
|
-
export {};
|
package/cjs/types/config.js
DELETED
package/cjs/types/index.d.ts
DELETED
package/cjs/types/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./config"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
3
|
-
export interface ButtonProps extends BaseProps {
|
|
4
|
-
size?: 'mini' | 'default';
|
|
5
|
-
type?: 'primary' | 'default' | 'warn';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
formType?: 'submit' | 'reset';
|
|
9
|
-
plain?: boolean;
|
|
10
|
-
hoverClassName?: string;
|
|
11
|
-
hoverStartTime?: number;
|
|
12
|
-
hoverStayTime?: number;
|
|
13
|
-
hoverStopPropagation?: boolean;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const Button: React.ComponentType<ButtonProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
-
export const Button = createHostComponent('button');
|
|
3
|
-
Button.defaultProps = {
|
|
4
|
-
size: 'default',
|
|
5
|
-
type: 'default',
|
|
6
|
-
hoverClassName: 'button-hover',
|
|
7
|
-
hoverStartTime: 20,
|
|
8
|
-
hoverStayTime: 70,
|
|
9
|
-
// disabled: false,
|
|
10
|
-
// loading: false,
|
|
11
|
-
// hoverStopPropagation: false,
|
|
12
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const alias: {
|
|
2
|
-
className: string;
|
|
3
|
-
animation: string;
|
|
4
|
-
id: string;
|
|
5
|
-
style: string;
|
|
6
|
-
size: string;
|
|
7
|
-
type: string;
|
|
8
|
-
plain: string;
|
|
9
|
-
disabled: string;
|
|
10
|
-
loading: string;
|
|
11
|
-
formType: string;
|
|
12
|
-
openType: string;
|
|
13
|
-
hoverClassName: string;
|
|
14
|
-
hoverStartTime: string;
|
|
15
|
-
hoverStayTime: string;
|
|
16
|
-
hoverStopPropagation: string;
|
|
17
|
-
onGetPhoneNumber: 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
|
-
disableScroll: string;
|
|
28
|
-
hoverClass: string;
|
|
29
|
-
hidden: string;
|
|
30
|
-
onTransitionEnd: string;
|
|
31
|
-
onAnimationIteration: string;
|
|
32
|
-
onAnimationStart: string;
|
|
33
|
-
onAnimationEnd: string;
|
|
34
|
-
};
|
|
35
|
-
export declare const props: string[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress' });
|
|
3
|
-
export const props = Object.values(alias);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
|
|
3
|
-
export interface CameraProps extends BaseProps, DiffLayer {
|
|
4
|
-
mode?: string;
|
|
5
|
-
resolution?: string;
|
|
6
|
-
devicePosition?: string;
|
|
7
|
-
flash?: string;
|
|
8
|
-
borderWidth?: number;
|
|
9
|
-
borderStyle?: string;
|
|
10
|
-
borderColor?: string;
|
|
11
|
-
borderRadius?: number;
|
|
12
|
-
borderRadiusTopLeft?: number;
|
|
13
|
-
borderRadiusTopRight?: number;
|
|
14
|
-
borderRadiusBottomLeft?: number;
|
|
15
|
-
borderRadiusBottomRight?: number;
|
|
16
|
-
backgroundColor?: string;
|
|
17
|
-
onBindstop?: (event: GenericEvent) => any;
|
|
18
|
-
onError?: (event: GenericEvent) => any;
|
|
19
|
-
onInitdone?: (event: GenericEvent) => any;
|
|
20
|
-
}
|
|
21
|
-
export declare const Camera: React.ComponentType<CameraProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createHostComponent } from '@ray-core/runtime';
|
|
2
|
-
export const Camera = createHostComponent('camera');
|
|
3
|
-
Camera.defaultProps = {
|
|
4
|
-
mode: 'normal',
|
|
5
|
-
resolution: 'medium',
|
|
6
|
-
devicePosition: 'back',
|
|
7
|
-
flash: 'auto',
|
|
8
|
-
borderWidth: 0,
|
|
9
|
-
borderStyle: 'solid',
|
|
10
|
-
borderColor: '#ffffff',
|
|
11
|
-
borderRadius: 0,
|
|
12
|
-
backgroundColor: '#ffffff',
|
|
13
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const alias: {
|
|
2
|
-
id: string;
|
|
3
|
-
className: string;
|
|
4
|
-
style: string;
|
|
5
|
-
updateLayout: string;
|
|
6
|
-
mode: string;
|
|
7
|
-
resolution: string;
|
|
8
|
-
devicePosition: string;
|
|
9
|
-
flash: string;
|
|
10
|
-
borderWidth: string;
|
|
11
|
-
borderStyle: string;
|
|
12
|
-
borderColor: string;
|
|
13
|
-
borderRadius: string;
|
|
14
|
-
borderRadiusTopLeft: string;
|
|
15
|
-
borderRadiusTopRight: string;
|
|
16
|
-
borderRadiusBottomLeft: string;
|
|
17
|
-
borderRadiusBottomRight: string;
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
onBindstop: string;
|
|
20
|
-
onError: string;
|
|
21
|
-
onInitdone: string;
|
|
22
|
-
disableScroll: string;
|
|
23
|
-
hoverClass: string;
|
|
24
|
-
hoverClassName: string;
|
|
25
|
-
hoverStartTime: string;
|
|
26
|
-
hoverStayTime: string;
|
|
27
|
-
hidden: string;
|
|
28
|
-
animation: string;
|
|
29
|
-
hoverStopPropagation: string;
|
|
30
|
-
onTap: string;
|
|
31
|
-
onClick: string;
|
|
32
|
-
onTouchStart: string;
|
|
33
|
-
onTouchMove: string;
|
|
34
|
-
onTouchEnd: string;
|
|
35
|
-
onTouchCancel: string;
|
|
36
|
-
onLongTap: string;
|
|
37
|
-
onLongClick: string;
|
|
38
|
-
onLongPress: string;
|
|
39
|
-
onTransitionEnd: string;
|
|
40
|
-
onAnimationIteration: string;
|
|
41
|
-
onAnimationStart: string;
|
|
42
|
-
onAnimationEnd: string;
|
|
43
|
-
};
|
|
44
|
-
export declare const props: string[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', style: 'style', updateLayout: 'update-layout', mode: 'mode', resolution: 'resolution', devicePosition: 'device-position', flash: 'flash', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', borderRadiusTopLeft: 'border-radius-top-left', borderRadiusTopRight: 'border-radius-top-right', borderRadiusBottomLeft: 'border-radius-bottom-left', borderRadiusBottomRight: 'border-radius-bottom-right', backgroundColor: 'background-color', onBindstop: 'bind:bindstop', onError: 'bind:error', onInitdone: 'bind:initdone' });
|
|
3
|
-
export const props = Object.values(alias);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GenericEvent } from '../../types';
|
|
3
|
-
export interface CanvasProps {
|
|
4
|
-
readonly dataset?: DOMStringMap;
|
|
5
|
-
id?: string;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
onTap?: (e: any) => void;
|
|
9
|
-
type?: string;
|
|
10
|
-
canvasId?: string;
|
|
11
|
-
disableScroll?: string;
|
|
12
|
-
onTouchStart?: (event: GenericEvent) => void;
|
|
13
|
-
onTouchMove?: (event: GenericEvent) => void;
|
|
14
|
-
onTouchEnd?: (event: GenericEvent) => void;
|
|
15
|
-
onTouchCancel?: (event: GenericEvent) => void;
|
|
16
|
-
onLongTap?: (event: GenericEvent) => void;
|
|
17
|
-
onError?: (event: GenericEvent) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const Canvas: React.ComponentType<CanvasProps>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const alias: {
|
|
2
|
-
id: string;
|
|
3
|
-
style: string;
|
|
4
|
-
className: string;
|
|
5
|
-
animation: string;
|
|
6
|
-
disableScroll: string;
|
|
7
|
-
type: string;
|
|
8
|
-
canvasId: string;
|
|
9
|
-
onTouchStart: string;
|
|
10
|
-
onTouchMove: string;
|
|
11
|
-
onTouchEnd: string;
|
|
12
|
-
onTouchCancel: string;
|
|
13
|
-
onError: string;
|
|
14
|
-
onLongTap: string;
|
|
15
|
-
onLongClick: string;
|
|
16
|
-
onTap: string;
|
|
17
|
-
onClick: string;
|
|
18
|
-
hoverClass: string;
|
|
19
|
-
hoverClassName: string;
|
|
20
|
-
hoverStartTime: string;
|
|
21
|
-
hoverStayTime: string;
|
|
22
|
-
hidden: string;
|
|
23
|
-
hoverStopPropagation: string;
|
|
24
|
-
onLongPress: string;
|
|
25
|
-
onTransitionEnd: string;
|
|
26
|
-
onAnimationIteration: string;
|
|
27
|
-
onAnimationStart: string;
|
|
28
|
-
onAnimationEnd: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const props: string[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', style: 'style', className: 'class', animation: 'animation', disableScroll: 'disable-scroll', type: 'type', canvasId: 'canvas-id', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onError: 'binderror', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onTap: 'bindtap', onClick: 'bindtap' });
|
|
3
|
-
export const props = Object.values(alias);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
3
|
-
export interface CheckboxProps extends BaseProps {
|
|
4
|
-
/** checkbox 标识,选中时触发 checkbox-group 的 change 事件,并携带 checkbox 的 value */
|
|
5
|
-
value?: string;
|
|
6
|
-
/** 是否禁用 */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/** 当前是否选中,可用来设置默认选中 */
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
/** (default: #09BB07) checkbox的颜色,同css的color */
|
|
11
|
-
color?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const Checkbox: React.ComponentType<CheckboxProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const alias: {
|
|
2
|
-
id: string;
|
|
3
|
-
className: string;
|
|
4
|
-
animation: string;
|
|
5
|
-
style: string;
|
|
6
|
-
value: string;
|
|
7
|
-
checked: string;
|
|
8
|
-
disabled: string;
|
|
9
|
-
color: string;
|
|
10
|
-
disableScroll: string;
|
|
11
|
-
hoverClass: string;
|
|
12
|
-
hoverClassName: string;
|
|
13
|
-
hoverStartTime: string;
|
|
14
|
-
hoverStayTime: string;
|
|
15
|
-
hidden: string;
|
|
16
|
-
hoverStopPropagation: string;
|
|
17
|
-
onTap: string;
|
|
18
|
-
onClick: string;
|
|
19
|
-
onTouchStart: string;
|
|
20
|
-
onTouchMove: string;
|
|
21
|
-
onTouchEnd: string;
|
|
22
|
-
onTouchCancel: string;
|
|
23
|
-
onLongTap: string;
|
|
24
|
-
onLongClick: string;
|
|
25
|
-
onLongPress: string;
|
|
26
|
-
onTransitionEnd: string;
|
|
27
|
-
onAnimationIteration: string;
|
|
28
|
-
onAnimationStart: string;
|
|
29
|
-
onAnimationEnd: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const props: string[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', checked: 'checked', disabled: 'disabled', color: 'color' });
|
|
3
|
-
export const props = Object.values(alias);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
-
export interface CheckboxGroupProps extends BaseProps {
|
|
4
|
-
name?: string;
|
|
5
|
-
/**
|
|
6
|
-
* checkbox-group 中选中项发生改变时触发 change 事件,detail = {value:[选中的 checkbox 的 value 的数组]}
|
|
7
|
-
*/
|
|
8
|
-
onChange?: (event: GenericEvent) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const CheckboxGroup: React.ComponentType<CheckboxGroupProps>;
|