@nutui/nutui-react-taro 1.4.14 → 1.5.0
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/CHANGELOG.md +25 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/{input.taro-0b72dce2.js → input.taro-97af6c96.js} +3 -6
- package/dist/esm/nutui-react.es.js +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +4 -7
- package/dist/nutui.react.umd.js +4 -7
- package/dist/packages/shortpassword/shortpassword.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.5.0
|
|
2
|
+
`2023-04-12`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat: steps 组件增加 demo,支持点+icon混合使用 (#899) @xiaoyatong
|
|
5
|
+
* :bug: fix: backtop 第一次滚动时会卡住 (#901) @oasis-cloud
|
|
6
|
+
* :bug: fix: input 组件 type 为数字类型时唤起键盘与微信不一致 (#880) @刘正午
|
|
7
|
+
* :bug: fix: shortpassword 获得焦点后输入显示字符 (#898) @oasis-cloud
|
|
8
|
+
* 📖 docs: table 文档内容和 demo 对齐 (#900) @oasis-cloud
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# v1.4.14
|
|
12
|
+
`2023-04-06`
|
|
13
|
+
|
|
14
|
+
* :sparkles: feat: 新增inputnumber组件formatter格式化属性 (#863) @junjun666
|
|
15
|
+
* :bug: fix(input): 修复 nickname 类型获取值失败的问题 (#867) @eiinu
|
|
16
|
+
* :bug: fix: datepicker 选择日期时分秒时页面穿透滚动 (#860) @刘正午
|
|
17
|
+
* :bug: fix: grid-item 组件设置 className 后丢失了原有的 nut-grid-item 样式类 (#872) @刘正午
|
|
18
|
+
* :bug: fix: picker组件适配Taro的实现,修改为原生支持,解决数据量大时卡顿问题 (#885) @xiaoyatong
|
|
19
|
+
* :bug: fix: tabs 组件paneKey为空字符串时返回索引问题 (#870) @刘正午
|
|
20
|
+
* :bug: fix: 修复 textarea 组件 maxlength 属性未生效 (#866) @oasis-cloud
|
|
21
|
+
* 🔨 chore: datepicker 组件 taro 版本修复类型报错 @oasis-cloud
|
|
22
|
+
* 🔨 chore: 修改本地开发切换到移动端路径跳转错误 (#874) @junjun666
|
|
23
|
+
* 🔨 chore: 补充并优化package.json进行规则分类 (#873) @junjun666
|
|
24
|
+
|
|
1
25
|
# v1.4.13
|
|
2
26
|
`2023-03-29`
|
|
3
27
|
|
|
@@ -635,4 +659,4 @@
|
|
|
635
659
|
|
|
636
660
|
* :zap: feat: 第一个公开版本,发布 Layout、BackTop、Collapse、 ActionSheet、 Toast、 Notify、 Steps、 Drag、 Range、 InfiniteLoading、 Dialog、 Popup、 Swiper、 NoticeBar、 CircleProgress、 Button、 Cell、 Icon、 Price、 Avatar、 OverLay、 Divider、 Navbar、 Elevator、 Tabbar、 FixedNav、 InputNumber、 Checkbox、 Radio、 Picker、 Uploader、 Input、 Switch、 Rate、 Calendar、 ShortPassword、 Tag、 Badge、 Pagination、 Popover、 TextArea、 Signature、 Address、 Barrage
|
|
637
661
|
等组件。
|
|
638
|
-
* :zap: feat: 发布 NutUI-React 官网。
|
|
662
|
+
* :zap: feat: 发布 NutUI-React 官网。
|
package/dist/esm/Input.js
CHANGED
|
@@ -111,10 +111,10 @@ const Input = forwardRef((props, ref) => {
|
|
|
111
111
|
}, [disabled, required, error, border, slotButton, rightIcon, center]);
|
|
112
112
|
const updateValue = (value, trigger = 'onChange') => {
|
|
113
113
|
let val = value;
|
|
114
|
-
if (type === '
|
|
114
|
+
if (type === 'tel') {
|
|
115
115
|
val = formatNumber(val, false, false);
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (['number', 'digit'].includes(type)) {
|
|
118
118
|
val = formatNumber(val, true, true);
|
|
119
119
|
}
|
|
120
120
|
if (type === 'tel' && !formatter) {
|
|
@@ -169,12 +169,9 @@ const Input = forwardRef((props, ref) => {
|
|
|
169
169
|
const resetValidation = () => {
|
|
170
170
|
};
|
|
171
171
|
const inputType = (type) => {
|
|
172
|
-
if (type === '
|
|
172
|
+
if (type === 'tel') {
|
|
173
173
|
return 'text';
|
|
174
174
|
}
|
|
175
|
-
if (type === 'digit') {
|
|
176
|
-
return 'tel';
|
|
177
|
-
}
|
|
178
175
|
return type;
|
|
179
176
|
};
|
|
180
177
|
const handleClear = (event) => {
|
|
@@ -34,7 +34,7 @@ export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-6120e3e3.js';
|
|
|
34
34
|
export { D as DatePicker } from './datepicker.taro-6e9b4b8f.js';
|
|
35
35
|
export { F as Form } from './form.taro-0c8e7a39.js';
|
|
36
36
|
export { F as FormItem } from './formitem.taro-190a3326.js';
|
|
37
|
-
export { I as Input } from './input.taro-
|
|
37
|
+
export { I as Input } from './input.taro-97af6c96.js';
|
|
38
38
|
export { I as InputNumber } from './inputnumber.taro-7c2d7e85.js';
|
|
39
39
|
export { N as NumberKeyboard } from './numberkeyboard.taro-1bc24744.js';
|
|
40
40
|
export { P as Picker } from './picker.taro-9ad1b7c5.js';
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.
|
|
8
|
+
* @nutui/nutui-react-taro v1.5.0 Wed Apr 12 2023 16:30:07 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -7986,10 +7986,10 @@ const Input = forwardRef((props, ref) => {
|
|
|
7986
7986
|
const updateValue = (value, trigger = "onChange") => {
|
|
7987
7987
|
var _a;
|
|
7988
7988
|
let val = value;
|
|
7989
|
-
if (type === "
|
|
7989
|
+
if (type === "tel") {
|
|
7990
7990
|
val = formatNumber(val, false, false);
|
|
7991
7991
|
}
|
|
7992
|
-
if (
|
|
7992
|
+
if (["number", "digit"].includes(type)) {
|
|
7993
7993
|
val = formatNumber(val, true, true);
|
|
7994
7994
|
}
|
|
7995
7995
|
if (type === "tel" && !formatter) {
|
|
@@ -8041,12 +8041,9 @@ const Input = forwardRef((props, ref) => {
|
|
|
8041
8041
|
const resetValidation = () => {
|
|
8042
8042
|
};
|
|
8043
8043
|
const inputType = (type2) => {
|
|
8044
|
-
if (type2 === "
|
|
8044
|
+
if (type2 === "tel") {
|
|
8045
8045
|
return "text";
|
|
8046
8046
|
}
|
|
8047
|
-
if (type2 === "digit") {
|
|
8048
|
-
return "tel";
|
|
8049
|
-
}
|
|
8050
8047
|
return type2;
|
|
8051
8048
|
};
|
|
8052
8049
|
const handleClear = (event) => {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.
|
|
11
|
+
* @nutui/nutui-react-taro v1.5.0 Wed Apr 12 2023 16:30:07 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -8002,10 +8002,10 @@ var __publicField = (obj, key, value) => {
|
|
|
8002
8002
|
const updateValue = (value, trigger = "onChange") => {
|
|
8003
8003
|
var _a;
|
|
8004
8004
|
let val = value;
|
|
8005
|
-
if (type === "
|
|
8005
|
+
if (type === "tel") {
|
|
8006
8006
|
val = formatNumber(val, false, false);
|
|
8007
8007
|
}
|
|
8008
|
-
if (
|
|
8008
|
+
if (["number", "digit"].includes(type)) {
|
|
8009
8009
|
val = formatNumber(val, true, true);
|
|
8010
8010
|
}
|
|
8011
8011
|
if (type === "tel" && !formatter) {
|
|
@@ -8057,12 +8057,9 @@ var __publicField = (obj, key, value) => {
|
|
|
8057
8057
|
const resetValidation = () => {
|
|
8058
8058
|
};
|
|
8059
8059
|
const inputType = (type2) => {
|
|
8060
|
-
if (type2 === "
|
|
8060
|
+
if (type2 === "tel") {
|
|
8061
8061
|
return "text";
|
|
8062
8062
|
}
|
|
8063
|
-
if (type2 === "digit") {
|
|
8064
|
-
return "tel";
|
|
8065
|
-
}
|
|
8066
8063
|
return type2;
|
|
8067
8064
|
};
|
|
8068
8065
|
const handleClear = (event) => {
|