@ray-js/components 0.6.20 → 0.6.22-beta-1
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/Image.js +2 -2
- package/lib/Input/Input.js +2 -2
- package/package.json +5 -5
package/lib/Image/Image.js
CHANGED
@@ -3,8 +3,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useEventListener } from 'ahooks';
|
5
5
|
import handleProps from '../utils/handleProps';
|
6
|
-
var Image = /*#__PURE__*/React.forwardRef(function (props) {
|
7
|
-
var currentNode = React.useRef(null);
|
6
|
+
var Image = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
7
|
+
var currentNode = ref || React.useRef(null);
|
8
8
|
useEventListener('load', function (e) {
|
9
9
|
var _props$onLoad;
|
10
10
|
|
package/lib/Input/Input.js
CHANGED
@@ -9,7 +9,7 @@ import { inlineStyle, useStylesheet } from '@ray-js/framework-shared';
|
|
9
9
|
import { defaultInputProps } from './props';
|
10
10
|
import styles from './index.module.less';
|
11
11
|
import handleProps from '../utils/handleProps';
|
12
|
-
var Input = /*#__PURE__*/React.forwardRef(function (props) {
|
12
|
+
var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
13
13
|
var placeholderStyle = props.placeholderStyle,
|
14
14
|
className = props.className,
|
15
15
|
maxLength = props.maxLength,
|
@@ -22,7 +22,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props) {
|
|
22
22
|
_useStylesheet2 = _slicedToArray(_useStylesheet, 1),
|
23
23
|
placeholderStyleClassName = _useStylesheet2[0];
|
24
24
|
|
25
|
-
var currentNode = React.useRef(null);
|
25
|
+
var currentNode = ref || React.useRef(null);
|
26
26
|
useEventListener('focus', function (e) {
|
27
27
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus({
|
28
28
|
type: 'focus',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.22-beta-1",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,8 +26,8 @@
|
|
26
26
|
"dependencies": {
|
27
27
|
"@ray-core/macro": "^0.0.x",
|
28
28
|
"@ray-core/wechat": "^0.0.x",
|
29
|
-
"@ray-js/adapter": "^0.6.
|
30
|
-
"@ray-js/framework-shared": "^0.6.
|
29
|
+
"@ray-js/adapter": "^0.6.22-beta-1",
|
30
|
+
"@ray-js/framework-shared": "^0.6.22-beta-1",
|
31
31
|
"ahooks": "^3.7.1",
|
32
32
|
"clsx": "^1.1.1",
|
33
33
|
"core-js": "^3.19.1",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"style-to-object": "^0.3.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@ray-js/cli": "^0.6.
|
40
|
+
"@ray-js/cli": "^0.6.22-beta-1"
|
41
41
|
},
|
42
42
|
"maintainers": [
|
43
43
|
{
|
@@ -45,6 +45,6 @@
|
|
45
45
|
"email": "tuyafe@tuya.com"
|
46
46
|
}
|
47
47
|
],
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "2e905a1820d0adfc0a6ca8cf3ecf1f3a584a0d44",
|
49
49
|
"repository": {}
|
50
50
|
}
|