@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.
Files changed (217) hide show
  1. package/cjs/hostComponents/ChannelLive/node.d.ts +9 -2
  2. package/cjs/hostComponents/ChannelLive/node.js +8 -1
  3. package/cjs/hostComponents/ChannelVideo/index.d.ts +2 -2
  4. package/cjs/hostComponents/ChannelVideo/index.js +3 -2
  5. package/cjs/hostComponents/ChannelVideo/node.d.ts +11 -0
  6. package/cjs/hostComponents/ChannelVideo/node.js +11 -0
  7. package/cjs/hostComponents/DraggableSheet/index.d.ts +24 -0
  8. package/cjs/hostComponents/DraggableSheet/index.js +12 -0
  9. package/cjs/hostComponents/DraggableSheet/node.d.ts +13 -0
  10. package/cjs/hostComponents/DraggableSheet/node.js +16 -0
  11. package/cjs/hostComponents/EditorPortal/index.d.ts +3 -3
  12. package/cjs/hostComponents/EditorPortal/index.js +0 -3
  13. package/cjs/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
  14. package/cjs/hostComponents/FunctionalPageNavigator/node.js +5 -0
  15. package/cjs/hostComponents/GridBuilder/index.d.ts +29 -0
  16. package/cjs/hostComponents/GridBuilder/index.js +9 -0
  17. package/cjs/hostComponents/GridBuilder/node.d.ts +17 -0
  18. package/cjs/hostComponents/GridBuilder/node.js +20 -0
  19. package/cjs/hostComponents/GridView/index.d.ts +21 -0
  20. package/cjs/hostComponents/GridView/index.js +9 -0
  21. package/cjs/hostComponents/GridView/node.d.ts +13 -0
  22. package/cjs/hostComponents/GridView/node.js +16 -0
  23. package/cjs/hostComponents/Input/node.d.ts +2 -1
  24. package/cjs/hostComponents/Input/node.js +2 -1
  25. package/cjs/hostComponents/KeyboardAccessory/index.js +1 -1
  26. package/cjs/hostComponents/KeyboardAccessory/node.d.ts +8 -1
  27. package/cjs/hostComponents/KeyboardAccessory/node.js +9 -2
  28. package/cjs/hostComponents/ListBuilder/index.d.ts +25 -0
  29. package/cjs/hostComponents/ListBuilder/index.js +10 -0
  30. package/cjs/hostComponents/ListBuilder/node.d.ts +15 -0
  31. package/cjs/hostComponents/ListBuilder/node.js +18 -0
  32. package/cjs/hostComponents/ListView/index.d.ts +11 -0
  33. package/cjs/hostComponents/ListView/index.js +8 -0
  34. package/cjs/hostComponents/ListView/node.d.ts +8 -0
  35. package/cjs/hostComponents/ListView/node.js +11 -0
  36. package/cjs/hostComponents/MatchMedia/node.d.ts +4 -0
  37. package/cjs/hostComponents/MatchMedia/node.js +4 -0
  38. package/cjs/hostComponents/NavigationBar/node.d.ts +4 -0
  39. package/cjs/hostComponents/NavigationBar/node.js +4 -0
  40. package/cjs/hostComponents/NestedScrollBody/index.d.ts +11 -0
  41. package/cjs/hostComponents/NestedScrollBody/index.js +8 -0
  42. package/cjs/hostComponents/NestedScrollBody/node.d.ts +8 -0
  43. package/cjs/hostComponents/NestedScrollBody/node.js +11 -0
  44. package/cjs/hostComponents/NestedScrollHeader/index.d.ts +9 -0
  45. package/cjs/hostComponents/NestedScrollHeader/index.js +5 -0
  46. package/cjs/hostComponents/NestedScrollHeader/node.d.ts +7 -0
  47. package/cjs/hostComponents/NestedScrollHeader/node.js +10 -0
  48. package/cjs/hostComponents/OfficialAccount/node.d.ts +4 -0
  49. package/cjs/hostComponents/OfficialAccount/node.js +4 -0
  50. package/cjs/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
  51. package/cjs/hostComponents/OfficialAccountPublish/index.js +14 -0
  52. package/cjs/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
  53. package/cjs/hostComponents/OfficialAccountPublish/node.js +18 -0
  54. package/cjs/hostComponents/OpenContainer/index.d.ts +27 -0
  55. package/cjs/hostComponents/OpenContainer/index.js +11 -0
  56. package/cjs/hostComponents/OpenContainer/node.d.ts +16 -0
  57. package/cjs/hostComponents/OpenContainer/node.js +19 -0
  58. package/cjs/hostComponents/OpenData/node.d.ts +4 -0
  59. package/cjs/hostComponents/OpenData/node.js +9 -1
  60. package/cjs/hostComponents/OpenDataItem/index.d.ts +9 -0
  61. package/cjs/hostComponents/OpenDataItem/index.js +5 -0
  62. package/cjs/hostComponents/OpenDataItem/node.d.ts +7 -0
  63. package/cjs/hostComponents/OpenDataItem/node.js +10 -0
  64. package/cjs/hostComponents/OpenDataList/index.d.ts +13 -0
  65. package/cjs/hostComponents/OpenDataList/index.js +5 -0
  66. package/cjs/hostComponents/OpenDataList/node.d.ts +9 -0
  67. package/cjs/hostComponents/OpenDataList/node.js +12 -0
  68. package/cjs/hostComponents/PageContainer/node.d.ts +4 -0
  69. package/cjs/hostComponents/PageContainer/node.js +5 -1
  70. package/cjs/hostComponents/ScrollView/node.d.ts +1 -0
  71. package/cjs/hostComponents/ScrollView/node.js +1 -0
  72. package/cjs/hostComponents/Span/index.d.ts +9 -0
  73. package/cjs/hostComponents/Span/index.js +5 -0
  74. package/cjs/hostComponents/Span/node.d.ts +7 -0
  75. package/cjs/hostComponents/Span/node.js +10 -0
  76. package/cjs/hostComponents/StickyHeader/index.d.ts +17 -0
  77. package/cjs/hostComponents/StickyHeader/index.js +10 -0
  78. package/cjs/hostComponents/StickyHeader/node.d.ts +11 -0
  79. package/cjs/hostComponents/StickyHeader/node.js +14 -0
  80. package/cjs/hostComponents/StickySection/index.d.ts +9 -0
  81. package/cjs/hostComponents/StickySection/index.js +5 -0
  82. package/cjs/hostComponents/StickySection/node.d.ts +7 -0
  83. package/cjs/hostComponents/StickySection/node.js +10 -0
  84. package/cjs/hostComponents/StoreCoupon/index.d.ts +20 -0
  85. package/cjs/hostComponents/StoreCoupon/index.js +8 -0
  86. package/cjs/hostComponents/StoreCoupon/node.d.ts +13 -0
  87. package/cjs/hostComponents/StoreCoupon/node.js +16 -0
  88. package/cjs/hostComponents/StoreGift/index.d.ts +18 -0
  89. package/cjs/hostComponents/StoreGift/index.js +11 -0
  90. package/cjs/hostComponents/StoreGift/node.d.ts +12 -0
  91. package/cjs/hostComponents/StoreGift/node.js +15 -0
  92. package/cjs/hostComponents/StoreHome/index.d.ts +10 -0
  93. package/cjs/hostComponents/StoreHome/index.js +8 -0
  94. package/cjs/hostComponents/StoreHome/node.d.ts +8 -0
  95. package/cjs/hostComponents/StoreHome/node.js +11 -0
  96. package/cjs/hostComponents/StoreProduct/index.d.ts +28 -0
  97. package/cjs/hostComponents/StoreProduct/index.js +13 -0
  98. package/cjs/hostComponents/StoreProduct/node.d.ts +17 -0
  99. package/cjs/hostComponents/StoreProduct/node.js +20 -0
  100. package/cjs/hostComponents/index.d.ts +18 -0
  101. package/cjs/hostComponents/index.js +18 -0
  102. package/cjs/hostComponents/node.js +21 -11
  103. package/cjs/index.d.ts +2 -3
  104. package/cjs/index.js +25 -6
  105. package/cjs/node/index.js +17 -7
  106. package/esm/hostComponents/ChannelLive/node.d.ts +9 -2
  107. package/esm/hostComponents/ChannelLive/node.js +8 -1
  108. package/esm/hostComponents/ChannelVideo/index.d.ts +2 -2
  109. package/esm/hostComponents/ChannelVideo/index.js +3 -2
  110. package/esm/hostComponents/ChannelVideo/node.d.ts +11 -0
  111. package/esm/hostComponents/ChannelVideo/node.js +11 -0
  112. package/esm/hostComponents/DraggableSheet/index.d.ts +24 -0
  113. package/esm/hostComponents/DraggableSheet/index.js +9 -0
  114. package/esm/hostComponents/DraggableSheet/node.d.ts +13 -0
  115. package/esm/hostComponents/DraggableSheet/node.js +13 -0
  116. package/esm/hostComponents/EditorPortal/index.d.ts +3 -3
  117. package/esm/hostComponents/EditorPortal/index.js +0 -3
  118. package/esm/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
  119. package/esm/hostComponents/FunctionalPageNavigator/node.js +5 -0
  120. package/esm/hostComponents/GridBuilder/index.d.ts +29 -0
  121. package/esm/hostComponents/GridBuilder/index.js +6 -0
  122. package/esm/hostComponents/GridBuilder/node.d.ts +17 -0
  123. package/esm/hostComponents/GridBuilder/node.js +17 -0
  124. package/esm/hostComponents/GridView/index.d.ts +21 -0
  125. package/esm/hostComponents/GridView/index.js +6 -0
  126. package/esm/hostComponents/GridView/node.d.ts +13 -0
  127. package/esm/hostComponents/GridView/node.js +13 -0
  128. package/esm/hostComponents/Input/node.d.ts +2 -1
  129. package/esm/hostComponents/Input/node.js +2 -1
  130. package/esm/hostComponents/KeyboardAccessory/index.js +1 -1
  131. package/esm/hostComponents/KeyboardAccessory/node.d.ts +8 -1
  132. package/esm/hostComponents/KeyboardAccessory/node.js +9 -2
  133. package/esm/hostComponents/ListBuilder/index.d.ts +25 -0
  134. package/esm/hostComponents/ListBuilder/index.js +7 -0
  135. package/esm/hostComponents/ListBuilder/node.d.ts +15 -0
  136. package/esm/hostComponents/ListBuilder/node.js +15 -0
  137. package/esm/hostComponents/ListView/index.d.ts +11 -0
  138. package/esm/hostComponents/ListView/index.js +5 -0
  139. package/esm/hostComponents/ListView/node.d.ts +8 -0
  140. package/esm/hostComponents/ListView/node.js +8 -0
  141. package/esm/hostComponents/MatchMedia/node.d.ts +4 -0
  142. package/esm/hostComponents/MatchMedia/node.js +4 -0
  143. package/esm/hostComponents/NavigationBar/node.d.ts +4 -0
  144. package/esm/hostComponents/NavigationBar/node.js +4 -0
  145. package/esm/hostComponents/NestedScrollBody/index.d.ts +11 -0
  146. package/esm/hostComponents/NestedScrollBody/index.js +5 -0
  147. package/esm/hostComponents/NestedScrollBody/node.d.ts +8 -0
  148. package/esm/hostComponents/NestedScrollBody/node.js +8 -0
  149. package/esm/hostComponents/NestedScrollHeader/index.d.ts +9 -0
  150. package/esm/hostComponents/NestedScrollHeader/index.js +2 -0
  151. package/esm/hostComponents/NestedScrollHeader/node.d.ts +7 -0
  152. package/esm/hostComponents/NestedScrollHeader/node.js +7 -0
  153. package/esm/hostComponents/OfficialAccount/node.d.ts +4 -0
  154. package/esm/hostComponents/OfficialAccount/node.js +4 -0
  155. package/esm/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
  156. package/esm/hostComponents/OfficialAccountPublish/index.js +11 -0
  157. package/esm/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
  158. package/esm/hostComponents/OfficialAccountPublish/node.js +15 -0
  159. package/esm/hostComponents/OpenContainer/index.d.ts +27 -0
  160. package/esm/hostComponents/OpenContainer/index.js +8 -0
  161. package/esm/hostComponents/OpenContainer/node.d.ts +16 -0
  162. package/esm/hostComponents/OpenContainer/node.js +16 -0
  163. package/esm/hostComponents/OpenData/node.d.ts +4 -0
  164. package/esm/hostComponents/OpenData/node.js +9 -1
  165. package/esm/hostComponents/OpenDataItem/index.d.ts +9 -0
  166. package/esm/hostComponents/OpenDataItem/index.js +2 -0
  167. package/esm/hostComponents/OpenDataItem/node.d.ts +7 -0
  168. package/esm/hostComponents/OpenDataItem/node.js +7 -0
  169. package/esm/hostComponents/OpenDataList/index.d.ts +13 -0
  170. package/esm/hostComponents/OpenDataList/index.js +2 -0
  171. package/esm/hostComponents/OpenDataList/node.d.ts +9 -0
  172. package/esm/hostComponents/OpenDataList/node.js +9 -0
  173. package/esm/hostComponents/PageContainer/node.d.ts +4 -0
  174. package/esm/hostComponents/PageContainer/node.js +5 -1
  175. package/esm/hostComponents/ScrollView/node.d.ts +1 -0
  176. package/esm/hostComponents/ScrollView/node.js +1 -0
  177. package/esm/hostComponents/Span/index.d.ts +9 -0
  178. package/esm/hostComponents/Span/index.js +2 -0
  179. package/esm/hostComponents/Span/node.d.ts +7 -0
  180. package/esm/hostComponents/Span/node.js +7 -0
  181. package/esm/hostComponents/StickyHeader/index.d.ts +17 -0
  182. package/esm/hostComponents/StickyHeader/index.js +7 -0
  183. package/esm/hostComponents/StickyHeader/node.d.ts +11 -0
  184. package/esm/hostComponents/StickyHeader/node.js +11 -0
  185. package/esm/hostComponents/StickySection/index.d.ts +9 -0
  186. package/esm/hostComponents/StickySection/index.js +2 -0
  187. package/esm/hostComponents/StickySection/node.d.ts +7 -0
  188. package/esm/hostComponents/StickySection/node.js +7 -0
  189. package/esm/hostComponents/StoreCoupon/index.d.ts +20 -0
  190. package/esm/hostComponents/StoreCoupon/index.js +5 -0
  191. package/esm/hostComponents/StoreCoupon/node.d.ts +13 -0
  192. package/esm/hostComponents/StoreCoupon/node.js +13 -0
  193. package/esm/hostComponents/StoreGift/index.d.ts +18 -0
  194. package/esm/hostComponents/StoreGift/index.js +8 -0
  195. package/esm/hostComponents/StoreGift/node.d.ts +12 -0
  196. package/esm/hostComponents/StoreGift/node.js +12 -0
  197. package/esm/hostComponents/StoreHome/index.d.ts +10 -0
  198. package/esm/hostComponents/StoreHome/index.js +5 -0
  199. package/esm/hostComponents/StoreHome/node.d.ts +8 -0
  200. package/esm/hostComponents/StoreHome/node.js +8 -0
  201. package/esm/hostComponents/StoreProduct/index.d.ts +28 -0
  202. package/esm/hostComponents/StoreProduct/index.js +10 -0
  203. package/esm/hostComponents/StoreProduct/node.d.ts +17 -0
  204. package/esm/hostComponents/StoreProduct/node.js +17 -0
  205. package/esm/hostComponents/index.d.ts +18 -0
  206. package/esm/hostComponents/index.js +18 -0
  207. package/esm/hostComponents/node.js +4 -4
  208. package/esm/index.d.ts +2 -3
  209. package/esm/index.js +2 -3
  210. package/package.json +38 -8
  211. package/templates/base.ejs +34 -18
  212. package/templates/children.ejs +5 -5
  213. package/templates/page.ejs +6 -0
  214. package/cjs/api/index.d.ts +0 -466
  215. package/cjs/api/index.js +0 -587
  216. package/esm/api/index.d.ts +0 -466
  217. package/esm/api/index.js +0 -575
@@ -1,2 +1,9 @@
1
- export declare const alias: {};
2
- export declare const props: unknown[];
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?: 'contain' | 'fill' | 'cover';
29
- objectFit?: boolean;
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-live');
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: 'contain',
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 EditorPortal extends BaseProps {
4
- key: string;
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<EditorPortal>;
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
- alwayEmbed: string;
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
- alwayEmbed: 'always-embed',
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)('KeyboardAccessory');
8
+ exports.KeyboardAccessory = (0, runtime_1.createHostComponent)('keyboard-accessory');
@@ -1,2 +1,9 @@
1
- export declare const alias: {};
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ onTap: string;
7
+ onClick: string;
8
+ };
2
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 = {};
5
- exports.props = [];
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,8 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ padding: string;
7
+ };
8
+ export declare const props: string[];
@@ -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);
@@ -1,4 +1,8 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  minWidth: string;
3
7
  maxWidth: string;
4
8
  width: string;
@@ -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',
@@ -1,4 +1,8 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  title: string;
3
7
  loading: string;
4
8
  frontColor: string;
@@ -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,8 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ offsetTop: string;
7
+ };
8
+ export declare const props: string[];
@@ -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>;