@trionesdev/antd-taro-react 0.0.2-beta.28 → 0.0.2-beta.29
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/dist/Input/taro-input.js +9 -8
- package/package.json +4 -4
package/dist/Input/taro-input.js
CHANGED
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import { Input as InternalTaroInput } from '@tarojs/components';
|
|
12
|
-
import React, {
|
|
12
|
+
import React, { useMemo } from "react";
|
|
13
13
|
import { InputAffixWrapper } from "./input-affix-wrapper";
|
|
14
14
|
export var TaroInput = function TaroInput(_ref) {
|
|
15
15
|
var value = _ref.value,
|
|
@@ -36,11 +36,13 @@ export var TaroInput = function TaroInput(_ref) {
|
|
|
36
36
|
return 'left';
|
|
37
37
|
}
|
|
38
38
|
}, [align]);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
39
|
+
|
|
40
|
+
// useEffect(() => {
|
|
41
|
+
// if (value !== innerValue) {
|
|
42
|
+
// setInnerValue(value);
|
|
43
|
+
// }
|
|
44
|
+
// }, [value]);
|
|
45
|
+
|
|
44
46
|
return /*#__PURE__*/React.createElement(InputAffixWrapper, _extends({}, rest, {
|
|
45
47
|
className: rest.className,
|
|
46
48
|
style: rest.style,
|
|
@@ -57,8 +59,7 @@ export var TaroInput = function TaroInput(_ref) {
|
|
|
57
59
|
textAlign: textAlign
|
|
58
60
|
},
|
|
59
61
|
type: type,
|
|
60
|
-
|
|
61
|
-
value: innerValue,
|
|
62
|
+
value: innerValue || rest.defaultValue,
|
|
62
63
|
placeholder: rest.placeholder,
|
|
63
64
|
password: rest.password,
|
|
64
65
|
disabled: rest.disabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trionesdev/antd-taro-react",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.29",
|
|
4
4
|
"description": "antd taro react",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@tarojs/react": "4.2.0",
|
|
46
46
|
"@tarojs/taro": "4.2.0",
|
|
47
47
|
"@trionesdev/antd-mobile-base-react": "workspace:*",
|
|
48
|
-
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.
|
|
48
|
+
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.29",
|
|
49
49
|
"@types/crypto-js": "^4.2.2",
|
|
50
50
|
"@types/lodash-es": "^4.17.12",
|
|
51
51
|
"@types/node": "^18.19.123",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@tarojs/components": "4.2.0",
|
|
59
|
-
"@trionesdev/antd-mobile-base-react": "0.0.2-beta.
|
|
59
|
+
"@trionesdev/antd-mobile-base-react": "0.0.2-beta.29",
|
|
60
60
|
"crypto-js": "^4.2.0",
|
|
61
61
|
"dayjs": "^1.11.19",
|
|
62
62
|
"rc-field-form": "^2.7.0",
|
|
63
63
|
"react": "^18.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0d481602ac6b365988fc4c5ca9d1a1b73750f901"
|
|
66
66
|
}
|