@rsmax/ali 1.3.12 → 1.3.14

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 (160) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/cjs/api.d.ts +2992 -1362
  3. package/cjs/api.js +375 -166
  4. package/cjs/hostComponents/Ad/index.d.ts +14 -0
  5. package/cjs/hostComponents/Ad/index.js +9 -0
  6. package/cjs/hostComponents/Ad/node.d.ts +6 -0
  7. package/cjs/hostComponents/Ad/node.js +9 -0
  8. package/cjs/hostComponents/Button/index.d.ts +3 -2
  9. package/cjs/hostComponents/Button/node.d.ts +1 -0
  10. package/cjs/hostComponents/Button/node.js +1 -0
  11. package/cjs/hostComponents/Camera/index.d.ts +1 -1
  12. package/cjs/hostComponents/Canvas/index.d.ts +1 -1
  13. package/cjs/hostComponents/CheckboxGroup/index.d.ts +1 -1
  14. package/cjs/hostComponents/ContactButton/index.d.ts +1 -1
  15. package/cjs/hostComponents/CoverImage/index.d.ts +1 -1
  16. package/cjs/hostComponents/CoverView/index.d.ts +1 -1
  17. package/cjs/hostComponents/ErrorView/index.d.ts +16 -0
  18. package/cjs/hostComponents/ErrorView/index.js +8 -0
  19. package/cjs/hostComponents/ErrorView/node.d.ts +14 -0
  20. package/cjs/hostComponents/ErrorView/node.js +18 -0
  21. package/cjs/hostComponents/Form/index.d.ts +1 -1
  22. package/cjs/hostComponents/Icon/index.d.ts +1 -1
  23. package/cjs/hostComponents/Image/index.d.ts +1 -1
  24. package/cjs/hostComponents/Input/index.d.ts +1 -1
  25. package/cjs/hostComponents/JoinGroupChat/index.d.ts +5 -0
  26. package/cjs/hostComponents/JoinGroupChat/index.js +5 -0
  27. package/cjs/hostComponents/JoinGroupChat/node.d.ts +4 -0
  28. package/cjs/hostComponents/JoinGroupChat/node.js +8 -0
  29. package/cjs/hostComponents/Label/index.d.ts +1 -1
  30. package/cjs/hostComponents/Lifestyle/index.d.ts +1 -1
  31. package/cjs/hostComponents/Lottie/index.d.ts +1 -1
  32. package/cjs/hostComponents/Map/index.d.ts +1 -1
  33. package/cjs/hostComponents/MatchMedia/index.d.ts +15 -0
  34. package/cjs/hostComponents/MatchMedia/index.js +5 -0
  35. package/cjs/hostComponents/MatchMedia/node.d.ts +13 -0
  36. package/cjs/hostComponents/MatchMedia/node.js +17 -0
  37. package/cjs/hostComponents/MovableArea/index.d.ts +1 -1
  38. package/cjs/hostComponents/MovableView/index.d.ts +1 -1
  39. package/cjs/hostComponents/Navigator/index.d.ts +1 -1
  40. package/cjs/hostComponents/PageContainer/index.d.ts +42 -0
  41. package/cjs/hostComponents/PageContainer/index.js +17 -0
  42. package/cjs/hostComponents/PageContainer/node.d.ts +19 -0
  43. package/cjs/hostComponents/PageContainer/node.js +22 -0
  44. package/cjs/hostComponents/PageMeta/index.d.ts +30 -0
  45. package/cjs/hostComponents/PageMeta/index.js +13 -0
  46. package/cjs/hostComponents/PageMeta/node.d.ts +17 -0
  47. package/cjs/hostComponents/PageMeta/node.js +20 -0
  48. package/cjs/hostComponents/Picker/index.d.ts +1 -1
  49. package/cjs/hostComponents/PickerView/index.d.ts +1 -1
  50. package/cjs/hostComponents/PickerViewColumn/index.d.ts +1 -1
  51. package/cjs/hostComponents/Progress/index.d.ts +1 -1
  52. package/cjs/hostComponents/Radio/index.d.ts +1 -1
  53. package/cjs/hostComponents/RadioGroup/index.d.ts +1 -1
  54. package/cjs/hostComponents/RichText/index.d.ts +1 -1
  55. package/cjs/hostComponents/RootPortal/index.d.ts +13 -0
  56. package/cjs/hostComponents/RootPortal/index.js +8 -0
  57. package/cjs/hostComponents/RootPortal/node.d.ts +16 -0
  58. package/cjs/hostComponents/RootPortal/node.js +19 -0
  59. package/cjs/hostComponents/ScrollView/index.d.ts +1 -1
  60. package/cjs/hostComponents/ShareElement/index.d.ts +13 -0
  61. package/cjs/hostComponents/ShareElement/index.js +11 -0
  62. package/cjs/hostComponents/ShareElement/node.d.ts +7 -0
  63. package/cjs/hostComponents/ShareElement/node.js +10 -0
  64. package/cjs/hostComponents/Slider/index.d.ts +1 -1
  65. package/cjs/hostComponents/SubscribeMessage/index.d.ts +6 -0
  66. package/cjs/hostComponents/SubscribeMessage/index.js +5 -0
  67. package/cjs/hostComponents/SubscribeMessage/node.d.ts +5 -0
  68. package/cjs/hostComponents/SubscribeMessage/node.js +9 -0
  69. package/cjs/hostComponents/Swiper/index.d.ts +1 -1
  70. package/cjs/hostComponents/SwiperItem/index.d.ts +1 -1
  71. package/cjs/hostComponents/Text/index.d.ts +1 -1
  72. package/cjs/hostComponents/Textarea/index.d.ts +1 -1
  73. package/cjs/hostComponents/Video/index.d.ts +1 -1
  74. package/cjs/hostComponents/View/index.d.ts +1 -1
  75. package/cjs/hostComponents/WebView/index.d.ts +1 -1
  76. package/cjs/hostComponents/index.d.ts +9 -0
  77. package/cjs/hostComponents/index.js +9 -0
  78. package/cjs/hostComponents/node.js +26 -8
  79. package/cjs/node/index.js +1 -1
  80. package/esm/api.d.ts +2993 -1363
  81. package/esm/api.js +369 -162
  82. package/esm/hostComponents/Ad/index.d.ts +14 -0
  83. package/esm/hostComponents/Ad/index.js +6 -0
  84. package/esm/hostComponents/Ad/node.d.ts +6 -0
  85. package/esm/hostComponents/Ad/node.js +6 -0
  86. package/esm/hostComponents/Button/index.d.ts +3 -2
  87. package/esm/hostComponents/Button/node.d.ts +1 -0
  88. package/esm/hostComponents/Button/node.js +1 -0
  89. package/esm/hostComponents/Camera/index.d.ts +1 -1
  90. package/esm/hostComponents/Canvas/index.d.ts +1 -1
  91. package/esm/hostComponents/CheckboxGroup/index.d.ts +1 -1
  92. package/esm/hostComponents/ContactButton/index.d.ts +1 -1
  93. package/esm/hostComponents/CoverImage/index.d.ts +1 -1
  94. package/esm/hostComponents/CoverView/index.d.ts +1 -1
  95. package/esm/hostComponents/ErrorView/index.d.ts +16 -0
  96. package/esm/hostComponents/ErrorView/index.js +5 -0
  97. package/esm/hostComponents/ErrorView/node.d.ts +14 -0
  98. package/esm/hostComponents/ErrorView/node.js +15 -0
  99. package/esm/hostComponents/Form/index.d.ts +1 -1
  100. package/esm/hostComponents/Icon/index.d.ts +1 -1
  101. package/esm/hostComponents/Image/index.d.ts +1 -1
  102. package/esm/hostComponents/Input/index.d.ts +1 -1
  103. package/esm/hostComponents/JoinGroupChat/index.d.ts +5 -0
  104. package/esm/hostComponents/JoinGroupChat/index.js +2 -0
  105. package/esm/hostComponents/JoinGroupChat/node.d.ts +4 -0
  106. package/esm/hostComponents/JoinGroupChat/node.js +5 -0
  107. package/esm/hostComponents/Label/index.d.ts +1 -1
  108. package/esm/hostComponents/Lifestyle/index.d.ts +1 -1
  109. package/esm/hostComponents/Lottie/index.d.ts +1 -1
  110. package/esm/hostComponents/Map/index.d.ts +1 -1
  111. package/esm/hostComponents/MatchMedia/index.d.ts +15 -0
  112. package/esm/hostComponents/MatchMedia/index.js +2 -0
  113. package/esm/hostComponents/MatchMedia/node.d.ts +13 -0
  114. package/esm/hostComponents/MatchMedia/node.js +14 -0
  115. package/esm/hostComponents/MovableArea/index.d.ts +1 -1
  116. package/esm/hostComponents/MovableView/index.d.ts +1 -1
  117. package/esm/hostComponents/Navigator/index.d.ts +1 -1
  118. package/esm/hostComponents/PageContainer/index.d.ts +42 -0
  119. package/esm/hostComponents/PageContainer/index.js +14 -0
  120. package/esm/hostComponents/PageContainer/node.d.ts +19 -0
  121. package/esm/hostComponents/PageContainer/node.js +19 -0
  122. package/esm/hostComponents/PageMeta/index.d.ts +30 -0
  123. package/esm/hostComponents/PageMeta/index.js +10 -0
  124. package/esm/hostComponents/PageMeta/node.d.ts +17 -0
  125. package/esm/hostComponents/PageMeta/node.js +17 -0
  126. package/esm/hostComponents/Picker/index.d.ts +1 -1
  127. package/esm/hostComponents/PickerView/index.d.ts +1 -1
  128. package/esm/hostComponents/PickerViewColumn/index.d.ts +1 -1
  129. package/esm/hostComponents/Progress/index.d.ts +1 -1
  130. package/esm/hostComponents/Radio/index.d.ts +1 -1
  131. package/esm/hostComponents/RadioGroup/index.d.ts +1 -1
  132. package/esm/hostComponents/RichText/index.d.ts +1 -1
  133. package/esm/hostComponents/RootPortal/index.d.ts +13 -0
  134. package/esm/hostComponents/RootPortal/index.js +5 -0
  135. package/esm/hostComponents/RootPortal/node.d.ts +16 -0
  136. package/esm/hostComponents/RootPortal/node.js +16 -0
  137. package/esm/hostComponents/ScrollView/index.d.ts +1 -1
  138. package/esm/hostComponents/ShareElement/index.d.ts +13 -0
  139. package/esm/hostComponents/ShareElement/index.js +8 -0
  140. package/esm/hostComponents/ShareElement/node.d.ts +7 -0
  141. package/esm/hostComponents/ShareElement/node.js +7 -0
  142. package/esm/hostComponents/Slider/index.d.ts +1 -1
  143. package/esm/hostComponents/SubscribeMessage/index.d.ts +6 -0
  144. package/esm/hostComponents/SubscribeMessage/index.js +2 -0
  145. package/esm/hostComponents/SubscribeMessage/node.d.ts +5 -0
  146. package/esm/hostComponents/SubscribeMessage/node.js +6 -0
  147. package/esm/hostComponents/Swiper/index.d.ts +1 -1
  148. package/esm/hostComponents/SwiperItem/index.d.ts +1 -1
  149. package/esm/hostComponents/Text/index.d.ts +1 -1
  150. package/esm/hostComponents/Textarea/index.d.ts +1 -1
  151. package/esm/hostComponents/Video/index.d.ts +1 -1
  152. package/esm/hostComponents/View/index.d.ts +1 -1
  153. package/esm/hostComponents/WebView/index.d.ts +1 -1
  154. package/esm/hostComponents/index.d.ts +9 -0
  155. package/esm/hostComponents/index.js +9 -0
  156. package/esm/hostComponents/node.js +26 -8
  157. package/esm/node/index.js +1 -1
  158. package/package.json +11 -11
  159. package/rstest.config.js +6 -0
  160. package/vitest.config.js +0 -7
@@ -0,0 +1,6 @@
1
+ export declare const alias: {
2
+ unitId: string;
3
+ onLoad: string;
4
+ onError: string;
5
+ };
6
+ export declare const props: string[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ unitId: 'unit-id',
6
+ onLoad: 'onLoad',
7
+ onError: 'onError',
8
+ };
9
+ exports.props = Object.values(exports.alias);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ButtonProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -14,13 +14,14 @@ export interface ButtonProps {
14
14
  hoverStayTime?: number;
15
15
  hoverStopPropagation?: boolean;
16
16
  formType?: 'submit' | 'reset';
17
- openType?: 'share' | 'getAuthorize' | 'contactShare' | 'lifestyle';
17
+ openType?: 'share' | 'getAuthorize' | 'contactShare' | 'lifestyle' | 'chooseAvatar';
18
18
  scope?: 'phoneNumber' | 'userInfo';
19
19
  appParameter?: string;
20
20
  publicId?: string;
21
21
  onTap?: (e: any) => void;
22
22
  onClick?: (e: any) => void;
23
23
  onGetAuthorize?: (e: any) => void;
24
+ onChooseAvatar?: (e: any) => void;
24
25
  onError?: (e: any) => void;
25
26
  children?: React.ReactNode;
26
27
  }
@@ -20,6 +20,7 @@ export declare const alias: {
20
20
  appParameter: string;
21
21
  publicId: string;
22
22
  onGetAuthorize: string;
23
+ onChooseAvatar: string;
23
24
  onError: string;
24
25
  };
25
26
  export declare const props: string[];
@@ -24,6 +24,7 @@ exports.alias = {
24
24
  appParameter: 'app-parameter',
25
25
  publicId: 'public-id',
26
26
  onGetAuthorize: 'onGetAuthorize',
27
+ onChooseAvatar: 'onChooseAvatar',
27
28
  onError: 'onError',
28
29
  };
29
30
  exports.props = (0, shared_1.unique)(Object.values(exports.alias));
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CameraProps {
3
3
  id?: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CanvasProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CheckboxGroupProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ContactButtonProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  tntInstId: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CoverImageProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CoverViewProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  className?: string;
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ export interface ErrorViewProps {
3
+ id?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ fullscreen?: boolean;
7
+ type?: 'default' | 'busy' | 'error' | 'network' | 'trade';
8
+ message?: string;
9
+ titleColor?: string;
10
+ messageColor?: string;
11
+ dataUrl?: string;
12
+ dataStatus?: string;
13
+ dataMessage?: string;
14
+ children?: React.ReactNode;
15
+ }
16
+ export declare const ErrorView: React.ComponentType<ErrorViewProps>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorView = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.ErrorView = (0, runtime_1.createHostComponent)('error-view');
6
+ exports.ErrorView.defaultProps = {
7
+ type: 'default',
8
+ };
@@ -0,0 +1,14 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ fullscreen: string;
6
+ type: string;
7
+ message: string;
8
+ titleColor: string;
9
+ messageColor: string;
10
+ dataUrl: string;
11
+ dataStatus: string;
12
+ dataMessage: string;
13
+ };
14
+ 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
+ const shared_1 = require("@rsmax/shared");
5
+ exports.alias = {
6
+ id: 'id',
7
+ className: 'class',
8
+ style: 'style',
9
+ fullscreen: 'fullscreen',
10
+ type: 'type',
11
+ message: 'message',
12
+ titleColor: 'title-color',
13
+ messageColor: 'message-color',
14
+ dataUrl: 'data-url',
15
+ dataStatus: 'data-status',
16
+ dataMessage: 'data-message',
17
+ };
18
+ exports.props = (0, shared_1.unique)(Object.values(exports.alias));
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface FormProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface IconProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ImageProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface InputProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -0,0 +1,5 @@
1
+ import type React from 'react';
2
+ export interface JoinGroupChatProps {
3
+ templateId: string;
4
+ }
5
+ export declare const JoinGroupChat: React.ComponentType<JoinGroupChatProps>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JoinGroupChat = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.JoinGroupChat = (0, runtime_1.createHostComponent)('join-group-chat');
@@ -0,0 +1,4 @@
1
+ export declare const alias: {
2
+ templateId: string;
3
+ };
4
+ export declare const props: string[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ const shared_1 = require("@rsmax/shared");
5
+ exports.alias = {
6
+ templateId: 'template-id',
7
+ };
8
+ exports.props = (0, shared_1.unique)(Object.values(exports.alias));
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface LabelProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface LifestyleProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  publicId: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface LottieProps {
3
3
  id?: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface MapMarker {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: number;
@@ -0,0 +1,15 @@
1
+ import type React from 'react';
2
+ export interface MatchMediaProps {
3
+ id?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ minWidth?: number;
7
+ maxWidth?: number;
8
+ width?: number;
9
+ minHeight?: number;
10
+ maxHeight?: number;
11
+ height?: number;
12
+ orientation?: 'landscape' | 'portrait';
13
+ children?: React.ReactNode;
14
+ }
15
+ export declare const MatchMedia: React.ComponentType<MatchMediaProps>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MatchMedia = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.MatchMedia = (0, runtime_1.createHostComponent)('match-media');
@@ -0,0 +1,13 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ minWidth: string;
6
+ maxWidth: string;
7
+ width: string;
8
+ minHeight: string;
9
+ maxHeight: string;
10
+ height: string;
11
+ orientation: string;
12
+ };
13
+ export declare const props: string[];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ const shared_1 = require("@rsmax/shared");
5
+ exports.alias = {
6
+ id: 'id',
7
+ className: 'class',
8
+ style: 'style',
9
+ minWidth: 'min-width',
10
+ maxWidth: 'max-width',
11
+ width: 'width',
12
+ minHeight: 'min-height',
13
+ maxHeight: 'max-height',
14
+ height: 'height',
15
+ orientation: 'orientation',
16
+ };
17
+ exports.props = (0, shared_1.unique)(Object.values(exports.alias));
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface MovableAreaProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface MovableViewProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface NavigatorProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -0,0 +1,42 @@
1
+ import type React from 'react';
2
+ export interface PageContainerProps {
3
+ /** 是否显示容器组件 */
4
+ show?: boolean;
5
+ /** 动画时长,单位毫秒 */
6
+ duration?: number;
7
+ /** z-index 层级 */
8
+ zIndex?: number;
9
+ /** 是否显示遮罩层 */
10
+ overlay?: boolean;
11
+ /** 弹出位置,可选值为 top bottom right center */
12
+ position?: 'top' | 'bottom' | 'right' | 'center';
13
+ /** 是否显示圆角 */
14
+ round?: boolean;
15
+ /** 是否在下滑一段距离后关闭 */
16
+ closeOnSlideDown?: boolean;
17
+ /** 自定义遮罩层样式 */
18
+ overlayStyle?: string;
19
+ /** 自定义弹出层样式 */
20
+ customStyle?: string;
21
+ /** 进入前触发 */
22
+ onBeforeEnter?: (e: any) => void;
23
+ /** 进入中触发 */
24
+ onEnter?: (e: any) => void;
25
+ /** 进入后触发 */
26
+ onAfterEnter?: (e: any) => void;
27
+ /** 离开前触发 */
28
+ onBeforeLeave?: (e: any) => void;
29
+ /** 离开中触发 */
30
+ onLeave?: (e: any) => void;
31
+ /** 离开被打断时触发 */
32
+ onLeaveCancelled?: (e: any) => void;
33
+ /** 离开后触发 */
34
+ onAfterLeave?: (e: any) => void;
35
+ /** 点击遮罩层触发 */
36
+ onClickOverlay?: (e: any) => void;
37
+ children?: React.ReactNode;
38
+ }
39
+ /**
40
+ * @see https://opendocs.alipay.com/mini/04ne6j?pathHash=699942d6
41
+ */
42
+ export declare const PageContainer: React.ComponentType<PageContainerProps>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageContainer = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ /**
6
+ * @see https://opendocs.alipay.com/mini/04ne6j?pathHash=699942d6
7
+ */
8
+ exports.PageContainer = (0, runtime_1.createHostComponent)('page-container');
9
+ exports.PageContainer.defaultProps = {
10
+ show: false,
11
+ duration: 300,
12
+ zIndex: 100,
13
+ overlay: true,
14
+ position: 'bottom',
15
+ round: false,
16
+ closeOnSlideDown: false,
17
+ };
@@ -0,0 +1,19 @@
1
+ export declare const alias: {
2
+ show: string;
3
+ duration: string;
4
+ zIndex: string;
5
+ overlay: string;
6
+ position: string;
7
+ round: string;
8
+ closeOnSlideDown: string;
9
+ overlayStyle: string;
10
+ customStyle: string;
11
+ onBeforeEnter: string;
12
+ onEnter: string;
13
+ onAfterEnter: string;
14
+ onBeforeLeave: string;
15
+ onLeave: string;
16
+ onAfterLeave: string;
17
+ onClickOverlay: string;
18
+ };
19
+ export declare const props: string[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ show: 'show',
6
+ duration: 'duration',
7
+ zIndex: 'z-index',
8
+ overlay: 'overlay',
9
+ position: 'position',
10
+ round: 'round',
11
+ closeOnSlideDown: 'close-on-slideDown',
12
+ overlayStyle: 'overlay-style',
13
+ customStyle: 'custom-style',
14
+ onBeforeEnter: 'onBeforeEnter',
15
+ onEnter: 'onEnter',
16
+ onAfterEnter: 'onAfterEnter',
17
+ onBeforeLeave: 'onBeforeLeave',
18
+ onLeave: 'onLeave',
19
+ onAfterLeave: 'onAfterLeave',
20
+ onClickOverlay: 'onClickOverlay',
21
+ };
22
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,30 @@
1
+ import type React from 'react';
2
+ export interface PageMetaProps {
3
+ /** 窗口的背景色,必须为十六进制颜色值 */
4
+ backgroundColor?: string;
5
+ /** 顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持 */
6
+ backgroundColorTop?: string;
7
+ /** 底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持 */
8
+ backgroundColorBottom?: string;
9
+ /** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域 */
10
+ rootBackgroundColor?: string;
11
+ /** 滚动位置,可以使用 px 或者 rpx 为单位,在被设置时,页面会滚动到对应位置。 */
12
+ scrollTop?: string;
13
+ /** 滚动动画时长 默认值: 300 */
14
+ scrollDuration?: number;
15
+ /** 页面根节点样式,页面根节点是所有页面节点的祖先节点,相当于 HTML 中的 body 节点。 */
16
+ pageStyle?: string;
17
+ /** 页面 page 的字体大小,可以设置为system,表示使用当前用户设置的支付宝字体大小。 */
18
+ pageFontSize?: string;
19
+ /** 页面的根字体大小,页面中的所有 rem 单位,将使用这个字体大小作为参考值,即 1rem 等于这个字体大小;可以设置为 system,表示使用当前用户设置的支付宝字体大小。 */
20
+ rootFontSize?: string;
21
+ /** 页面滚动时触发,event.detail = { scrollTop } */
22
+ onScroll?: (e: any) => any;
23
+ children?: React.ReactNode;
24
+ }
25
+ /**
26
+ * 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。
27
+ * 通过这个节点可以获得类似于调用 my.setBackgroundTextStyle、my.setBackgroundColor 等接口调用的效果。
28
+ * @see https://opendocs.alipay.com/mini/component/pagemeta?pathHash=04c010d0
29
+ */
30
+ export declare const PageMeta: React.ComponentType<PageMetaProps>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageMeta = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ /**
6
+ * 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。
7
+ * 通过这个节点可以获得类似于调用 my.setBackgroundTextStyle、my.setBackgroundColor 等接口调用的效果。
8
+ * @see https://opendocs.alipay.com/mini/component/pagemeta?pathHash=04c010d0
9
+ */
10
+ exports.PageMeta = (0, runtime_1.createHostComponent)('page-meta');
11
+ exports.PageMeta.defaultProps = {
12
+ scrollDuration: 300,
13
+ };
@@ -0,0 +1,17 @@
1
+ export declare const alias: {
2
+ backgroundTextStyle: string;
3
+ backgroundColor: string;
4
+ backgroundColorTop: string;
5
+ backgroundColorBottom: string;
6
+ rootBackgroundColor: string;
7
+ scrollTop: string;
8
+ scrollDuration: string;
9
+ pageStyle: string;
10
+ pageFontSize: string;
11
+ rootFontSize: string;
12
+ pageOrientation: string;
13
+ onResize: string;
14
+ onScroll: string;
15
+ onScrollDone: 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
+ backgroundTextStyle: 'background-text-style',
6
+ backgroundColor: 'background-color',
7
+ backgroundColorTop: 'background-color-top',
8
+ backgroundColorBottom: 'background-color-bottom',
9
+ rootBackgroundColor: 'root-background-color',
10
+ scrollTop: 'scroll-top',
11
+ scrollDuration: 'scroll-duration',
12
+ pageStyle: 'page-style',
13
+ pageFontSize: 'page-font-size',
14
+ rootFontSize: 'root-font-size',
15
+ pageOrientation: 'page-orientation',
16
+ onResize: 'bindresize',
17
+ onScroll: 'bindscroll',
18
+ onScrollDone: 'bindscrolldone',
19
+ };
20
+ exports.props = Object.values(exports.alias);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface PickerProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface PickerViewProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const PickerViewColumn: React.ComponentType<any>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ProgressProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface RadioProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface RadioGroupProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface RichTextNode {
3
3
  readonly dataset?: DOMStringMap;
4
4
  type?: string;
@@ -0,0 +1,13 @@
1
+ import type React from 'react';
2
+ /**
3
+ * 基础库 2.8.3 开始支持,低版本需要做 兼容处理。
4
+ * Native 渲染引擎:暂不支持。可以通过my.canIUse('root-portal')判断是否支持。
5
+ * https://opendocs.alipay.com/mini/05snwp?pathHash=bccb8999
6
+ */
7
+ export interface RootPortalProps {
8
+ /**
9
+ * 是否从页面中脱离出来
10
+ */
11
+ enable?: boolean;
12
+ }
13
+ export declare const RootPortal: React.ComponentType<RootPortalProps>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RootPortal = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ exports.RootPortal = (0, runtime_1.createHostComponent)('root-portal');
6
+ exports.RootPortal.defaultProps = {
7
+ enable: true,
8
+ };
@@ -0,0 +1,16 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ space: string;
7
+ onTap: string;
8
+ onClick: string;
9
+ onTouchStart: string;
10
+ onTouchMove: string;
11
+ onTouchEnd: string;
12
+ onTouchCancel: string;
13
+ onLongTap: string;
14
+ onLongClick: 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
+ space: 'space',
10
+ onTap: 'onTap',
11
+ onClick: 'onTap',
12
+ onTouchStart: 'onTouchStart',
13
+ onTouchMove: 'onTouchMove',
14
+ onTouchEnd: 'onTouchEnd',
15
+ onTouchCancel: 'onTouchCancel',
16
+ onLongTap: 'onLongTap',
17
+ onLongClick: 'onLongClick',
18
+ };
19
+ exports.props = Object.values(exports.alias);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ScrollViewProps {
3
3
  readonly dataset?: DOMStringMap;
4
4
  id?: string;