@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
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
10
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface OfficialAccountPublishProps extends BaseProps {
|
|
4
|
+
/** 话题名称,最多20字,默认使用小程序名称 3.9.3 */
|
|
5
|
+
topic?: string;
|
|
6
|
+
/** 小程序页面内最多展示的图文数量,上限10条 3.10.3 */
|
|
7
|
+
limit?: number;
|
|
8
|
+
/** 发表图文后,点击来源小程序跳转的页面 3.11.1 */
|
|
9
|
+
path?: string;
|
|
10
|
+
/** 图文组件的背景颜色 3.9.3 */
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
/** 是否需要色彩统一,话题名称颜色与图文卡片背景颜色对齐 3.9.3 */
|
|
13
|
+
colorUnity?: boolean;
|
|
14
|
+
/** 无内容时的占位文案 3.10.2 */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/** 列表拉取失败时触发 3.9.3 */
|
|
17
|
+
onError?: (event: GenericEvent) => void;
|
|
18
|
+
/** 列表拉取为空时触发 3.9.3 */
|
|
19
|
+
onEmpty?: (event: GenericEvent) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/official-account-publish.html
|
|
23
|
+
*/
|
|
24
|
+
export declare const OfficialAccountPublish: React.ComponentType<OfficialAccountPublishProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfficialAccountPublish = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/official-account-publish.html
|
|
7
|
+
*/
|
|
8
|
+
exports.OfficialAccountPublish = (0, runtime_1.createHostComponent)('official-account-publish');
|
|
9
|
+
exports.OfficialAccountPublish.defaultProps = {
|
|
10
|
+
limit: 4,
|
|
11
|
+
backgroundColor: '#f7f7f7',
|
|
12
|
+
colorUnity: false,
|
|
13
|
+
placeholder: '来写下第一条吧',
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
topic: string;
|
|
7
|
+
limit: string;
|
|
8
|
+
path: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
colorUnity: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
onError: string;
|
|
13
|
+
onEmpty: 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
|
+
topic: 'topic',
|
|
10
|
+
limit: 'limit',
|
|
11
|
+
path: 'path',
|
|
12
|
+
backgroundColor: 'background-color',
|
|
13
|
+
colorUnity: 'color-unity',
|
|
14
|
+
placeholder: 'placeholder',
|
|
15
|
+
onError: 'binderror',
|
|
16
|
+
onEmpty: 'bindempty',
|
|
17
|
+
};
|
|
18
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,27 @@
|
|
|
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/open-container.html
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenContainerProps extends BaseProps {
|
|
8
|
+
/** 初始容器背景色 */
|
|
9
|
+
closedColor?: string;
|
|
10
|
+
/** 初始容器影深大小 */
|
|
11
|
+
closedElevation?: number;
|
|
12
|
+
/** 初始容器圆角大小 */
|
|
13
|
+
closedBorderRadius?: number;
|
|
14
|
+
/** fadeThrough 模式下的过渡背景色 */
|
|
15
|
+
middleColor?: string;
|
|
16
|
+
/** 打开状态下容器背景色 */
|
|
17
|
+
openColor?: string;
|
|
18
|
+
/** 打开状态下容器影深大小 */
|
|
19
|
+
openElevation?: number;
|
|
20
|
+
/** 打开状态下容器圆角大小 */
|
|
21
|
+
openBorderRadius?: number;
|
|
22
|
+
/** 动画时长 */
|
|
23
|
+
transitionDuration?: number;
|
|
24
|
+
/** 动画类型 fade/fadeThrough */
|
|
25
|
+
transitionType?: 'fade' | 'fadeThrough';
|
|
26
|
+
}
|
|
27
|
+
export declare const OpenContainer: React.ComponentType<OpenContainerProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenContainer = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.OpenContainer = (0, runtime_1.createHostComponent)('open-container');
|
|
6
|
+
exports.OpenContainer.defaultProps = {
|
|
7
|
+
closedColor: 'white',
|
|
8
|
+
openColor: 'white',
|
|
9
|
+
transitionDuration: 300,
|
|
10
|
+
transitionType: 'fade',
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
closedColor: string;
|
|
7
|
+
closedElevation: string;
|
|
8
|
+
closedBorderRadius: string;
|
|
9
|
+
middleColor: string;
|
|
10
|
+
openColor: string;
|
|
11
|
+
openElevation: string;
|
|
12
|
+
openBorderRadius: string;
|
|
13
|
+
transitionDuration: string;
|
|
14
|
+
transitionType: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
closedColor: 'closed-color',
|
|
10
|
+
closedElevation: 'closed-elevation',
|
|
11
|
+
closedBorderRadius: 'closed-border-radius',
|
|
12
|
+
middleColor: 'middle-color',
|
|
13
|
+
openColor: 'open-color',
|
|
14
|
+
openElevation: 'open-elevation',
|
|
15
|
+
openBorderRadius: 'open-border-radius',
|
|
16
|
+
transitionDuration: 'transition-duration',
|
|
17
|
+
transitionType: 'transition-type',
|
|
18
|
+
};
|
|
19
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
type: 'type',
|
|
10
|
+
openGid: 'open-gid',
|
|
11
|
+
lang: 'lang',
|
|
12
|
+
};
|
|
5
13
|
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
|
+
* 开放数据子项,需要搭配 open-data-list 使用
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/open-data-item.html
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenDataItemProps extends BaseProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const OpenDataItem: React.ComponentType<OpenDataItemProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
10
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,13 @@
|
|
|
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/open-data-list.html
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenDataListProps extends BaseProps {
|
|
8
|
+
/** 开放数据类型,如 groupMembers */
|
|
9
|
+
type: string;
|
|
10
|
+
/** 群成员 group_openid 列表 */
|
|
11
|
+
members?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const OpenDataList: React.ComponentType<OpenDataListProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
type: 'type',
|
|
10
|
+
members: 'members',
|
|
11
|
+
};
|
|
12
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -2,13 +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',
|
|
5
9
|
show: 'show',
|
|
6
10
|
duration: 'duration',
|
|
7
11
|
zIndex: 'z-index',
|
|
8
12
|
overlay: 'overlay',
|
|
9
13
|
position: 'position',
|
|
10
14
|
round: 'round',
|
|
11
|
-
closeOnSlideDown: 'close-on-
|
|
15
|
+
closeOnSlideDown: 'close-on-slide-down',
|
|
12
16
|
overlayStyle: 'overlay-style',
|
|
13
17
|
customStyle: 'custom-style',
|
|
14
18
|
onBeforeEnter: 'bindbeforeenter',
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 内联元素混排组件(文本与 image/navigator 混排)
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/span.html
|
|
6
|
+
*/
|
|
7
|
+
export interface SpanProps extends BaseProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const Span: React.ComponentType<SpanProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
10
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Skyline 吸顶布局容器
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/sticky-header.html
|
|
6
|
+
*/
|
|
7
|
+
export interface StickyHeaderProps extends BaseProps {
|
|
8
|
+
/** 吸顶时与视窗顶部的距离(px) 3.0.0 */
|
|
9
|
+
offsetTop?: number;
|
|
10
|
+
/** 是否允许与前一个 sticky-header 重叠 3.7.11 */
|
|
11
|
+
allowOverlapping?: boolean;
|
|
12
|
+
/** 内边距,按 top、right、bottom、left 顺序(px) 3.0.0 */
|
|
13
|
+
padding?: [number, number, number, number];
|
|
14
|
+
/** 吸顶状态变化事件 event.detail = { isStickOnTop } 3.6.2 */
|
|
15
|
+
onStickOnTopChange?: (event: GenericEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const StickyHeader: React.ComponentType<StickyHeaderProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StickyHeader = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
exports.StickyHeader = (0, runtime_1.createHostComponent)('sticky-header');
|
|
6
|
+
exports.StickyHeader.defaultProps = {
|
|
7
|
+
offsetTop: 0,
|
|
8
|
+
allowOverlapping: false,
|
|
9
|
+
padding: [0, 0, 0, 0],
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
animation: 'animation',
|
|
9
|
+
offsetTop: 'offset-top',
|
|
10
|
+
allowOverlapping: 'allow-overlapping',
|
|
11
|
+
padding: 'padding',
|
|
12
|
+
onStickOnTopChange: 'bind:stickontopchange',
|
|
13
|
+
};
|
|
14
|
+
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 吸顶布局分区容器
|
|
5
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/sticky-section.html
|
|
6
|
+
*/
|
|
7
|
+
export interface StickySectionProps extends BaseProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const StickySection: React.ComponentType<StickySectionProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
10
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface StoreCouponProps extends BaseProps {
|
|
4
|
+
/** 小店appid 3.8.3 */
|
|
5
|
+
appid?: string;
|
|
6
|
+
/** 优惠券id */
|
|
7
|
+
couponId?: string;
|
|
8
|
+
/** 自定义样式。支持的样式项参见 custom-style 说明 */
|
|
9
|
+
customStyle?: Record<string, string | number>;
|
|
10
|
+
/** 推客参数。用于机构推广券染色 3.8.11 */
|
|
11
|
+
promoterShareLink?: string;
|
|
12
|
+
/** 跳转小店成功的回调 */
|
|
13
|
+
onEnterSuccess?: (event: GenericEvent) => void;
|
|
14
|
+
/** 跳转小店失败的回调,event.detail={code,message} */
|
|
15
|
+
onEnterError?: (event: GenericEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-coupon.html
|
|
19
|
+
*/
|
|
20
|
+
export declare const StoreCoupon: React.ComponentType<StoreCouponProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreCoupon = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-coupon.html
|
|
7
|
+
*/
|
|
8
|
+
exports.StoreCoupon = (0, runtime_1.createHostComponent)('store-coupon');
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
appid: string;
|
|
7
|
+
couponId: string;
|
|
8
|
+
customStyle: string;
|
|
9
|
+
promoterShareLink: string;
|
|
10
|
+
onEnterSuccess: string;
|
|
11
|
+
onEnterError: 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
|
+
appid: 'appid',
|
|
10
|
+
couponId: 'coupon-id',
|
|
11
|
+
customStyle: 'custom-style',
|
|
12
|
+
promoterShareLink: 'promoter-share-link',
|
|
13
|
+
onEnterSuccess: 'bindentersuccess',
|
|
14
|
+
onEnterError: 'bindentererror',
|
|
15
|
+
};
|
|
16
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface StoreGiftProps extends BaseProps {
|
|
4
|
+
/** 礼物订单id 3.8.10 */
|
|
5
|
+
presentOrderId?: string;
|
|
6
|
+
/** 用户openid 3.8.10 */
|
|
7
|
+
openId?: string;
|
|
8
|
+
/** 是否展示礼物卡片,默认展示 3.8.10 */
|
|
9
|
+
showGiftCard?: boolean;
|
|
10
|
+
/** 打开礼物成功的回调,event.detail={code,message} */
|
|
11
|
+
onSuccess?: (event: GenericEvent) => void;
|
|
12
|
+
/** 打开礼物失败的回调,event.detail={code,message} */
|
|
13
|
+
onError?: (event: GenericEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-gift.html
|
|
17
|
+
*/
|
|
18
|
+
export declare const StoreGift: React.ComponentType<StoreGiftProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreGift = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-gift.html
|
|
7
|
+
*/
|
|
8
|
+
exports.StoreGift = (0, runtime_1.createHostComponent)('store-gift');
|
|
9
|
+
exports.StoreGift.defaultProps = {
|
|
10
|
+
showGiftCard: true,
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
presentOrderId: string;
|
|
7
|
+
openId: string;
|
|
8
|
+
showGiftCard: string;
|
|
9
|
+
onSuccess: string;
|
|
10
|
+
onError: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
presentOrderId: 'present-order-id',
|
|
10
|
+
openId: 'open-id',
|
|
11
|
+
showGiftCard: 'show-gift-card',
|
|
12
|
+
onSuccess: 'bindsuccess',
|
|
13
|
+
onError: 'binderror',
|
|
14
|
+
};
|
|
15
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
|
+
export interface StoreHomeProps extends BaseProps {
|
|
4
|
+
/** 小店appid 3.5.5 */
|
|
5
|
+
appid?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html
|
|
9
|
+
*/
|
|
10
|
+
export declare const StoreHome: React.ComponentType<StoreHomeProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreHome = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html
|
|
7
|
+
*/
|
|
8
|
+
exports.StoreHome = (0, runtime_1.createHostComponent)('store-home');
|