@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
|
@@ -3,7 +3,7 @@ export const alias = {
|
|
|
3
3
|
autoFocus: 'auto-focus',
|
|
4
4
|
className: 'class',
|
|
5
5
|
focus: 'focus',
|
|
6
|
-
|
|
6
|
+
alwaysEmbed: 'always-embed',
|
|
7
7
|
name: 'name',
|
|
8
8
|
maxlength: 'maxlength',
|
|
9
9
|
value: 'value',
|
|
@@ -17,6 +17,7 @@ export const alias = {
|
|
|
17
17
|
selectionStart: 'selection-start',
|
|
18
18
|
selectionEnd: 'selection-end',
|
|
19
19
|
adjustPosition: 'adjust-position',
|
|
20
|
+
holdKeyboard: 'hold-keyboard',
|
|
20
21
|
placeholder: 'placeholder',
|
|
21
22
|
placeholderStyle: 'placeholder-style',
|
|
22
23
|
placeholderClass: 'placeholder-class',
|
|
@@ -2,4 +2,4 @@ import { createHostComponent } from '@rsmax/runtime';
|
|
|
2
2
|
/**
|
|
3
3
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
4
4
|
*/
|
|
5
|
-
export const KeyboardAccessory = createHostComponent('
|
|
5
|
+
export const KeyboardAccessory = createHostComponent('keyboard-accessory');
|
|
@@ -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,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,15 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
padding: 'padding',
|
|
7
|
+
type: 'type',
|
|
8
|
+
list: 'list',
|
|
9
|
+
childCount: 'child-count',
|
|
10
|
+
childHeight: 'child-height',
|
|
11
|
+
initialChildCount: 'initial-child-count',
|
|
12
|
+
onItemBuild: 'binditembuild',
|
|
13
|
+
onItemDispose: 'binditemdispose',
|
|
14
|
+
};
|
|
15
|
+
export const props = Object.values(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,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,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>;
|
|
@@ -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,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/official-account-publish.html
|
|
4
|
+
*/
|
|
5
|
+
export const OfficialAccountPublish = createHostComponent('official-account-publish');
|
|
6
|
+
OfficialAccountPublish.defaultProps = {
|
|
7
|
+
limit: 4,
|
|
8
|
+
backgroundColor: '#f7f7f7',
|
|
9
|
+
colorUnity: false,
|
|
10
|
+
placeholder: '来写下第一条吧',
|
|
11
|
+
};
|
|
@@ -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,15 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
topic: 'topic',
|
|
7
|
+
limit: 'limit',
|
|
8
|
+
path: 'path',
|
|
9
|
+
backgroundColor: 'background-color',
|
|
10
|
+
colorUnity: 'color-unity',
|
|
11
|
+
placeholder: 'placeholder',
|
|
12
|
+
onError: 'binderror',
|
|
13
|
+
onEmpty: 'bindempty',
|
|
14
|
+
};
|
|
15
|
+
export const props = Object.values(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,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,16 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
closedColor: 'closed-color',
|
|
7
|
+
closedElevation: 'closed-elevation',
|
|
8
|
+
closedBorderRadius: 'closed-border-radius',
|
|
9
|
+
middleColor: 'middle-color',
|
|
10
|
+
openColor: 'open-color',
|
|
11
|
+
openElevation: 'open-elevation',
|
|
12
|
+
openBorderRadius: 'open-border-radius',
|
|
13
|
+
transitionDuration: 'transition-duration',
|
|
14
|
+
transitionType: 'transition-type',
|
|
15
|
+
};
|
|
16
|
+
export const props = Object.values(alias);
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
export const alias = {
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
type: 'type',
|
|
7
|
+
openGid: 'open-gid',
|
|
8
|
+
lang: 'lang',
|
|
9
|
+
};
|
|
2
10
|
export const props = Object.values(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,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>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
2
6
|
show: 'show',
|
|
3
7
|
duration: 'duration',
|
|
4
8
|
zIndex: 'z-index',
|
|
5
9
|
overlay: 'overlay',
|
|
6
10
|
position: 'position',
|
|
7
11
|
round: 'round',
|
|
8
|
-
closeOnSlideDown: 'close-on-
|
|
12
|
+
closeOnSlideDown: 'close-on-slide-down',
|
|
9
13
|
overlayStyle: 'overlay-style',
|
|
10
14
|
customStyle: 'custom-style',
|
|
11
15
|
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,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>;
|