@ray-js/adapter 1.8.0-beta.12 → 1.8.0-beta.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.
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
1
+ import type * as React from 'react';
2
+ import type { BaseProps, GenericEvent } from '../../types/component';
3
3
  export interface ImageProps extends BaseProps {
4
4
  /**
5
5
  * 图片资源地址
@@ -31,6 +31,10 @@ export interface ImageProps extends BaseProps {
31
31
  * 图片懒加载,在即将进入一定范围(上下三屏)时才开始加载
32
32
  */
33
33
  lazyLoad?: boolean;
34
+ /**
35
+ * 图片加载过程中渐显的时间,单位 ms
36
+ */
37
+ fadeDuration?: number;
34
38
  /**
35
39
  * 当错误发生时触发,,event.detail = {errMsg}
36
40
  */
@@ -6,6 +6,7 @@ export declare const alias: {
6
6
  animation: string;
7
7
  style: string;
8
8
  lazyLoad: string;
9
+ fadeDuration: string;
9
10
  onLoad: string;
10
11
  onError: string;
11
12
  onTap: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', src: 'src', mode: 'mode', className: 'class', animation: 'animation', style: 'style', lazyLoad: 'lazy-load', onLoad: 'bind:load', onError: 'bind:error', onTap: 'bind:tap', onClick: 'bind:tap', onTouchStart: 'bind:touchstart', onTouchMove: 'bind:touchmove', onTouchEnd: 'bind:touchend', onTouchCancel: 'bind:touchcancel' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', src: 'src', mode: 'mode', className: 'class', animation: 'animation', style: 'style', lazyLoad: 'lazy-load', fadeDuration: 'fade-duration', onLoad: 'bind:load', onError: 'bind:error', onTap: 'bind:tap', onClick: 'bind:tap', onTouchStart: 'bind:touchstart', onTouchMove: 'bind:touchmove', onTouchEnd: 'bind:touchend', onTouchCancel: 'bind:touchcancel' });
6
6
  exports.props = Object.values(exports.alias);
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { BaseProps, GenericEvent } from '../../types/component';
1
+ import type * as React from 'react';
2
+ import type { BaseProps, GenericEvent } from '../../types/component';
3
3
  export interface ImageProps extends BaseProps {
4
4
  /**
5
5
  * 图片资源地址
@@ -31,6 +31,10 @@ export interface ImageProps extends BaseProps {
31
31
  * 图片懒加载,在即将进入一定范围(上下三屏)时才开始加载
32
32
  */
33
33
  lazyLoad?: boolean;
34
+ /**
35
+ * 图片加载过程中渐显的时间,单位 ms
36
+ */
37
+ fadeDuration?: number;
34
38
  /**
35
39
  * 当错误发生时触发,,event.detail = {errMsg}
36
40
  */
@@ -6,6 +6,7 @@ export declare const alias: {
6
6
  animation: string;
7
7
  style: string;
8
8
  lazyLoad: string;
9
+ fadeDuration: string;
9
10
  onLoad: string;
10
11
  onError: string;
11
12
  onTap: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', src: 'src', mode: 'mode', className: 'class', animation: 'animation', style: 'style', lazyLoad: 'lazy-load', onLoad: 'bind:load', onError: 'bind:error', onTap: 'bind:tap', onClick: 'bind:tap', onTouchStart: 'bind:touchstart', onTouchMove: 'bind:touchmove', onTouchEnd: 'bind:touchend', onTouchCancel: 'bind:touchcancel' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', src: 'src', mode: 'mode', className: 'class', animation: 'animation', style: 'style', lazyLoad: 'lazy-load', fadeDuration: 'fade-duration', onLoad: 'bind:load', onError: 'bind:error', onTap: 'bind:tap', onClick: 'bind:tap', onTouchStart: 'bind:touchstart', onTouchMove: 'bind:touchmove', onTouchEnd: 'bind:touchend', onTouchCancel: 'bind:touchcancel' });
3
3
  export const props = Object.values(alias);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/adapter",
3
- "version": "1.8.0-beta.12",
3
+ "version": "1.8.0-beta.13",
4
4
  "description": "Ray adapter for tuya",
5
5
  "keywords": [
6
6
  "ray"
@@ -36,7 +36,7 @@
36
36
  "@ray-core/types": "^0.5.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/types": "1.8.0-beta.12",
39
+ "@ray-js/types": "1.8.0-beta.13",
40
40
  "concurrently": "^6.5.1"
41
41
  },
42
42
  "publishConfig": {
@@ -44,5 +44,5 @@
44
44
  "registry": "https://registry.npmjs.com"
45
45
  },
46
46
  "esnext": "./esm/index.js",
47
- "gitHead": "d13eaa76f0e5e5cafdced17df55c705cf7cec220"
47
+ "gitHead": "065df0fdeb24181e5400916ec929ecc83bb212f3"
48
48
  }