@ray-js/adapter 1.7.62 → 1.7.64

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 (230) hide show
  1. package/cjs/hostComponents/Button/index.d.ts +1 -1
  2. package/cjs/hostComponents/Button/index.js +2 -2
  3. package/cjs/hostComponents/Button/node.js +2 -2
  4. package/cjs/hostComponents/Camera/index.d.ts +2 -2
  5. package/cjs/hostComponents/Camera/index.js +2 -2
  6. package/cjs/hostComponents/Camera/node.js +2 -2
  7. package/cjs/hostComponents/Canvas/index.d.ts +1 -1
  8. package/cjs/hostComponents/Canvas/index.js +2 -2
  9. package/cjs/hostComponents/Canvas/node.js +2 -2
  10. package/cjs/hostComponents/Checkbox/index.d.ts +1 -1
  11. package/cjs/hostComponents/Checkbox/index.js +2 -2
  12. package/cjs/hostComponents/Checkbox/node.js +2 -2
  13. package/cjs/hostComponents/CheckboxGroup/index.d.ts +1 -1
  14. package/cjs/hostComponents/CheckboxGroup/index.js +2 -2
  15. package/cjs/hostComponents/CheckboxGroup/node.js +2 -2
  16. package/cjs/hostComponents/CoverView/index.d.ts +1 -1
  17. package/cjs/hostComponents/CoverView/index.js +2 -2
  18. package/cjs/hostComponents/CoverView/node.js +2 -2
  19. package/cjs/hostComponents/Form/index.d.ts +1 -1
  20. package/cjs/hostComponents/Form/index.js +2 -2
  21. package/cjs/hostComponents/Form/node.js +2 -2
  22. package/cjs/hostComponents/Iframe/index.d.ts +1 -1
  23. package/cjs/hostComponents/Iframe/index.js +2 -2
  24. package/cjs/hostComponents/Iframe/node.js +2 -2
  25. package/cjs/hostComponents/Image/index.d.ts +1 -1
  26. package/cjs/hostComponents/Image/index.js +2 -2
  27. package/cjs/hostComponents/Image/node.js +2 -2
  28. package/cjs/hostComponents/Input/index.d.ts +1 -1
  29. package/cjs/hostComponents/Input/index.js +2 -2
  30. package/cjs/hostComponents/Input/node.js +2 -2
  31. package/cjs/hostComponents/IpcPlayer/index.d.ts +1 -1
  32. package/cjs/hostComponents/IpcPlayer/index.js +2 -2
  33. package/cjs/hostComponents/IpcPlayer/node.js +2 -2
  34. package/cjs/hostComponents/Label/index.d.ts +1 -1
  35. package/cjs/hostComponents/Label/index.js +2 -2
  36. package/cjs/hostComponents/Label/node.js +2 -2
  37. package/cjs/hostComponents/Map/index.d.ts +1 -1
  38. package/cjs/hostComponents/Map/index.js +2 -2
  39. package/cjs/hostComponents/Map/node.js +2 -2
  40. package/cjs/hostComponents/MovableArea/index.d.ts +1 -1
  41. package/cjs/hostComponents/MovableArea/index.js +2 -2
  42. package/cjs/hostComponents/MovableArea/node.js +2 -2
  43. package/cjs/hostComponents/MovableView/index.d.ts +1 -1
  44. package/cjs/hostComponents/MovableView/index.js +2 -2
  45. package/cjs/hostComponents/MovableView/node.js +2 -2
  46. package/cjs/hostComponents/NativeVideo/index.d.ts +1 -1
  47. package/cjs/hostComponents/NativeVideo/index.js +2 -2
  48. package/cjs/hostComponents/NativeVideo/node.js +2 -2
  49. package/cjs/hostComponents/Navigator/index.d.ts +1 -1
  50. package/cjs/hostComponents/Navigator/index.js +2 -2
  51. package/cjs/hostComponents/PageContainer/index.d.ts +1 -1
  52. package/cjs/hostComponents/PageContainer/index.js +2 -2
  53. package/cjs/hostComponents/PageContainer/node.js +2 -2
  54. package/cjs/hostComponents/Picker/index.d.ts +1 -1
  55. package/cjs/hostComponents/Picker/index.js +2 -2
  56. package/cjs/hostComponents/Picker/node.js +2 -2
  57. package/cjs/hostComponents/PickerView/index.d.ts +1 -1
  58. package/cjs/hostComponents/PickerView/index.js +2 -2
  59. package/cjs/hostComponents/PickerView/node.js +2 -2
  60. package/cjs/hostComponents/PickerViewColumn/index.d.ts +1 -1
  61. package/cjs/hostComponents/PickerViewColumn/index.js +2 -2
  62. package/cjs/hostComponents/PickerViewColumn/node.js +2 -2
  63. package/cjs/hostComponents/Progress/index.d.ts +1 -1
  64. package/cjs/hostComponents/Progress/index.js +2 -2
  65. package/cjs/hostComponents/Progress/node.js +2 -2
  66. package/cjs/hostComponents/Radio/index.d.ts +1 -1
  67. package/cjs/hostComponents/Radio/index.js +2 -2
  68. package/cjs/hostComponents/Radio/node.js +2 -2
  69. package/cjs/hostComponents/RadioGroup/index.d.ts +1 -1
  70. package/cjs/hostComponents/RadioGroup/index.js +2 -2
  71. package/cjs/hostComponents/RadioGroup/node.js +2 -2
  72. package/cjs/hostComponents/RichText/index.d.ts +1 -1
  73. package/cjs/hostComponents/RichText/index.js +2 -2
  74. package/cjs/hostComponents/RichText/node.js +2 -2
  75. package/cjs/hostComponents/ScrollView/index.d.ts +1 -1
  76. package/cjs/hostComponents/ScrollView/index.js +2 -2
  77. package/cjs/hostComponents/ScrollView/node.js +2 -2
  78. package/cjs/hostComponents/Slider/index.d.ts +1 -1
  79. package/cjs/hostComponents/Slider/index.js +2 -2
  80. package/cjs/hostComponents/Slider/node.js +2 -2
  81. package/cjs/hostComponents/SvgRender/index.d.ts +1 -1
  82. package/cjs/hostComponents/SvgRender/index.js +2 -2
  83. package/cjs/hostComponents/SvgRender/node.js +2 -2
  84. package/cjs/hostComponents/Swiper/index.d.ts +1 -1
  85. package/cjs/hostComponents/Swiper/index.js +2 -2
  86. package/cjs/hostComponents/Swiper/node.js +2 -2
  87. package/cjs/hostComponents/SwiperItem/index.d.ts +1 -1
  88. package/cjs/hostComponents/SwiperItem/index.js +2 -2
  89. package/cjs/hostComponents/SwiperItem/node.js +2 -2
  90. package/cjs/hostComponents/Switch/index.d.ts +1 -1
  91. package/cjs/hostComponents/Switch/index.js +2 -2
  92. package/cjs/hostComponents/Switch/node.js +2 -2
  93. package/cjs/hostComponents/Text/index.d.ts +1 -1
  94. package/cjs/hostComponents/Text/index.js +2 -2
  95. package/cjs/hostComponents/Text/node.js +2 -2
  96. package/cjs/hostComponents/Textarea/index.d.ts +1 -1
  97. package/cjs/hostComponents/Textarea/index.js +2 -2
  98. package/cjs/hostComponents/Textarea/node.js +2 -2
  99. package/cjs/hostComponents/Video/index.js +2 -2
  100. package/cjs/hostComponents/Video/node.js +2 -2
  101. package/cjs/hostComponents/View/index.d.ts +1 -1
  102. package/cjs/hostComponents/View/index.js +2 -2
  103. package/cjs/hostComponents/View/node.js +2 -2
  104. package/cjs/hostComponents/WebView/index.d.ts +1 -1
  105. package/cjs/hostComponents/WebView/index.js +2 -2
  106. package/cjs/hostComponents/WebView/node.js +2 -2
  107. package/cjs/hostComponents/index.d.ts +36 -36
  108. package/cjs/hostComponents/index.js +36 -36
  109. package/cjs/hostComponents/node.js +35 -35
  110. package/cjs/index.d.ts +2 -2
  111. package/cjs/index.js +2 -2
  112. package/cjs/node/index.js +2 -2
  113. package/cjs/types/index.d.ts +2 -2
  114. package/cjs/types/index.js +1 -1
  115. package/esm/hostComponents/Button/index.d.ts +1 -1
  116. package/esm/hostComponents/Button/index.js +1 -1
  117. package/esm/hostComponents/Button/node.js +1 -1
  118. package/esm/hostComponents/Camera/index.d.ts +2 -2
  119. package/esm/hostComponents/Camera/index.js +1 -1
  120. package/esm/hostComponents/Camera/node.js +1 -1
  121. package/esm/hostComponents/Canvas/index.d.ts +1 -1
  122. package/esm/hostComponents/Canvas/index.js +1 -1
  123. package/esm/hostComponents/Canvas/node.js +1 -1
  124. package/esm/hostComponents/Checkbox/index.d.ts +1 -1
  125. package/esm/hostComponents/Checkbox/index.js +1 -1
  126. package/esm/hostComponents/Checkbox/node.js +1 -1
  127. package/esm/hostComponents/CheckboxGroup/index.d.ts +1 -1
  128. package/esm/hostComponents/CheckboxGroup/index.js +1 -1
  129. package/esm/hostComponents/CheckboxGroup/node.js +1 -1
  130. package/esm/hostComponents/CoverView/index.d.ts +1 -1
  131. package/esm/hostComponents/CoverView/index.js +1 -1
  132. package/esm/hostComponents/CoverView/node.js +1 -1
  133. package/esm/hostComponents/Form/index.d.ts +1 -1
  134. package/esm/hostComponents/Form/index.js +1 -1
  135. package/esm/hostComponents/Form/node.js +1 -1
  136. package/esm/hostComponents/Iframe/index.d.ts +1 -1
  137. package/esm/hostComponents/Iframe/index.js +1 -1
  138. package/esm/hostComponents/Iframe/node.js +1 -1
  139. package/esm/hostComponents/Image/index.d.ts +1 -1
  140. package/esm/hostComponents/Image/index.js +1 -1
  141. package/esm/hostComponents/Image/node.js +1 -1
  142. package/esm/hostComponents/Input/index.d.ts +1 -1
  143. package/esm/hostComponents/Input/index.js +1 -1
  144. package/esm/hostComponents/Input/node.js +1 -1
  145. package/esm/hostComponents/IpcPlayer/index.d.ts +1 -1
  146. package/esm/hostComponents/IpcPlayer/index.js +1 -1
  147. package/esm/hostComponents/IpcPlayer/node.js +1 -1
  148. package/esm/hostComponents/Label/index.d.ts +1 -1
  149. package/esm/hostComponents/Label/index.js +1 -1
  150. package/esm/hostComponents/Label/node.js +1 -1
  151. package/esm/hostComponents/Map/index.d.ts +1 -1
  152. package/esm/hostComponents/Map/index.js +1 -1
  153. package/esm/hostComponents/Map/node.js +1 -1
  154. package/esm/hostComponents/MovableArea/index.d.ts +1 -1
  155. package/esm/hostComponents/MovableArea/index.js +1 -1
  156. package/esm/hostComponents/MovableArea/node.js +1 -1
  157. package/esm/hostComponents/MovableView/index.d.ts +1 -1
  158. package/esm/hostComponents/MovableView/index.js +1 -1
  159. package/esm/hostComponents/MovableView/node.js +1 -1
  160. package/esm/hostComponents/NativeVideo/index.d.ts +1 -1
  161. package/esm/hostComponents/NativeVideo/index.js +1 -1
  162. package/esm/hostComponents/NativeVideo/node.js +1 -1
  163. package/esm/hostComponents/Navigator/index.d.ts +1 -1
  164. package/esm/hostComponents/Navigator/index.js +1 -1
  165. package/esm/hostComponents/PageContainer/index.d.ts +1 -1
  166. package/esm/hostComponents/PageContainer/index.js +1 -1
  167. package/esm/hostComponents/PageContainer/node.js +1 -1
  168. package/esm/hostComponents/Picker/index.d.ts +1 -1
  169. package/esm/hostComponents/Picker/index.js +1 -1
  170. package/esm/hostComponents/Picker/node.js +1 -1
  171. package/esm/hostComponents/PickerView/index.d.ts +1 -1
  172. package/esm/hostComponents/PickerView/index.js +1 -1
  173. package/esm/hostComponents/PickerView/node.js +1 -1
  174. package/esm/hostComponents/PickerViewColumn/index.d.ts +1 -1
  175. package/esm/hostComponents/PickerViewColumn/index.js +1 -1
  176. package/esm/hostComponents/PickerViewColumn/node.js +1 -1
  177. package/esm/hostComponents/Progress/index.d.ts +1 -1
  178. package/esm/hostComponents/Progress/index.js +1 -1
  179. package/esm/hostComponents/Progress/node.js +1 -1
  180. package/esm/hostComponents/Radio/index.d.ts +1 -1
  181. package/esm/hostComponents/Radio/index.js +1 -1
  182. package/esm/hostComponents/Radio/node.js +1 -1
  183. package/esm/hostComponents/RadioGroup/index.d.ts +1 -1
  184. package/esm/hostComponents/RadioGroup/index.js +1 -1
  185. package/esm/hostComponents/RadioGroup/node.js +1 -1
  186. package/esm/hostComponents/RichText/index.d.ts +1 -1
  187. package/esm/hostComponents/RichText/index.js +1 -1
  188. package/esm/hostComponents/RichText/node.js +1 -1
  189. package/esm/hostComponents/ScrollView/index.d.ts +1 -1
  190. package/esm/hostComponents/ScrollView/index.js +1 -1
  191. package/esm/hostComponents/ScrollView/node.js +1 -1
  192. package/esm/hostComponents/Slider/index.d.ts +1 -1
  193. package/esm/hostComponents/Slider/index.js +1 -1
  194. package/esm/hostComponents/Slider/node.js +1 -1
  195. package/esm/hostComponents/SvgRender/index.d.ts +1 -1
  196. package/esm/hostComponents/SvgRender/index.js +1 -1
  197. package/esm/hostComponents/SvgRender/node.js +1 -1
  198. package/esm/hostComponents/Swiper/index.d.ts +1 -1
  199. package/esm/hostComponents/Swiper/index.js +1 -1
  200. package/esm/hostComponents/Swiper/node.js +1 -1
  201. package/esm/hostComponents/SwiperItem/index.d.ts +1 -1
  202. package/esm/hostComponents/SwiperItem/index.js +1 -1
  203. package/esm/hostComponents/SwiperItem/node.js +1 -1
  204. package/esm/hostComponents/Switch/index.d.ts +1 -1
  205. package/esm/hostComponents/Switch/index.js +1 -1
  206. package/esm/hostComponents/Switch/node.js +1 -1
  207. package/esm/hostComponents/Text/index.d.ts +1 -1
  208. package/esm/hostComponents/Text/index.js +1 -1
  209. package/esm/hostComponents/Text/node.js +1 -1
  210. package/esm/hostComponents/Textarea/index.d.ts +1 -1
  211. package/esm/hostComponents/Textarea/index.js +1 -1
  212. package/esm/hostComponents/Textarea/node.js +1 -1
  213. package/esm/hostComponents/Video/index.js +1 -1
  214. package/esm/hostComponents/Video/node.js +1 -1
  215. package/esm/hostComponents/View/index.d.ts +1 -1
  216. package/esm/hostComponents/View/index.js +1 -1
  217. package/esm/hostComponents/View/node.js +1 -1
  218. package/esm/hostComponents/WebView/index.d.ts +1 -1
  219. package/esm/hostComponents/WebView/index.js +1 -1
  220. package/esm/hostComponents/WebView/node.js +1 -1
  221. package/esm/hostComponents/index.d.ts +36 -36
  222. package/esm/hostComponents/index.js +36 -36
  223. package/esm/hostComponents/node.js +35 -35
  224. package/esm/index.d.ts +2 -2
  225. package/esm/index.js +2 -2
  226. package/esm/node/index.js +1 -1
  227. package/esm/types/index.d.ts +2 -2
  228. package/esm/types/index.js +1 -1
  229. package/node.js +1 -1
  230. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  /**
3
3
  * https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
4
4
  */
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', direction: 'direction', inertia: 'inertia', outOfBounds: 'out-of-bounds', x: 'x', y: 'y', damping: 'damping', friction: 'friction', disabled: 'disabled', scale: 'scale', scaleMin: 'scale-min', scaleMax: 'scale-max', scaleValue: 'scale-value', onChange: 'bind:change', onScale: 'bind:scale', htouchmove: 'htouchmove', vtouchmove: 'vtouchmove' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, DiffLayer } from '../../types/component';
2
+ import { BaseProps, DiffLayer } from '../../types/component.js';
3
3
  export interface NativeVideoProps extends BaseProps, DiffLayer {
4
4
  src: string;
5
5
  duration?: number;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const NativeVideo = createHostComponent('native-video');
3
3
  NativeVideo.defaultProps = {
4
4
  controls: true,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', updateLayout: 'update-layout', src: 'src', duration: 'duration', controls: 'controls', autoplay: 'autoplay', loop: 'loop', muted: 'muted', initialTime: 'initial-time', showFullscreenBtn: 'show-fullscreen-btn', showPlayBtn: 'show-play-btn', showCenterPlayBtn: 'show-center-play-btn', objectFit: 'object-fit', poster: 'poster', showMuteBtn: 'show-mute-btn', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', borderRadiusTopLeft: 'border-radius-top-left', borderRadiusTopRight: 'border-radius-top-right', borderRadiusBottomLeft: 'border-radius-bottom-left', borderRadiusBottomRight: 'border-radius-bottom-right', backgroundColor: 'background-color', onPlay: 'bind:play', onPause: 'bind:pause', onEnded: 'bind:ended', onTimeupdate: 'bind:timeupdate', onFullscreenchange: 'bind:fullscreenchange', onWaiting: 'bind:waiting', onError: 'bind:error', onProgress: 'bind:progress', onLoadedmetadata: 'bind:loadedmetadata', onControlstoggle: 'bind:controlstoggle', onSeekcomplete: 'bind:seekcomplete' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface NavigatorProps extends BaseProps {
4
4
  /** (default: self) 在哪个目标上发生跳转,默认当前小程序 2.0.7 */
5
5
  target?: 'self' | 'miniProgram';
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  /**
3
3
  * https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface PageContainerProps extends BaseProps {
4
4
  show?: boolean;
5
5
  duration?: number;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const PageContainer = createHostComponent('page-container');
3
3
  PageContainer.defaultProps = {
4
4
  // show: false,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', show: 'show', duration: 'duration', zIndex: 'z-index', overlay: 'overlay', position: 'position', round: 'round', closeOnSlideDown: 'close-on-slideDown', overlayStyle: 'overlay-style', customStyle: 'custom-style', onBeforeEnter: 'bind:beforeenter', onEnter: 'bind:enter', onAfterEnter: 'bind:afterenter', onBeforeLeave: 'bind:beforeleave', onLeave: 'bind:leave', onAfterLeave: 'bind:afterleave', onClickOverlay: 'bind:clickoverlay' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface PickerProps extends BaseProps {
4
4
  name?: string;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Picker = createHostComponent('picker');
3
3
  Picker.defaultProps = {
4
4
  mode: 'selector',
@@ -1,4 +1,4 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', name: 'name', className: 'class', animation: 'animation', style: 'style', mode: 'mode', range: 'range', rangeKey: 'range-key', value: 'value', onChange: 'bind:change', onCancel: 'bind:cancel', onColumnChange: 'bind:columnchange', start: 'start', end: 'end', fields: 'fields', customItem: 'custom-item', disabled: 'disabled', onClick: 'bind:tap', onTap: 'bind:tap',
3
3
  // 1.4.1 支持属性
4
4
  confirmText: 'confirm-text', cancelText: 'cancel-text' });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface PickerViewProps extends BaseProps {
4
4
  /** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
5
5
  value?: number[];
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const PickerView = createHostComponent('picker-view');
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bind:change', onPickstart: 'bind:pickstart', onPickend: 'bind:pickend' });
3
3
  export const props = Object.values(alias);
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export type PickerViewColumnProps = BaseProps;
4
4
  export declare const PickerViewColumn: React.ComponentType<PickerViewColumnProps>;
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const PickerViewColumn = createHostComponent('picker-view-column');
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface ProgressProps extends BaseProps {
4
4
  percent?: number;
5
5
  showInfo?: boolean;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Progress = createHostComponent('progress');
3
3
  Progress.defaultProps = {
4
4
  borderRadius: 0,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', percent: 'percent', showInfo: 'show-info', borderRadius: 'border-radius', fontSize: 'font-size', strokeWidth: 'stroke-width', activeColor: 'active-Color', backgroundColor: 'background-color', active: 'active', activeMode: 'active-mode' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface RadioProps extends BaseProps {
4
4
  /** radio 标识。当该radio 选中时,radio-group 的 change 事件会携带radio的value */
5
5
  value?: string;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Radio = createHostComponent('radio');
3
3
  Radio.defaultProps = {
4
4
  // checked: false,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', checked: 'checked', disabled: 'disabled', color: 'color' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface RadioGroupProps extends BaseProps {
4
4
  /**
5
5
  * 用于 <form /> 组件,在表单提交事件中作为提交数据的 key 值
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const RadioGroup = createHostComponent('radio-group');
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', onChange: 'bind:change', name: 'name' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  type RichTextNode = {
4
4
  name: string;
5
5
  attrs?: Record<string, unknown>;
@@ -1,3 +1,3 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const RichText = createHostComponent('rich-text');
3
3
  RichText.defaultProps = {};
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { nodes: 'nodes', onSelect: 'bind:select' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface ScrollViewProps extends BaseProps {
4
4
  scrollX?: boolean;
5
5
  scrollY?: boolean;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const ScrollView = createHostComponent('scroll-view');
3
3
  ScrollView.defaultProps = {
4
4
  upperThreshold: 50,
@@ -1,4 +1,4 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', scrollX: 'scroll-x', scrollY: 'scroll-y', upperThreshold: 'upper-threshold', lowerThreshold: 'lower-threshold', scrollTop: 'scroll-top', scrollLeft: 'scroll-left', scrollIntoView: 'scroll-into-view', scrollIntoViewOffset: 'scroll-into-view-offset', scrollWithAnimation: 'scroll-with-animation', enableBackToTop: 'enable-back-to-top', enableFlex: 'enable-flex', onScrollToUpper: 'bind:scrolltoupper', onScrollToLower: 'bind:scrolltolower', onScroll: 'bind:scroll',
3
3
  /* 0.9.3新增 */
4
4
  refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', hideScrollbar: 'hide-scrollbar', bounces: 'bounces', onRefresherPulling: 'bind:refresherpulling', onRefresherpulling: 'bind:refresherpulling', onRefresherRefresh: 'bind:refresherrefresh', onRefresherrefresh: 'bind:refresherrefresh', onRefresherRestore: 'bind:refresherrestore', onRefresherrestore: 'bind:refresherrestore', onRefresherAbort: 'bind:refresherabort', onRefresherabort: 'bind:refresherabort' });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface SliderProps extends BaseProps {
4
4
  min?: number;
5
5
  max?: number;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Slider = createHostComponent('slider');
3
3
  Slider.defaultProps = {
4
4
  min: 0,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', blockSize: 'blockSize', showValue: 'showValue', onChange: 'bind:change', onChanging: 'bind:changing' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface SvgRenderProps extends BaseProps {
4
4
  source: string;
5
5
  }
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const SvgRender = createHostComponent('svg-render');
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { source: 'source' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface SwiperProps extends BaseProps {
4
4
  indicatorDots?: boolean;
5
5
  indicatorColor?: string;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Swiper = createHostComponent('swiper');
3
3
  Swiper.defaultProps = {
4
4
  indicatorColor: 'rgba(0, 0, 0, 0.3)',
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', indicatorDots: 'indicator-dots', indicatorColor: 'indicator-color', indicatorActiveColor: 'indicator-active-color', autoplay: 'autoplay', current: 'current', interval: 'interval', duration: 'duration', circular: 'circular', vertical: 'vertical', previousMargin: 'previous-margin', nextMargin: 'next-margin', snapToEdge: 'snap-to-edge', displayMultipleItems: 'display-multiple-items', onChange: 'bind:change', onTransition: 'bingtransition', onAnimationFinish: 'bind:animationfinish', onTap: 'bind:tap', onClick: 'bind:tap' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface SwiperItemProps extends BaseProps {
4
4
  /** 该 swiper-item 的标识符 */
5
5
  itemId?: string;
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const SwiperItem = createHostComponent('swiper-item');
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { key: 'key', id: 'id', className: 'class', animation: 'animation', style: 'style', itemId: 'item-id' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface SwitchProps extends BaseProps {
4
4
  name?: string;
5
5
  /** (default: false) 是否选中 */
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  /**
3
3
  * https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
4
4
  */
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', checked: 'checked', disabled: 'disabled', color: 'color', onChange: 'bind:change', type: 'type' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from '../../types/component';
2
+ import { BaseProps } from '../../types/component.js';
3
3
  export interface TextProps extends BaseProps {
4
4
  userSelect?: boolean;
5
5
  space?: 'ensp' | 'emsp' | 'nbsp';
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Text = createHostComponent('text');
3
3
  Text.defaultProps = {
4
4
  // userSelect: false,
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', selectable: 'selectable', userSelect: 'user-select', space: 'space', decode: 'decode', onTap: 'bind:tap', onClick: 'bind:tap' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
2
+ import { BaseProps, GenericEvent } from '../../types/component.js';
3
3
  export interface TextareaProps extends BaseProps {
4
4
  name?: string;
5
5
  value?: string;
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Textarea = createHostComponent('textarea');
3
3
  Textarea.defaultProps = {
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', autoHeight: 'auto-height', onInput: 'bind:input', onFocus: 'bind:focus', onBlur: 'bind:blur', onLineChange: 'bind:linechange' });
3
3
  export const props = Object.values(alias);
@@ -1,2 +1,2 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const Video = createHostComponent('video');
@@ -1,4 +1,4 @@
1
1
  import { unique } from '@ray-core/shared';
2
- import { universalAlias } from '../universal';
2
+ import { universalAlias } from '../universal.js';
3
3
  export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', style: 'style', src: 'src', duration: 'duration', controls: 'controls', danmuList: 'danmu-list', danmuBtn: 'danmu-btn', enableDanmu: 'enable-danmu', autoplay: 'autoplay', loop: 'loop', muted: 'muted', initialTime: 'initial-time', showFullscreenBtn: 'show-fullscreen-btn', showPlayBtn: 'show-play-btn', showCenterPlayBtn: 'show-center-play-btn', objectFit: 'object-fit', poster: 'poster', showMuteBtn: 'show-mute-btn', onPlay: 'bind:play', onPause: 'bind:pause', onEnded: 'bind:ended', onTimeUpdate: 'bind:timeupdate', onTimeupdate: 'bind:timeupdate', onWaiting: 'bind:waiting', onError: 'bind:error', onProgress: 'bind:progress', onLoadedMetadata: 'bind:loadedmetadata', onLoadedmetadata: 'bind:loadedmetadata', onCanplay: 'bind:canplay', onCanplayThrough: 'bind:canplaythrough', onPlaying: 'bind:playing', onRateChange: 'bind:ratechange', onVolumeChange: 'bind:volumechange', onSeekComplete: 'bind:seekcomplete', onSeekcomplete: 'bind:seekcomplete', autoPause: 'auto-pause', borderRadius: 'border-radius' });
4
4
  export const props = unique(Object.values(alias));
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, TouchEvent } from '../../types/component';
2
+ import { BaseProps, TouchEvent } from '../../types/component.js';
3
3
  export interface ViewProps extends BaseProps {
4
4
  slot?: string;
5
5
  /** 指定按下去的样式类。当为 "none" 时,没有点击态效果 1.0.0 */
@@ -1,4 +1,4 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const View = createHostComponent('view');
3
3
  View.defaultProps = {
4
4
  // hoverClassName: 'none',
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { catchTouchMove: 'catch:touchmove' });
3
3
  export const props = Object.values(alias);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { BaseProps, DiffLayer, GenericEvent } from '../../types/component';
2
+ import { BaseProps, DiffLayer, GenericEvent } from '../../types/component.js';
3
3
  export interface WebViewProps extends BaseProps, DiffLayer {
4
4
  /**
5
5
  * webview 指向网页的链接,网页需登录小程序管理后台配置业务域名。
@@ -1,3 +1,3 @@
1
- import createHostComponent from '../createHostComponent';
1
+ import createHostComponent from '../createHostComponent.js';
2
2
  export const WebView = createHostComponent('web-view');
3
3
  WebView.defaultProps = {};
@@ -1,3 +1,3 @@
1
- import { universalAlias } from '../universal';
1
+ import { universalAlias } from '../universal.js';
2
2
  export const alias = Object.assign(Object.assign({}, universalAlias), { src: 'src', injectTTT: 'inject-ttt', onError: 'bind:error', onLoad: 'bind:load', onMessage: 'bind:message', updateLayout: 'update-layout' });
3
3
  export const props = Object.values(alias);
@@ -1,36 +1,36 @@
1
- export * from './Button';
2
- export * from './Canvas';
3
- export * from './Checkbox';
4
- export * from './CheckboxGroup';
5
- export * from './Form';
6
- export * from './Image';
7
- export * from './Input';
8
- export * from './Label';
9
- export * from './MovableArea';
10
- export * from './MovableView';
11
- export * from './Picker';
12
- export * from './PickerView';
13
- export * from './PickerViewColumn';
14
- export * from './Radio';
15
- export * from './RadioGroup';
16
- export * from './ScrollView';
17
- export * from './Swiper';
18
- export * from './SwiperItem';
19
- export * from './Switch';
20
- export * from './Slider';
21
- export * from './Text';
22
- export * from './Textarea';
23
- export * from './Video';
24
- export * from './View';
25
- export * from './PageContainer';
26
- export * from './IpcPlayer';
27
- export * from './CoverView';
28
- export * from './NativeVideo';
29
- export * from './WebView';
30
- export * from './Iframe';
31
- export * from './Map';
32
- export * from './Camera';
33
- export * from './Progress';
34
- export * from './RichText';
35
- export * from './Navigator';
36
- export * from './SvgRender';
1
+ export * from './Button/index.js';
2
+ export * from './Canvas/index.js';
3
+ export * from './Checkbox/index.js';
4
+ export * from './CheckboxGroup/index.js';
5
+ export * from './Form/index.js';
6
+ export * from './Image/index.js';
7
+ export * from './Input/index.js';
8
+ export * from './Label/index.js';
9
+ export * from './MovableArea/index.js';
10
+ export * from './MovableView/index.js';
11
+ export * from './Picker/index.js';
12
+ export * from './PickerView/index.js';
13
+ export * from './PickerViewColumn/index.js';
14
+ export * from './Radio/index.js';
15
+ export * from './RadioGroup/index.js';
16
+ export * from './ScrollView/index.js';
17
+ export * from './Swiper/index.js';
18
+ export * from './SwiperItem/index.js';
19
+ export * from './Switch/index.js';
20
+ export * from './Slider/index.js';
21
+ export * from './Text/index.js';
22
+ export * from './Textarea/index.js';
23
+ export * from './Video/index.js';
24
+ export * from './View/index.js';
25
+ export * from './PageContainer/index.js';
26
+ export * from './IpcPlayer/index.js';
27
+ export * from './CoverView/index.js';
28
+ export * from './NativeVideo/index.js';
29
+ export * from './WebView/index.js';
30
+ export * from './Iframe/index.js';
31
+ export * from './Map/index.js';
32
+ export * from './Camera/index.js';
33
+ export * from './Progress/index.js';
34
+ export * from './RichText/index.js';
35
+ export * from './Navigator/index.js';
36
+ export * from './SvgRender/index.js';