@ray-js/components 0.6.12 → 0.6.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.
@@ -6,7 +6,7 @@ export interface ButtonProps extends BaseProps {
6
6
  * @description.zh 是否禁用
7
7
  * @default undefined
8
8
  */
9
- disabled?: false;
9
+ disabled?: boolean;
10
10
  /**
11
11
  * @description.en loading
12
12
  * @description.zh 是否加载中
@@ -1,50 +1 @@
1
- import { BaseProps } from '../types';
2
- import { TouchEventHandler } from '@ray-js/framework-shared';
3
- import { GenericEvent as WxEvent } from '@ray-core/wechat';
4
- export interface ImageProps extends BaseProps, TouchEventHandler {
5
- /**
6
- * @description.en image source uri
7
- * @description.zh 图片地址
8
- * @default undefined
9
- */
10
- src: string;
11
- /**
12
- * @description.en mode
13
- * @description.zh 图片裁剪、缩放的模式,RN 支持部分模式
14
- * @default 'scaleToFill'
15
- */
16
- mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom right' | 'bottom left';
17
- /**
18
- * @description.en Triggered when the image has finished loading
19
- * @description.zh 当图片载入完毕时触发
20
- * @default undefined
21
- */
22
- onLoad?: (e: {
23
- /**
24
- * @description.en width
25
- * @description.zh 宽度
26
- * @default undefined
27
- */
28
- width: number;
29
- /**
30
- * @description.en height
31
- * @description.zh 高度
32
- * @default undefined
33
- */
34
- height: number;
35
- origin: WxEvent;
36
- }) => any;
37
- /**
38
- * @description.en Triggered when an error occurs
39
- * @description.zh 当错误发生时触发
40
- * @default undefined
41
- */
42
- onError?: (e: {
43
- errMsg: string;
44
- origin: null | WxEvent;
45
- }) => any;
46
- }
47
- export declare const defaultImageProps: {
48
- src: string;
49
- mode: string;
50
- };
1
+ export type { ImageProps } from '@ray-js/adapter';
@@ -1,4 +1 @@
1
- export var defaultImageProps = {
2
- src: '',
3
- mode: 'scaleToFill'
4
- };
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "description": "Ray basic components",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@ray-core/macro": "^0.0.x",
28
28
  "@ray-core/wechat": "^0.0.x",
29
- "@ray-js/framework-shared": "^0.6.12",
29
+ "@ray-js/framework-shared": "^0.6.14",
30
30
  "ahooks": "^3.7.1",
31
31
  "clsx": "^1.1.1",
32
32
  "core-js": "^3.19.1",
@@ -36,7 +36,7 @@
36
36
  "style-to-object": "^0.3.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "^0.6.12"
39
+ "@ray-js/cli": "^0.6.14"
40
40
  },
41
41
  "maintainers": [
42
42
  {
@@ -44,6 +44,6 @@
44
44
  "email": "tuyafe@tuya.com"
45
45
  }
46
46
  ],
47
- "gitHead": "61ac8ebd640954be634205804cf3735dbb38c021",
47
+ "gitHead": "2db16446552dd7c993535ed02e3a6cd97b6e5840",
48
48
  "repository": {}
49
49
  }