@ray-js/adapter 1.3.99-beta.1 → 1.3.99-beta.3
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/cjs/hostComponents/Textarea/index.d.ts +1 -1
- package/cjs/hostComponents/Textarea/index.js +8 -1
- package/cjs/hostComponents/Textarea/node.d.ts +1 -0
- package/cjs/hostComponents/Textarea/node.js +1 -1
- package/esm/hostComponents/Textarea/index.d.ts +1 -1
- package/esm/hostComponents/Textarea/index.js +8 -1
- package/esm/hostComponents/Textarea/node.d.ts +1 -0
- package/esm/hostComponents/Textarea/node.js +1 -1
- package/package.json +6 -6
|
@@ -10,7 +10,14 @@ exports.Textarea.defaultProps = {
|
|
|
10
10
|
// cursor: -1,
|
|
11
11
|
// selectionStart: -1,
|
|
12
12
|
// selectionEnd: -1,
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* 修复 <Textarea maxLength={1000} />
|
|
15
|
+
* 在编译时会将 maxLength 转为 maxlength,但实际 defaultProps 中 仍然使用 maxLength
|
|
16
|
+
* 最终导致传给组件的props { maxlength: 1000, maxlength: 140 }
|
|
17
|
+
* 最后经过 html2mini-plugin 转换后 maxLength 再次转为 maxlength, 且值变为 140。
|
|
18
|
+
* 最终导致值错误
|
|
19
|
+
*/
|
|
20
|
+
maxlength: 140,
|
|
14
21
|
cursorSpacing: 0,
|
|
15
22
|
adjustPosition: true,
|
|
16
23
|
};
|
|
@@ -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', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -7,7 +7,14 @@ Textarea.defaultProps = {
|
|
|
7
7
|
// cursor: -1,
|
|
8
8
|
// selectionStart: -1,
|
|
9
9
|
// selectionEnd: -1,
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* 修复 <Textarea maxLength={1000} />
|
|
12
|
+
* 在编译时会将 maxLength 转为 maxlength,但实际 defaultProps 中 仍然使用 maxLength
|
|
13
|
+
* 最终导致传给组件的props { maxlength: 1000, maxlength: 140 }
|
|
14
|
+
* 最后经过 html2mini-plugin 转换后 maxLength 再次转为 maxlength, 且值变为 140。
|
|
15
|
+
* 最终导致值错误
|
|
16
|
+
*/
|
|
17
|
+
maxlength: 140,
|
|
11
18
|
cursorSpacing: 0,
|
|
12
19
|
adjustPosition: true,
|
|
13
20
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', name: 'name', value: 'value', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', focus: 'focus', autoHeight: 'auto-height', cursorSpacing: 'cursor-spacing', cursor: 'cursor', selectionStart: 'selection-start', selectionEnd: 'selection-end', adjustPosition: 'adjust-position', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm', onLineChange: 'bindline-change', onKeyboardHeightChange: 'bindkeyboardheightchange' });
|
|
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.3.99-beta.
|
|
3
|
+
"version": "1.3.99-beta.3",
|
|
4
4
|
"description": "Ray adapter for tuya",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"watch": "concurrently 'yarn build:cjs --watch' 'yarn build:esm --watch'"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@ray-js/types": "^1.3.99-beta.
|
|
24
|
+
"@ray-js/types": "^1.3.99-beta.3",
|
|
25
25
|
"concurrently": "^6.2.1"
|
|
26
26
|
},
|
|
27
27
|
"maintainers": [
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ray-core/runtime": "^0.3.
|
|
35
|
-
"@ray-core/shared": "^0.3.
|
|
36
|
-
"@ray-core/types": "^0.3.
|
|
34
|
+
"@ray-core/runtime": "^0.3.99-beta.1",
|
|
35
|
+
"@ray-core/shared": "^0.3.99-beta.1",
|
|
36
|
+
"@ray-core/types": "^0.3.99-beta.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fb0a79e1296c9f6311467d9c00634654f0136644",
|
|
39
39
|
"repository": {}
|
|
40
40
|
}
|