@nutui/nutui-react-taro 2.6.23 → 2.7.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 +20 -7
- package/dist/esm/Address.js +1 -1
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/{address.taro-Ai6DQF3D.js → address.taro-CAikNvuu.js} +1 -1
- package/dist/esm/{cascader.taro-CMOCzo0m.js → cascader.taro-DEApf0aF.js} +1 -1
- package/dist/esm/{inputnumber.taro-DPRZtV42.js → inputnumber.taro-CZourWz-.js} +4 -4
- package/dist/esm/nutui-react.es.js +4 -4
- package/dist/esm/{tabs.taro-D8bDfm4x.js → tabs.taro-CY1VxgF-.js} +1 -4
- 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/tr-TR.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.es.js +7 -7
- package/dist/nutui.react.umd.js +7 -7
- package/dist/packages/avatarcropper/avatarcropper.scss +1 -1
- package/dist/packages/divider/divider.scss +1 -2
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -0
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
# v2.
|
|
2
|
-
`2024-
|
|
1
|
+
# v2.7.0
|
|
2
|
+
`2024-11-01`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* :sparkles: feat: add plugin to remove rtl (#2673)
|
|
6
|
+
* :sparkles: feat: replacing the css paths imported from a specified package (#2675)
|
|
7
|
+
* :sparkles: feat(replace icon): jmapp icon (#2672)
|
|
8
|
+
* :sparkles: feat: add plugin to replace icons (#2671)
|
|
9
|
+
* :bug: fix(tabs): clicked tabs should be entirely visible (#2685)
|
|
10
|
+
* :bug: fix(avatarcropper): multi-language support (#2666)
|
|
11
|
+
* :bug: fix: optimize vertical type syntax for divider (#2664)
|
|
12
|
+
* :bug: fix: @nutui/icons-react changed to @nutui/icons-react-taro (#2651)
|
|
3
13
|
|
|
4
14
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* :bug: fix: import error (#2648)
|
|
9
|
-
* :bug: fix(dialog): remove defaultprops (#2639)
|
|
15
|
+
# v2.6.23
|
|
16
|
+
|
|
17
|
+
`2024-10-18`
|
|
10
18
|
|
|
19
|
+
- :sparkles: feat(calendar): support renderBottomButton props (#2645)
|
|
20
|
+
- :sparkles: feat(calendar): support deleteIcon props (#2644)
|
|
21
|
+
- :bug: fix(overlay): tour position offset in tour.taro (#2631)
|
|
22
|
+
- :bug: fix: import error (#2648)
|
|
23
|
+
- :bug: fix(dialog): remove defaultprops (#2639)
|
|
11
24
|
|
|
12
25
|
# v2.6.22
|
|
13
26
|
|
package/dist/esm/Address.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-avatar-cropper{position:relative;display:flex}.nut-avatar-cropper-edit-text{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000004d;z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, .7));z-index:1000}.nut-avatar-cropper-popup-canvas,.nut-avatar-cropper-popup-cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-avatar-cropper-popup-cut-canvas{z-index:0}.nut-avatar-cropper-popup-toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-avatar-cropper-popup-toolbar.top{top:0;bottom:inherit}.nut-avatar-cropper-popup-toolbar-flex{width:100%;display:flex;justify-content:space-between}.nut-avatar-cropper-popup-toolbar-item{color:#fff;
|
|
1
|
+
.nut-avatar-cropper{position:relative;display:flex}.nut-avatar-cropper-edit-text{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000004d;z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, .7));z-index:1000}.nut-avatar-cropper-popup-canvas,.nut-avatar-cropper-popup-cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-avatar-cropper-popup-cut-canvas{z-index:0}.nut-avatar-cropper-popup-toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-avatar-cropper-popup-toolbar.top{top:0;bottom:inherit}.nut-avatar-cropper-popup-toolbar-flex{width:100%;display:flex;justify-content:space-between;padding:15px}.nut-avatar-cropper-popup-toolbar-item{color:#fff;cursor:pointer;display:flex;align-items:center}.nut-avatar-cropper-popup-toolbar-item .nut-button{color:#fff}.nut-avatar-cropper-popup-highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:transparent}.nut-avatar-cropper-popup-highlight .highlight{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-color:transparent;box-shadow:0 0 1000px 1000px #0009}.nut-avatar-cropper.round .nut-avatar-cropper-edit-text{border-radius:50%}[dir=rtl] .nut-avatar-cropper-edit-text,.nut-rtl .nut-avatar-cropper-edit-text,[dir=rtl] .nut-avatar-cropper-input,.nut-rtl .nut-avatar-cropper-input,[dir=rtl] .nut-avatar-cropper-popup,.nut-rtl .nut-avatar-cropper-popup,[dir=rtl] .nut-avatar-cropper-popup-canvas,[dir=rtl] .nut-avatar-cropper-popup-cut-canvas,.nut-rtl .nut-avatar-cropper-popup-canvas,.nut-rtl .nut-avatar-cropper-popup-cut-canvas,[dir=rtl] .nut-avatar-cropper-popup-toolbar,.nut-rtl .nut-avatar-cropper-popup-toolbar,[dir=rtl] .nut-avatar-cropper-popup-highlight,.nut-rtl .nut-avatar-cropper-popup-highlight{left:auto;right:0}[dir=rtl] .nut-avatar-cropper-popup-highlight .highlight,.nut-rtl .nut-avatar-cropper-popup-highlight .highlight{left:auto;right:50%;transform:translate(50%,-50%)}
|
package/dist/esm/Cascader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-divider{display:flex;align-items:center;font-size:var(--nutui-divider-text-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-divider-text-color, var(--nutui-gray-6, #595959));margin:var(--nutui-divider-margin, 16px 0);border:0 solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));width:100%}.nut-divider:before,.nut-divider:after{content:"";border-style:inherit;border-color:inherit;border-width:var(--nutui-divider-line-height, 2px) 0 0;height:var(--nutui-divider-line-height, 2px);flex:1}.nut-divider-center:before,.nut-divider-left:before,.nut-divider-right:before{margin-right:var(--nutui-divider-spacing, 8px)}.nut-divider-center:after,.nut-divider-left:after,.nut-divider-right:after{margin-left:var(--nutui-divider-spacing, 8px)}.nut-divider-left:before{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-right:after{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-hairline:before,.nut-divider-hairline:after{transform:scaleY(.5)}.nut-divider-vertical{
|
|
1
|
+
.nut-divider{display:flex;align-items:center;font-size:var(--nutui-divider-text-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-divider-text-color, var(--nutui-gray-6, #595959));margin:var(--nutui-divider-margin, 16px 0);border:0 solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));width:100%}.nut-divider:before,.nut-divider:after{content:"";border-style:inherit;border-color:inherit;border-width:var(--nutui-divider-line-height, 2px) 0 0;height:var(--nutui-divider-line-height, 2px);flex:1}.nut-divider-center:before,.nut-divider-left:before,.nut-divider-right:before{margin-right:var(--nutui-divider-spacing, 8px)}.nut-divider-center:after,.nut-divider-left:after,.nut-divider-right:after{margin-left:var(--nutui-divider-spacing, 8px)}.nut-divider-left:before{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-right:after{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-hairline:before,.nut-divider-hairline:after{transform:scaleY(.5)}.nut-divider-vertical{display:inline-block;width:auto;height:var(--nutui-divider-vertical-height, 12px);border-left:1px solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));margin:var(--nutui-divider-vertical-margin, 0 8px);vertical-align:middle}[dir=rtl] .nut-divider-center:before,[dir=rtl] .nut-divider-left:before,[dir=rtl] .nut-divider-right:before,.nut-rtl .nut-divider-center:before,.nut-rtl .nut-divider-left:before,.nut-rtl .nut-divider-right:before{margin-right:0;margin-left:var(--nutui-divider-spacing, 8px)}[dir=rtl] .nut-divider-center:after,[dir=rtl] .nut-divider-left:after,[dir=rtl] .nut-divider-right:after,.nut-rtl .nut-divider-center:after,.nut-rtl .nut-divider-left:after,.nut-rtl .nut-divider-right:after{margin-left:0;margin-right:var(--nutui-divider-spacing, 8px)}[dir=rtl] .nut-divider-vertical,.nut-rtl .nut-divider-vertical{border-left:none;border-right:1px solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}
|
package/dist/esm/InputNumber.js
CHANGED
package/dist/esm/Tabs.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
|
|
|
4
4
|
import { P as Popup } from "./popup.taro-DV32k5dP.js";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
|
-
import { C as Cascader } from "./cascader.taro-
|
|
7
|
+
import { C as Cascader } from "./cascader.taro-DEApf0aF.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
const defaultProps$2 = {
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { Loading, Checklist } from "@nutui/icons-react-taro";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
6
|
import { P as Popup } from "./popup.taro-DV32k5dP.js";
|
|
7
|
-
import { T as Tabs } from "./tabs.taro-
|
|
7
|
+
import { T as Tabs } from "./tabs.taro-CY1VxgF-.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
@@ -4,10 +4,10 @@ import { Minus, Plus } from "@nutui/icons-react-taro";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
-
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, readOnly: false, allowEmpty: false, min: 1, max: 9999, type: "digit", step: 1, digits: 0, async: false });
|
|
7
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, readOnly: false, allowEmpty: false, min: 1, max: 9999, type: "digit", step: 1, digits: 0, async: false, select: true });
|
|
8
8
|
const classPrefix = `nut-inputnumber`;
|
|
9
9
|
const InputNumber = (props) => {
|
|
10
|
-
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, disabled, min, max, type, readOnly, value, defaultValue, allowEmpty, digits, step, async, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange } = _a, restProps = __rest(_a, ["children", "disabled", "min", "max", "type", "readOnly", "value", "defaultValue", "allowEmpty", "digits", "step", "async", "className", "style", "formatter", "onPlus", "onMinus", "onOverlimit", "onBlur", "onFocus", "onChange"]);
|
|
10
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, disabled, min, max, type, readOnly, value, defaultValue, allowEmpty, digits, step, async, select, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange } = _a, restProps = __rest(_a, ["children", "disabled", "min", "max", "type", "readOnly", "value", "defaultValue", "allowEmpty", "digits", "step", "async", "select", "className", "style", "formatter", "onPlus", "onMinus", "onOverlimit", "onBlur", "onFocus", "onChange"]);
|
|
11
11
|
const classes = classNames(classPrefix, className, {
|
|
12
12
|
[`${classPrefix}-disabled`]: disabled
|
|
13
13
|
});
|
|
@@ -15,10 +15,10 @@ const InputNumber = (props) => {
|
|
|
15
15
|
const inputRef = useRef(null);
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
var _a2, _b;
|
|
18
|
-
if (focused) {
|
|
18
|
+
if (select && focused) {
|
|
19
19
|
(_b = (_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.select) === null || _b === void 0 ? void 0 : _b.call(_a2);
|
|
20
20
|
}
|
|
21
|
-
}, [focused]);
|
|
21
|
+
}, [select, focused]);
|
|
22
22
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
23
23
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
24
24
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
@@ -23,18 +23,18 @@ import { S as S6 } from "./subsidenavbar.taro-CSU3DhNq.js";
|
|
|
23
23
|
import { T } from "./tabbar.taro-BiQDgZQF.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-BiIVucQz.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
26
|
+
import { T as T4 } from "./tabs.taro-CY1VxgF-.js";
|
|
27
|
+
import { A } from "./address.taro-CAikNvuu.js";
|
|
28
28
|
import { C as C5 } from "./calendar.taro-MkErd99P.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-BGbbuJOS.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-CvWyBqnr.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-DEApf0aF.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-CgqJyhrh.js";
|
|
33
33
|
import { D as D2 } from "./datepicker.taro-DibmSueg.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-CEWRz5EJ.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-CA9ZpM9a.js";
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-CZourWz-.js";
|
|
38
38
|
import { M } from "./menu.taro-BmjnA_YM.js";
|
|
39
39
|
import { M as M2 } from "./menuitem.taro-DCqPC4Nu.js";
|
|
40
40
|
import { N as N2 } from "./numberkeyboard.taro-CIlStObb.js";
|
|
@@ -118,10 +118,7 @@ const Tabs = (props) => {
|
|
|
118
118
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
119
119
|
} else {
|
|
120
120
|
const left = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
121
|
-
to =
|
|
122
|
-
if (to < 0)
|
|
123
|
-
return;
|
|
124
|
-
to = rtl ? -to : to;
|
|
121
|
+
to = rtl ? -left : left;
|
|
125
122
|
}
|
|
126
123
|
nextTick(() => {
|
|
127
124
|
scrollWithAnimation.current = true;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.
|
|
2
|
+
* @nutui/nutui-react-taro v2.7.0 Fri Nov 01 2024 16:04:37 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5358,9 +5358,7 @@ const Tabs = (props) => {
|
|
|
5358
5358
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
5359
5359
|
} else {
|
|
5360
5360
|
const left2 = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
5361
|
-
to =
|
|
5362
|
-
if (to < 0) return;
|
|
5363
|
-
to = rtl ? -to : to;
|
|
5361
|
+
to = rtl ? -left2 : left2;
|
|
5364
5362
|
}
|
|
5365
5363
|
nextTick(() => {
|
|
5366
5364
|
scrollWithAnimation.current = true;
|
|
@@ -10507,7 +10505,8 @@ const defaultProps$V = {
|
|
|
10507
10505
|
type: "digit",
|
|
10508
10506
|
step: 1,
|
|
10509
10507
|
digits: 0,
|
|
10510
|
-
async: false
|
|
10508
|
+
async: false,
|
|
10509
|
+
select: true
|
|
10511
10510
|
};
|
|
10512
10511
|
const classPrefix$h = `nut-inputnumber`;
|
|
10513
10512
|
const InputNumber = (props) => {
|
|
@@ -10524,6 +10523,7 @@ const InputNumber = (props) => {
|
|
|
10524
10523
|
digits,
|
|
10525
10524
|
step,
|
|
10526
10525
|
async,
|
|
10526
|
+
select,
|
|
10527
10527
|
className,
|
|
10528
10528
|
style,
|
|
10529
10529
|
formatter,
|
|
@@ -10545,10 +10545,10 @@ const InputNumber = (props) => {
|
|
|
10545
10545
|
const inputRef = useRef(null);
|
|
10546
10546
|
useEffect(() => {
|
|
10547
10547
|
var _a, _b;
|
|
10548
|
-
if (focused) {
|
|
10548
|
+
if (select && focused) {
|
|
10549
10549
|
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
10550
10550
|
}
|
|
10551
|
-
}, [focused]);
|
|
10551
|
+
}, [select, focused]);
|
|
10552
10552
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10553
10553
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10554
10554
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.
|
|
5
|
+
* @nutui/nutui-react-taro v2.7.0 Fri Nov 01 2024 16:04:37 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -5374,9 +5374,7 @@
|
|
|
5374
5374
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
5375
5375
|
} else {
|
|
5376
5376
|
const left2 = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
5377
|
-
to =
|
|
5378
|
-
if (to < 0) return;
|
|
5379
|
-
to = rtl ? -to : to;
|
|
5377
|
+
to = rtl ? -left2 : left2;
|
|
5380
5378
|
}
|
|
5381
5379
|
Taro.nextTick(() => {
|
|
5382
5380
|
scrollWithAnimation.current = true;
|
|
@@ -10523,7 +10521,8 @@
|
|
|
10523
10521
|
type: "digit",
|
|
10524
10522
|
step: 1,
|
|
10525
10523
|
digits: 0,
|
|
10526
|
-
async: false
|
|
10524
|
+
async: false,
|
|
10525
|
+
select: true
|
|
10527
10526
|
};
|
|
10528
10527
|
const classPrefix$h = `nut-inputnumber`;
|
|
10529
10528
|
const InputNumber = (props) => {
|
|
@@ -10540,6 +10539,7 @@
|
|
|
10540
10539
|
digits,
|
|
10541
10540
|
step,
|
|
10542
10541
|
async,
|
|
10542
|
+
select,
|
|
10543
10543
|
className,
|
|
10544
10544
|
style,
|
|
10545
10545
|
formatter,
|
|
@@ -10561,10 +10561,10 @@
|
|
|
10561
10561
|
const inputRef = React.useRef(null);
|
|
10562
10562
|
React.useEffect(() => {
|
|
10563
10563
|
var _a, _b;
|
|
10564
|
-
if (focused) {
|
|
10564
|
+
if (select && focused) {
|
|
10565
10565
|
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
10566
10566
|
}
|
|
10567
|
-
}, [focused]);
|
|
10567
|
+
}, [select, focused]);
|
|
10568
10568
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10569
10569
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10570
10570
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
@@ -49,13 +49,12 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&-vertical {
|
|
52
|
-
position: relative;
|
|
53
|
-
top: $divider-vertical-top;
|
|
54
52
|
display: inline-block;
|
|
55
53
|
width: auto;
|
|
56
54
|
height: $divider-vertical-height;
|
|
57
55
|
border-left: 1px solid $divider-border-color;
|
|
58
56
|
margin: $divider-vertical-margin;
|
|
57
|
+
vertical-align: middle;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|