@rsmax/wechat 1.3.14 → 2.0.0-canary.91
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/ChannelLive/node.d.ts +9 -2
- package/cjs/hostComponents/ChannelLive/node.js +8 -1
- package/cjs/hostComponents/ChannelVideo/index.d.ts +2 -2
- package/cjs/hostComponents/ChannelVideo/index.js +3 -2
- package/cjs/hostComponents/ChannelVideo/node.d.ts +11 -0
- package/cjs/hostComponents/ChannelVideo/node.js +11 -0
- package/cjs/hostComponents/DraggableSheet/index.d.ts +24 -0
- package/cjs/hostComponents/DraggableSheet/index.js +12 -0
- package/cjs/hostComponents/DraggableSheet/node.d.ts +13 -0
- package/cjs/hostComponents/DraggableSheet/node.js +16 -0
- package/cjs/hostComponents/EditorPortal/index.d.ts +3 -3
- package/cjs/hostComponents/EditorPortal/index.js +0 -3
- package/cjs/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
- package/cjs/hostComponents/FunctionalPageNavigator/node.js +5 -0
- package/cjs/hostComponents/GridBuilder/index.d.ts +29 -0
- package/cjs/hostComponents/GridBuilder/index.js +9 -0
- package/cjs/hostComponents/GridBuilder/node.d.ts +17 -0
- package/cjs/hostComponents/GridBuilder/node.js +20 -0
- package/cjs/hostComponents/GridView/index.d.ts +21 -0
- package/cjs/hostComponents/GridView/index.js +9 -0
- package/cjs/hostComponents/GridView/node.d.ts +13 -0
- package/cjs/hostComponents/GridView/node.js +16 -0
- package/cjs/hostComponents/Input/node.d.ts +2 -1
- package/cjs/hostComponents/Input/node.js +2 -1
- package/cjs/hostComponents/KeyboardAccessory/index.js +1 -1
- package/cjs/hostComponents/KeyboardAccessory/node.d.ts +8 -1
- package/cjs/hostComponents/KeyboardAccessory/node.js +9 -2
- package/cjs/hostComponents/ListBuilder/index.d.ts +25 -0
- package/cjs/hostComponents/ListBuilder/index.js +10 -0
- package/cjs/hostComponents/ListBuilder/node.d.ts +15 -0
- package/cjs/hostComponents/ListBuilder/node.js +18 -0
- package/cjs/hostComponents/ListView/index.d.ts +11 -0
- package/cjs/hostComponents/ListView/index.js +8 -0
- package/cjs/hostComponents/ListView/node.d.ts +8 -0
- package/cjs/hostComponents/ListView/node.js +11 -0
- package/cjs/hostComponents/MatchMedia/node.d.ts +4 -0
- package/cjs/hostComponents/MatchMedia/node.js +4 -0
- package/cjs/hostComponents/NavigationBar/node.d.ts +4 -0
- package/cjs/hostComponents/NavigationBar/node.js +4 -0
- package/cjs/hostComponents/NestedScrollBody/index.d.ts +11 -0
- package/cjs/hostComponents/NestedScrollBody/index.js +8 -0
- package/cjs/hostComponents/NestedScrollBody/node.d.ts +8 -0
- package/cjs/hostComponents/NestedScrollBody/node.js +11 -0
- package/cjs/hostComponents/NestedScrollHeader/index.d.ts +9 -0
- package/cjs/hostComponents/NestedScrollHeader/index.js +5 -0
- package/cjs/hostComponents/NestedScrollHeader/node.d.ts +7 -0
- package/cjs/hostComponents/NestedScrollHeader/node.js +10 -0
- package/cjs/hostComponents/OfficialAccount/node.d.ts +4 -0
- package/cjs/hostComponents/OfficialAccount/node.js +4 -0
- package/cjs/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
- package/cjs/hostComponents/OfficialAccountPublish/index.js +14 -0
- package/cjs/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
- package/cjs/hostComponents/OfficialAccountPublish/node.js +18 -0
- package/cjs/hostComponents/OpenContainer/index.d.ts +27 -0
- package/cjs/hostComponents/OpenContainer/index.js +11 -0
- package/cjs/hostComponents/OpenContainer/node.d.ts +16 -0
- package/cjs/hostComponents/OpenContainer/node.js +19 -0
- package/cjs/hostComponents/OpenData/node.d.ts +4 -0
- package/cjs/hostComponents/OpenData/node.js +9 -1
- package/cjs/hostComponents/OpenDataItem/index.d.ts +9 -0
- package/cjs/hostComponents/OpenDataItem/index.js +5 -0
- package/cjs/hostComponents/OpenDataItem/node.d.ts +7 -0
- package/cjs/hostComponents/OpenDataItem/node.js +10 -0
- package/cjs/hostComponents/OpenDataList/index.d.ts +13 -0
- package/cjs/hostComponents/OpenDataList/index.js +5 -0
- package/cjs/hostComponents/OpenDataList/node.d.ts +9 -0
- package/cjs/hostComponents/OpenDataList/node.js +12 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +4 -0
- package/cjs/hostComponents/PageContainer/node.js +5 -1
- package/cjs/hostComponents/ScrollView/node.d.ts +1 -0
- package/cjs/hostComponents/ScrollView/node.js +1 -0
- package/cjs/hostComponents/Span/index.d.ts +9 -0
- package/cjs/hostComponents/Span/index.js +5 -0
- package/cjs/hostComponents/Span/node.d.ts +7 -0
- package/cjs/hostComponents/Span/node.js +10 -0
- package/cjs/hostComponents/StickyHeader/index.d.ts +17 -0
- package/cjs/hostComponents/StickyHeader/index.js +10 -0
- package/cjs/hostComponents/StickyHeader/node.d.ts +11 -0
- package/cjs/hostComponents/StickyHeader/node.js +14 -0
- package/cjs/hostComponents/StickySection/index.d.ts +9 -0
- package/cjs/hostComponents/StickySection/index.js +5 -0
- package/cjs/hostComponents/StickySection/node.d.ts +7 -0
- package/cjs/hostComponents/StickySection/node.js +10 -0
- package/cjs/hostComponents/StoreCoupon/index.d.ts +20 -0
- package/cjs/hostComponents/StoreCoupon/index.js +8 -0
- package/cjs/hostComponents/StoreCoupon/node.d.ts +13 -0
- package/cjs/hostComponents/StoreCoupon/node.js +16 -0
- package/cjs/hostComponents/StoreGift/index.d.ts +18 -0
- package/cjs/hostComponents/StoreGift/index.js +11 -0
- package/cjs/hostComponents/StoreGift/node.d.ts +12 -0
- package/cjs/hostComponents/StoreGift/node.js +15 -0
- package/cjs/hostComponents/StoreHome/index.d.ts +10 -0
- package/cjs/hostComponents/StoreHome/index.js +8 -0
- package/cjs/hostComponents/StoreHome/node.d.ts +8 -0
- package/cjs/hostComponents/StoreHome/node.js +11 -0
- package/cjs/hostComponents/StoreProduct/index.d.ts +28 -0
- package/cjs/hostComponents/StoreProduct/index.js +13 -0
- package/cjs/hostComponents/StoreProduct/node.d.ts +17 -0
- package/cjs/hostComponents/StoreProduct/node.js +20 -0
- package/cjs/hostComponents/index.d.ts +18 -0
- package/cjs/hostComponents/index.js +18 -0
- package/cjs/hostComponents/node.js +21 -11
- package/cjs/index.d.ts +2 -3
- package/cjs/index.js +25 -6
- package/cjs/node/index.js +17 -7
- package/esm/hostComponents/ChannelLive/node.d.ts +9 -2
- package/esm/hostComponents/ChannelLive/node.js +8 -1
- package/esm/hostComponents/ChannelVideo/index.d.ts +2 -2
- package/esm/hostComponents/ChannelVideo/index.js +3 -2
- package/esm/hostComponents/ChannelVideo/node.d.ts +11 -0
- package/esm/hostComponents/ChannelVideo/node.js +11 -0
- package/esm/hostComponents/DraggableSheet/index.d.ts +24 -0
- package/esm/hostComponents/DraggableSheet/index.js +9 -0
- package/esm/hostComponents/DraggableSheet/node.d.ts +13 -0
- package/esm/hostComponents/DraggableSheet/node.js +13 -0
- package/esm/hostComponents/EditorPortal/index.d.ts +3 -3
- package/esm/hostComponents/EditorPortal/index.js +0 -3
- package/esm/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
- package/esm/hostComponents/FunctionalPageNavigator/node.js +5 -0
- package/esm/hostComponents/GridBuilder/index.d.ts +29 -0
- package/esm/hostComponents/GridBuilder/index.js +6 -0
- package/esm/hostComponents/GridBuilder/node.d.ts +17 -0
- package/esm/hostComponents/GridBuilder/node.js +17 -0
- package/esm/hostComponents/GridView/index.d.ts +21 -0
- package/esm/hostComponents/GridView/index.js +6 -0
- package/esm/hostComponents/GridView/node.d.ts +13 -0
- package/esm/hostComponents/GridView/node.js +13 -0
- package/esm/hostComponents/Input/node.d.ts +2 -1
- package/esm/hostComponents/Input/node.js +2 -1
- package/esm/hostComponents/KeyboardAccessory/index.js +1 -1
- package/esm/hostComponents/KeyboardAccessory/node.d.ts +8 -1
- package/esm/hostComponents/KeyboardAccessory/node.js +9 -2
- package/esm/hostComponents/ListBuilder/index.d.ts +25 -0
- package/esm/hostComponents/ListBuilder/index.js +7 -0
- package/esm/hostComponents/ListBuilder/node.d.ts +15 -0
- package/esm/hostComponents/ListBuilder/node.js +15 -0
- package/esm/hostComponents/ListView/index.d.ts +11 -0
- package/esm/hostComponents/ListView/index.js +5 -0
- package/esm/hostComponents/ListView/node.d.ts +8 -0
- package/esm/hostComponents/ListView/node.js +8 -0
- package/esm/hostComponents/MatchMedia/node.d.ts +4 -0
- package/esm/hostComponents/MatchMedia/node.js +4 -0
- package/esm/hostComponents/NavigationBar/node.d.ts +4 -0
- package/esm/hostComponents/NavigationBar/node.js +4 -0
- package/esm/hostComponents/NestedScrollBody/index.d.ts +11 -0
- package/esm/hostComponents/NestedScrollBody/index.js +5 -0
- package/esm/hostComponents/NestedScrollBody/node.d.ts +8 -0
- package/esm/hostComponents/NestedScrollBody/node.js +8 -0
- package/esm/hostComponents/NestedScrollHeader/index.d.ts +9 -0
- package/esm/hostComponents/NestedScrollHeader/index.js +2 -0
- package/esm/hostComponents/NestedScrollHeader/node.d.ts +7 -0
- package/esm/hostComponents/NestedScrollHeader/node.js +7 -0
- package/esm/hostComponents/OfficialAccount/node.d.ts +4 -0
- package/esm/hostComponents/OfficialAccount/node.js +4 -0
- package/esm/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
- package/esm/hostComponents/OfficialAccountPublish/index.js +11 -0
- package/esm/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
- package/esm/hostComponents/OfficialAccountPublish/node.js +15 -0
- package/esm/hostComponents/OpenContainer/index.d.ts +27 -0
- package/esm/hostComponents/OpenContainer/index.js +8 -0
- package/esm/hostComponents/OpenContainer/node.d.ts +16 -0
- package/esm/hostComponents/OpenContainer/node.js +16 -0
- package/esm/hostComponents/OpenData/node.d.ts +4 -0
- package/esm/hostComponents/OpenData/node.js +9 -1
- package/esm/hostComponents/OpenDataItem/index.d.ts +9 -0
- package/esm/hostComponents/OpenDataItem/index.js +2 -0
- package/esm/hostComponents/OpenDataItem/node.d.ts +7 -0
- package/esm/hostComponents/OpenDataItem/node.js +7 -0
- package/esm/hostComponents/OpenDataList/index.d.ts +13 -0
- package/esm/hostComponents/OpenDataList/index.js +2 -0
- package/esm/hostComponents/OpenDataList/node.d.ts +9 -0
- package/esm/hostComponents/OpenDataList/node.js +9 -0
- package/esm/hostComponents/PageContainer/node.d.ts +4 -0
- package/esm/hostComponents/PageContainer/node.js +5 -1
- package/esm/hostComponents/ScrollView/node.d.ts +1 -0
- package/esm/hostComponents/ScrollView/node.js +1 -0
- package/esm/hostComponents/Span/index.d.ts +9 -0
- package/esm/hostComponents/Span/index.js +2 -0
- package/esm/hostComponents/Span/node.d.ts +7 -0
- package/esm/hostComponents/Span/node.js +7 -0
- package/esm/hostComponents/StickyHeader/index.d.ts +17 -0
- package/esm/hostComponents/StickyHeader/index.js +7 -0
- package/esm/hostComponents/StickyHeader/node.d.ts +11 -0
- package/esm/hostComponents/StickyHeader/node.js +11 -0
- package/esm/hostComponents/StickySection/index.d.ts +9 -0
- package/esm/hostComponents/StickySection/index.js +2 -0
- package/esm/hostComponents/StickySection/node.d.ts +7 -0
- package/esm/hostComponents/StickySection/node.js +7 -0
- package/esm/hostComponents/StoreCoupon/index.d.ts +20 -0
- package/esm/hostComponents/StoreCoupon/index.js +5 -0
- package/esm/hostComponents/StoreCoupon/node.d.ts +13 -0
- package/esm/hostComponents/StoreCoupon/node.js +13 -0
- package/esm/hostComponents/StoreGift/index.d.ts +18 -0
- package/esm/hostComponents/StoreGift/index.js +8 -0
- package/esm/hostComponents/StoreGift/node.d.ts +12 -0
- package/esm/hostComponents/StoreGift/node.js +12 -0
- package/esm/hostComponents/StoreHome/index.d.ts +10 -0
- package/esm/hostComponents/StoreHome/index.js +5 -0
- package/esm/hostComponents/StoreHome/node.d.ts +8 -0
- package/esm/hostComponents/StoreHome/node.js +8 -0
- package/esm/hostComponents/StoreProduct/index.d.ts +28 -0
- package/esm/hostComponents/StoreProduct/index.js +10 -0
- package/esm/hostComponents/StoreProduct/node.d.ts +17 -0
- package/esm/hostComponents/StoreProduct/node.js +17 -0
- package/esm/hostComponents/index.d.ts +18 -0
- package/esm/hostComponents/index.js +18 -0
- package/esm/hostComponents/node.js +4 -4
- package/esm/index.d.ts +2 -3
- package/esm/index.js +2 -3
- package/package.json +38 -8
- package/templates/base.ejs +34 -18
- package/templates/children.ejs +5 -5
- package/templates/page.ejs +6 -0
- package/cjs/api/index.d.ts +0 -466
- package/cjs/api/index.js +0 -587
- package/esm/api/index.d.ts +0 -466
- package/esm/api/index.js +0 -575
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export declare const alias: {
|
|
2
|
-
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
feedId: string;
|
|
7
|
+
finderUserName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const props: string[];
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
|
-
exports.alias = {
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
feedId: 'feed-id',
|
|
10
|
+
finderUserName: 'finder-user-name',
|
|
11
|
+
};
|
|
5
12
|
exports.props = Object.values(exports.alias);
|
|
@@ -25,8 +25,8 @@ export interface ChannelVideoProps extends BaseProps {
|
|
|
25
25
|
feedToken?: string;
|
|
26
26
|
autoplay?: boolean;
|
|
27
27
|
loop?: boolean;
|
|
28
|
-
muted?:
|
|
29
|
-
objectFit?:
|
|
28
|
+
muted?: boolean;
|
|
29
|
+
objectFit?: 'contain' | 'fill' | 'cover';
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
@@ -5,12 +5,13 @@ const runtime_1 = require("@rsmax/runtime");
|
|
|
5
5
|
/**
|
|
6
6
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
|
|
7
7
|
*/
|
|
8
|
-
exports.ChannelVideo = (0, runtime_1.createHostComponent)('channel-
|
|
8
|
+
exports.ChannelVideo = (0, runtime_1.createHostComponent)('channel-video');
|
|
9
9
|
exports.ChannelVideo.defaultProps = {
|
|
10
10
|
feedId: '',
|
|
11
11
|
finderUserName: '',
|
|
12
12
|
feedToken: '',
|
|
13
13
|
autoplay: true,
|
|
14
14
|
loop: false,
|
|
15
|
-
muted:
|
|
15
|
+
muted: false,
|
|
16
|
+
objectFit: 'contain',
|
|
16
17
|
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
feedId: string;
|
|
7
|
+
finderUserName: string;
|
|
8
|
+
feedToken: string;
|
|
9
|
+
autoplay: string;
|
|
10
|
+
loop: string;
|
|
11
|
+
muted: string;
|
|
12
|
+
objectFit: string;
|
|
2
13
|
onError: string;
|
|
3
14
|
};
|
|
4
15
|
export declare const props: string[];
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
feedId: 'feed-id',
|
|
10
|
+
finderUserName: 'finder-user-name',
|
|
11
|
+
feedToken: 'feed-token',
|
|
12
|
+
autoplay: 'autoplay',
|
|
13
|
+
loop: 'loop',
|
|
14
|
+
muted: 'muted',
|
|
15
|
+
objectFit: 'object-fit',
|
|
5
16
|
onError: 'binderror',
|
|
6
17
|
};
|
|
7
18
|
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 半屏可拖拽组件,仅 Skyline 支持
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/draggable-sheet.html
|
|
6
|
+
*/
|
|
7
|
+
export interface DraggableSheetProps extends BaseProps {
|
|
8
|
+
/** 初始时占父容器的比例 3.2.0 */
|
|
9
|
+
initialChildSize?: number;
|
|
10
|
+
/** 最小时占父容器的比例 3.2.0 */
|
|
11
|
+
minChildSize?: number;
|
|
12
|
+
/** 最大时占父容器的比例 3.2.0 */
|
|
13
|
+
maxChildSize?: number;
|
|
14
|
+
/** 拖拽后是否自动对齐关键点 3.2.0 */
|
|
15
|
+
snap?: boolean;
|
|
16
|
+
/** 拖拽后对齐的关键点,无需包含最小和最大值 3.2.0 */
|
|
17
|
+
snapSizes?: number[];
|
|
18
|
+
/** 尺寸发生变化时触发(仅支持 worklet 回调)event = {pixels, size} 3.2.0 */
|
|
19
|
+
workletOnSizeUpdate?: (event: {
|
|
20
|
+
pixels: number;
|
|
21
|
+
size: number;
|
|
22
|
+
}) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const DraggableSheet: React.ComponentType<DraggableSheetProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DraggableSheet = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.DraggableSheet = (0, runtime_1.createHostComponent)('draggable-sheet');
|
|
6
|
+
exports.DraggableSheet.defaultProps = {
|
|
7
|
+
initialChildSize: 0.5,
|
|
8
|
+
minChildSize: 0.25,
|
|
9
|
+
maxChildSize: 1.0,
|
|
10
|
+
snap: false,
|
|
11
|
+
snapSizes: [],
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
initialChildSize: string;
|
|
7
|
+
minChildSize: string;
|
|
8
|
+
maxChildSize: string;
|
|
9
|
+
snap: string;
|
|
10
|
+
snapSizes: string;
|
|
11
|
+
workletOnSizeUpdate: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
initialChildSize: 'initial-child-size',
|
|
10
|
+
minChildSize: 'min-child-size',
|
|
11
|
+
maxChildSize: 'max-child-size',
|
|
12
|
+
snap: 'snap',
|
|
13
|
+
snapSizes: 'snap-sizes',
|
|
14
|
+
workletOnSizeUpdate: 'worklet:onsizeupdate',
|
|
15
|
+
};
|
|
16
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { BaseProps } from '../../types/component';
|
|
3
|
-
export interface
|
|
4
|
-
|
|
3
|
+
export interface EditorPortalProps extends BaseProps {
|
|
4
|
+
portalKey: string;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* 3.7.11
|
|
8
8
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/editor-portal.html
|
|
9
9
|
*/
|
|
10
|
-
export declare const EditorPortal: React.ComponentType<
|
|
10
|
+
export declare const EditorPortal: React.ComponentType<EditorPortalProps>;
|
|
@@ -7,6 +7,3 @@ const runtime_1 = require("@rsmax/runtime");
|
|
|
7
7
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/editor-portal.html
|
|
8
8
|
*/
|
|
9
9
|
exports.EditorPortal = (0, runtime_1.createHostComponent)('editor-portal');
|
|
10
|
-
exports.EditorPortal.defaultProps = {
|
|
11
|
-
key: '',
|
|
12
|
-
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
2
6
|
version: string;
|
|
3
7
|
name: string;
|
|
4
8
|
args: string;
|
|
5
9
|
onSuccess: string;
|
|
6
10
|
onFail: string;
|
|
11
|
+
onCancel: string;
|
|
7
12
|
};
|
|
8
13
|
export declare const props: string[];
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
5
9
|
version: 'version',
|
|
6
10
|
name: 'name',
|
|
7
11
|
args: 'args',
|
|
8
12
|
onSuccess: 'bindsuccess',
|
|
9
13
|
onFail: 'bindfail',
|
|
14
|
+
onCancel: 'bindcancel',
|
|
10
15
|
};
|
|
11
16
|
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 网格构造器,仅 Skyline 支持
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/grid-builder.html
|
|
6
|
+
*/
|
|
7
|
+
export interface GridBuilderProps extends BaseProps {
|
|
8
|
+
/** 内边距,按 top、right、bottom、left 顺序 3.4.0 */
|
|
9
|
+
padding?: [number, number, number, number];
|
|
10
|
+
/** 用于渲染的列表 3.4.0 */
|
|
11
|
+
list?: unknown[];
|
|
12
|
+
/** 完整列表的长度,不传则取 list 的长度 3.4.0 */
|
|
13
|
+
childCount?: number;
|
|
14
|
+
/** 布局方式 aligned/masonry 3.4.0 */
|
|
15
|
+
type?: 'aligned' | 'masonry';
|
|
16
|
+
/** 交叉轴元素数量 3.4.0 */
|
|
17
|
+
crossAxisCount?: number;
|
|
18
|
+
/** 交叉轴元素最大范围 3.4.0 */
|
|
19
|
+
maxCrossAxisExtent?: number;
|
|
20
|
+
/** 主轴方向间隔 3.4.0 */
|
|
21
|
+
mainAxisGap?: number;
|
|
22
|
+
/** 交叉轴方向间隔 3.4.0 */
|
|
23
|
+
crossAxisGap?: number;
|
|
24
|
+
/** 列表项创建时触发 event.detail = {index} 3.4.0 */
|
|
25
|
+
onItemBuild?: (event: GenericEvent) => void;
|
|
26
|
+
/** 列表项回收时触发 event.detail = {index} 3.4.0 */
|
|
27
|
+
onItemDispose?: (event: GenericEvent) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const GridBuilder: React.ComponentType<GridBuilderProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GridBuilder = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.GridBuilder = (0, runtime_1.createHostComponent)('grid-builder');
|
|
6
|
+
exports.GridBuilder.defaultProps = {
|
|
7
|
+
type: 'aligned',
|
|
8
|
+
padding: [0, 0, 0, 0],
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
list: string;
|
|
8
|
+
childCount: string;
|
|
9
|
+
type: string;
|
|
10
|
+
crossAxisCount: string;
|
|
11
|
+
maxCrossAxisExtent: string;
|
|
12
|
+
mainAxisGap: string;
|
|
13
|
+
crossAxisGap: string;
|
|
14
|
+
onItemBuild: string;
|
|
15
|
+
onItemDispose: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
padding: 'padding',
|
|
10
|
+
list: 'list',
|
|
11
|
+
childCount: 'child-count',
|
|
12
|
+
type: 'type',
|
|
13
|
+
crossAxisCount: 'cross-axis-count',
|
|
14
|
+
maxCrossAxisExtent: 'max-cross-axis-extent',
|
|
15
|
+
mainAxisGap: 'main-axis-gap',
|
|
16
|
+
crossAxisGap: 'cross-axis-gap',
|
|
17
|
+
onItemBuild: 'binditembuild',
|
|
18
|
+
onItemDispose: 'binditemdispose',
|
|
19
|
+
};
|
|
20
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 网格/瀑布流布局容器
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/grid-view.html
|
|
6
|
+
*/
|
|
7
|
+
export interface GridViewProps extends BaseProps {
|
|
8
|
+
/** 布局方式 aligned/masonry */
|
|
9
|
+
type?: 'aligned' | 'masonry';
|
|
10
|
+
/** 交叉轴元素数量 */
|
|
11
|
+
crossAxisCount?: number;
|
|
12
|
+
/** 交叉轴元素最大范围 */
|
|
13
|
+
maxCrossAxisExtent?: number;
|
|
14
|
+
/** 主轴方向间隔 */
|
|
15
|
+
mainAxisGap?: number;
|
|
16
|
+
/** 交叉轴方向间隔 */
|
|
17
|
+
crossAxisGap?: number;
|
|
18
|
+
/** 内边距,按 top、right、bottom、left 顺序 3.0.0 */
|
|
19
|
+
padding?: [number, number, number, number];
|
|
20
|
+
}
|
|
21
|
+
export declare const GridView: React.ComponentType<GridViewProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GridView = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.GridView = (0, runtime_1.createHostComponent)('grid-view');
|
|
6
|
+
exports.GridView.defaultProps = {
|
|
7
|
+
type: 'aligned',
|
|
8
|
+
padding: [0, 0, 0, 0],
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
type: string;
|
|
7
|
+
crossAxisCount: string;
|
|
8
|
+
maxCrossAxisExtent: string;
|
|
9
|
+
mainAxisGap: string;
|
|
10
|
+
crossAxisGap: string;
|
|
11
|
+
padding: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
type: 'type',
|
|
10
|
+
crossAxisCount: 'cross-axis-count',
|
|
11
|
+
maxCrossAxisExtent: 'max-cross-axis-extent',
|
|
12
|
+
mainAxisGap: 'main-axis-gap',
|
|
13
|
+
crossAxisGap: 'cross-axis-gap',
|
|
14
|
+
padding: 'padding',
|
|
15
|
+
};
|
|
16
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -3,7 +3,7 @@ export declare const alias: {
|
|
|
3
3
|
autoFocus: string;
|
|
4
4
|
className: string;
|
|
5
5
|
focus: string;
|
|
6
|
-
|
|
6
|
+
alwaysEmbed: string;
|
|
7
7
|
name: string;
|
|
8
8
|
maxlength: string;
|
|
9
9
|
value: string;
|
|
@@ -17,6 +17,7 @@ export declare const alias: {
|
|
|
17
17
|
selectionStart: string;
|
|
18
18
|
selectionEnd: string;
|
|
19
19
|
adjustPosition: string;
|
|
20
|
+
holdKeyboard: string;
|
|
20
21
|
placeholder: string;
|
|
21
22
|
placeholderStyle: string;
|
|
22
23
|
placeholderClass: string;
|
|
@@ -6,7 +6,7 @@ exports.alias = {
|
|
|
6
6
|
autoFocus: 'auto-focus',
|
|
7
7
|
className: 'class',
|
|
8
8
|
focus: 'focus',
|
|
9
|
-
|
|
9
|
+
alwaysEmbed: 'always-embed',
|
|
10
10
|
name: 'name',
|
|
11
11
|
maxlength: 'maxlength',
|
|
12
12
|
value: 'value',
|
|
@@ -20,6 +20,7 @@ exports.alias = {
|
|
|
20
20
|
selectionStart: 'selection-start',
|
|
21
21
|
selectionEnd: 'selection-end',
|
|
22
22
|
adjustPosition: 'adjust-position',
|
|
23
|
+
holdKeyboard: 'hold-keyboard',
|
|
23
24
|
placeholder: 'placeholder',
|
|
24
25
|
placeholderStyle: 'placeholder-style',
|
|
25
26
|
placeholderClass: 'placeholder-class',
|
|
@@ -5,4 +5,4 @@ const runtime_1 = require("@rsmax/runtime");
|
|
|
5
5
|
/**
|
|
6
6
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
7
7
|
*/
|
|
8
|
-
exports.KeyboardAccessory = (0, runtime_1.createHostComponent)('
|
|
8
|
+
exports.KeyboardAccessory = (0, runtime_1.createHostComponent)('keyboard-accessory');
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
|
-
exports.alias = {
|
|
5
|
-
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
onTap: 'bindtap',
|
|
10
|
+
onClick: 'bindtap',
|
|
11
|
+
};
|
|
12
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 列表构造器,仅 Skyline 支持
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/list-builder.html
|
|
6
|
+
*/
|
|
7
|
+
export interface ListBuilderProps extends BaseProps {
|
|
8
|
+
/** 内边距,按 top、right、bottom、left 顺序 */
|
|
9
|
+
padding?: [number, number, number, number];
|
|
10
|
+
/** 类型:定高(static) 或 不定高(dynamic) */
|
|
11
|
+
type?: 'static' | 'dynamic';
|
|
12
|
+
/** 用于渲染的列表 */
|
|
13
|
+
list?: unknown[];
|
|
14
|
+
/** 完整列表的长度,不传则取 list 的长度 */
|
|
15
|
+
childCount?: number;
|
|
16
|
+
/** 列表项的高度,type=static 必填 */
|
|
17
|
+
childHeight?: number[];
|
|
18
|
+
/** 首次渲染的列表项数量,用于减少首屏白屏时长 3.7.12 */
|
|
19
|
+
initialChildCount?: number;
|
|
20
|
+
/** 列表项创建时触发 event.detail = {index} */
|
|
21
|
+
onItemBuild?: (event: GenericEvent) => void;
|
|
22
|
+
/** 列表项回收时触发 event.detail = {index} */
|
|
23
|
+
onItemDispose?: (event: GenericEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const ListBuilder: React.ComponentType<ListBuilderProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListBuilder = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.ListBuilder = (0, runtime_1.createHostComponent)('list-builder');
|
|
6
|
+
exports.ListBuilder.defaultProps = {
|
|
7
|
+
type: 'static',
|
|
8
|
+
padding: [0, 0, 0, 0],
|
|
9
|
+
initialChildCount: 0,
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
type: string;
|
|
8
|
+
list: string;
|
|
9
|
+
childCount: string;
|
|
10
|
+
childHeight: string;
|
|
11
|
+
initialChildCount: string;
|
|
12
|
+
onItemBuild: string;
|
|
13
|
+
onItemDispose: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
padding: 'padding',
|
|
10
|
+
type: 'type',
|
|
11
|
+
list: 'list',
|
|
12
|
+
childCount: 'child-count',
|
|
13
|
+
childHeight: 'child-height',
|
|
14
|
+
initialChildCount: 'initial-child-count',
|
|
15
|
+
onItemBuild: 'binditembuild',
|
|
16
|
+
onItemDispose: 'binditemdispose',
|
|
17
|
+
};
|
|
18
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 列表容器,仅 Skyline 支持
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/list-view.html
|
|
6
|
+
*/
|
|
7
|
+
export interface ListViewProps extends BaseProps {
|
|
8
|
+
/** 内边距,按 top、right、bottom、left 顺序 3.0.0 */
|
|
9
|
+
padding?: [number, number, number, number];
|
|
10
|
+
}
|
|
11
|
+
export declare const ListView: React.ComponentType<ListViewProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListView = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.ListView = (0, runtime_1.createHostComponent)('list-view');
|
|
6
|
+
exports.ListView.defaultProps = {
|
|
7
|
+
padding: [0, 0, 0, 0],
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
padding: 'padding',
|
|
10
|
+
};
|
|
11
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
5
9
|
minWidth: 'min-width',
|
|
6
10
|
maxWidth: 'max-width',
|
|
7
11
|
width: 'width',
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
5
9
|
title: 'title',
|
|
6
10
|
loading: 'loading',
|
|
7
11
|
frontColor: 'front-color',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 嵌套滚动里层容器,仅 Skyline 支持
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/nested-scroll-body.html
|
|
6
|
+
*/
|
|
7
|
+
export interface NestedScrollBodyProps extends BaseProps {
|
|
8
|
+
/** 滚动目标距离顶部的距离(px),外层滚动时该组件在主轴方向逐渐撑开 3.6.2 */
|
|
9
|
+
offsetTop?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const NestedScrollBody: React.ComponentType<NestedScrollBodyProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NestedScrollBody = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.NestedScrollBody = (0, runtime_1.createHostComponent)('nested-scroll-body');
|
|
6
|
+
exports.NestedScrollBody.defaultProps = {
|
|
7
|
+
offsetTop: 0,
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
offsetTop: 'offset-top',
|
|
10
|
+
};
|
|
11
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 嵌套滚动外层 Header
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/nested-scroll-header.html
|
|
6
|
+
*/
|
|
7
|
+
export interface NestedScrollHeaderProps extends BaseProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const NestedScrollHeader: React.ComponentType<NestedScrollHeaderProps>;
|