assui 2.0.40 → 2.0.41
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/es/number-input/index.js
CHANGED
|
@@ -120,7 +120,7 @@ var NumberInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
120
120
|
if (numberType === numberTypeEnum.INT) {
|
|
121
121
|
onChange(+newNumber);
|
|
122
122
|
} else {
|
|
123
|
-
endsWith(newNumber, '.') ? onChange(newNumber) : onChange(+newNumber);
|
|
123
|
+
endsWith(newNumber, '.') || endsWith(newNumber, '.0') ? onChange(newNumber) : onChange(+newNumber);
|
|
124
124
|
}
|
|
125
125
|
} else {
|
|
126
126
|
onChange(newNumber);
|
|
@@ -59,8 +59,8 @@ var defaultInit = {
|
|
|
59
59
|
language: 'zh_CN',
|
|
60
60
|
menubar: false,
|
|
61
61
|
images_upload_handler: function images_upload_handler() {},
|
|
62
|
-
plugins: [' autolink lists link image charmap
|
|
63
|
-
toolbar: 'undo redo | formatselect | ' + 'bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help',
|
|
62
|
+
plugins: [' autolink lists link image charmap anchor', 'searchreplace code fullscreen', 'insertdatetime media table help wordcount'],
|
|
63
|
+
toolbar: 'undo redo | formatselect | ' + 'code bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help',
|
|
64
64
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -178,7 +178,7 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
178
178
|
if (numberType === numberTypeEnum.INT) {
|
|
179
179
|
onChange(+newNumber);
|
|
180
180
|
} else {
|
|
181
|
-
endsWith_1["default"](newNumber, '.') ? onChange(newNumber) : onChange(+newNumber);
|
|
181
|
+
endsWith_1["default"](newNumber, '.') || endsWith_1["default"](newNumber, '.0') ? onChange(newNumber) : onChange(+newNumber);
|
|
182
182
|
}
|
|
183
183
|
} else {
|
|
184
184
|
onChange(newNumber);
|
|
@@ -96,8 +96,8 @@ var defaultInit = {
|
|
|
96
96
|
language: 'zh_CN',
|
|
97
97
|
menubar: false,
|
|
98
98
|
images_upload_handler: function images_upload_handler() {},
|
|
99
|
-
plugins: [' autolink lists link image charmap
|
|
100
|
-
toolbar: 'undo redo | formatselect | ' + 'bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help',
|
|
99
|
+
plugins: [' autolink lists link image charmap anchor', 'searchreplace code fullscreen', 'insertdatetime media table help wordcount'],
|
|
100
|
+
toolbar: 'undo redo | formatselect | ' + 'code bold italic color fontcolor backcolor | alignleft aligncenter ' + 'alignright alignjustify table | image bullist numlist outdent indent | ' + 'removeformat | help',
|
|
101
101
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
102
102
|
};
|
|
103
103
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"node": ">=10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "64f0ada9235e69167086fcd36aaccc9151149fa5"
|
|
73
73
|
}
|