@ray-js/components 0.6.12-beta-2 → 0.6.13
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.
- package/lib/Image/props.d.ts +1 -50
- package/lib/Image/props.js +1 -4
- package/package.json +4 -4
package/lib/Image/props.d.ts
CHANGED
@@ -1,50 +1 @@
|
|
1
|
-
|
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';
|
package/lib/Image/props.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.13",
|
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.
|
29
|
+
"@ray-js/framework-shared": "^0.6.13",
|
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.
|
39
|
+
"@ray-js/cli": "^0.6.13"
|
40
40
|
},
|
41
41
|
"maintainers": [
|
42
42
|
{
|
@@ -44,6 +44,6 @@
|
|
44
44
|
"email": "tuyafe@tuya.com"
|
45
45
|
}
|
46
46
|
],
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "947909ecb9ba12ed9f17485d779a34dadcdecd1f",
|
48
48
|
"repository": {}
|
49
49
|
}
|