@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
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NestedScrollHeader = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.NestedScrollHeader = (0, runtime_1.createHostComponent)('nested-scroll-header');
@@ -0,0 +1,7 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ };
7
+ export declare const props: string[];
@@ -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);
@@ -1,4 +1,8 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  onLoad: string;
3
7
  onError: string;
4
8
  };
@@ -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
  onLoad: 'bindload',
6
10
  onError: 'binderror',
7
11
  };
@@ -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,4 +1,8 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  type: string;
3
7
  openGid: string;
4
8
  lang: string;
@@ -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 = { type: 'type', openGid: 'open-gid', lang: 'lang' };
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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenDataItem = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.OpenDataItem = (0, runtime_1.createHostComponent)('open-data-item');
@@ -0,0 +1,7 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ };
7
+ export declare const props: string[];
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenDataList = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.OpenDataList = (0, runtime_1.createHostComponent)('open-data-list');
@@ -0,0 +1,9 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ type: string;
7
+ members: string;
8
+ };
9
+ export declare const props: string[];
@@ -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);
@@ -1,4 +1,8 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  show: string;
3
7
  duration: string;
4
8
  zIndex: string;
@@ -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-slideDown',
15
+ closeOnSlideDown: 'close-on-slide-down',
12
16
  overlayStyle: 'overlay-style',
13
17
  customStyle: 'custom-style',
14
18
  onBeforeEnter: 'bindbeforeenter',
@@ -3,6 +3,7 @@ export declare const alias: {
3
3
  className: string;
4
4
  style: string;
5
5
  animation: string;
6
+ type: string;
6
7
  scrollX: string;
7
8
  scrollY: string;
8
9
  upperThreshold: string;
@@ -6,6 +6,7 @@ exports.alias = {
6
6
  className: 'class',
7
7
  style: 'style',
8
8
  animation: 'animation',
9
+ type: 'type',
9
10
  scrollX: 'scroll-x',
10
11
  scrollY: 'scroll-y',
11
12
  upperThreshold: 'upper-threshold',
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Span = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.Span = (0, runtime_1.createHostComponent)('span');
@@ -0,0 +1,7 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ };
7
+ export declare const props: string[];
@@ -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,11 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ offsetTop: string;
7
+ allowOverlapping: string;
8
+ padding: string;
9
+ onStickOnTopChange: string;
10
+ };
11
+ export declare const props: string[];
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StickySection = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.StickySection = (0, runtime_1.createHostComponent)('sticky-section');
@@ -0,0 +1,7 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ };
7
+ export declare const props: string[];
@@ -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');