@nutui/nutui-react-taro 3.0.12 → 3.0.13
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 -9
- package/dist/cjs/packages/address/style/address.scss +2 -2
- package/dist/cjs/packages/address/style/style.css +2 -2
- package/dist/cjs/packages/address/style/style.harmony.css +2 -2
- package/dist/cjs/packages/address/style-jmapp/address.scss +2 -2
- package/dist/cjs/packages/address/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/address/style-jrkf/address.scss +2 -2
- package/dist/cjs/packages/address/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/avatar/avatar.js +1 -1
- package/dist/cjs/packages/button/style/button.scss +3 -3
- package/dist/cjs/packages/button/style/style.css +3 -3
- package/dist/cjs/packages/button/style/style.harmony.css +3 -3
- package/dist/cjs/packages/button/style-jmapp/button.scss +3 -3
- package/dist/cjs/packages/button/style-jmapp/style.css +3 -3
- package/dist/cjs/packages/button/style-jrkf/button.scss +3 -3
- package/dist/cjs/packages/button/style-jrkf/style.css +3 -3
- package/dist/cjs/packages/collapseitem/style/collapseitem.scss +2 -2
- package/dist/cjs/packages/collapseitem/style/style.css +2 -2
- package/dist/cjs/packages/collapseitem/style/style.harmony.css +2 -2
- package/dist/cjs/packages/collapseitem/style-jmapp/collapseitem.scss +2 -2
- package/dist/cjs/packages/collapseitem/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/collapseitem/style-jrkf/collapseitem.scss +2 -2
- package/dist/cjs/packages/collapseitem/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style/style.css +1 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/loading/loading.js +0 -4
- package/dist/cjs/packages/lottie/lottiemp.js +7 -6
- package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +2 -2
- package/dist/cjs/packages/numberkeyboard/style/style.css +2 -2
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +2 -2
- package/dist/cjs/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -2
- package/dist/cjs/packages/numberkeyboard/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -2
- package/dist/cjs/packages/numberkeyboard/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/pagination/pagination.js +3 -3
- package/dist/cjs/packages/pickerview/pickerroller.js +3 -3
- package/dist/cjs/packages/price/style/price.scss +9 -0
- package/dist/cjs/packages/price/style/style.css +9 -0
- package/dist/cjs/packages/price/style/style.harmony.css +9 -0
- package/dist/cjs/packages/price/style-jmapp/price.scss +9 -0
- package/dist/cjs/packages/price/style-jmapp/style.css +9 -0
- package/dist/cjs/packages/price/style-jrkf/price.scss +9 -0
- package/dist/cjs/packages/price/style-jrkf/style.css +9 -0
- package/dist/cjs/packages/steps/style/steps.scss +1 -1
- package/dist/cjs/packages/steps/style/style.css +1 -1
- package/dist/cjs/packages/steps/style/style.harmony.css +1 -1
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +1 -1
- package/dist/cjs/packages/steps/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +1 -1
- package/dist/cjs/packages/steps/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/swiper/swiper.js +22 -21
- package/dist/cjs/packages/tabbaritem/style/style.css +4 -4
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +6 -6
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +4 -4
- package/dist/cjs/packages/tabbaritem/style-jmapp/style.css +4 -4
- package/dist/cjs/packages/tabbaritem/style-jmapp/tabbaritem.scss +4 -4
- package/dist/cjs/packages/tabbaritem/style-jrkf/style.css +4 -4
- package/dist/cjs/packages/tabbaritem/style-jrkf/tabbaritem.scss +4 -4
- package/dist/cjs/packages/tabs/style/style.css +2 -2
- package/dist/cjs/packages/tabs/style/style.harmony.css +2 -2
- package/dist/cjs/packages/tabs/style/tabs.scss +2 -2
- package/dist/cjs/packages/tabs/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +2 -2
- package/dist/cjs/packages/tabs/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +2 -2
- package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
- package/dist/cjs/packages/textarea/textarea.js +27 -8
- package/dist/cjs/packages/toast/style/style.css +2 -2
- package/dist/cjs/packages/toast/style/style.harmony.css +2 -2
- package/dist/cjs/packages/toast/style/toast.scss +2 -2
- package/dist/cjs/packages/toast/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -2
- package/dist/cjs/packages/toast/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -2
- package/dist/cjs/packages/uploader/style/style.css +1 -0
- package/dist/cjs/packages/uploader/style/style.harmony.css +1 -0
- package/dist/cjs/packages/uploader/style/uploader.scss +1 -0
- package/dist/cjs/packages/uploader/style-jmapp/style.css +1 -0
- package/dist/cjs/packages/uploader/style-jmapp/uploader.scss +1 -0
- package/dist/cjs/packages/uploader/style-jrkf/style.css +1 -0
- package/dist/cjs/packages/uploader/style-jrkf/uploader.scss +1 -0
- package/dist/cjs/types/spec/lottie/taro.d.ts +1 -0
- package/dist/cjs/types/spec/swiper/base.d.ts +4 -0
- package/dist/cjs/types/spec/swiper/taro.d.ts +4 -0
- package/dist/cjs/utils/index.d.ts +0 -1
- package/dist/cjs/utils/index.js +0 -1
- package/dist/cjs/utils/taro/platform.d.ts +1 -0
- package/dist/cjs/utils/taro/platform.js +8 -0
- package/dist/cjs/utils/taro/px-transform.js +1 -1
- package/dist/es/packages/address/style/address.scss +2 -2
- package/dist/es/packages/address/style/style.css +2 -2
- package/dist/es/packages/address/style/style.harmony.css +2 -2
- package/dist/es/packages/address/style-jmapp/address.scss +2 -2
- package/dist/es/packages/address/style-jmapp/style.css +2 -2
- package/dist/es/packages/address/style-jrkf/address.scss +2 -2
- package/dist/es/packages/address/style-jrkf/style.css +2 -2
- package/dist/es/packages/avatar/avatar.js +2 -2
- package/dist/es/packages/button/style/button.scss +3 -3
- package/dist/es/packages/button/style/style.css +3 -3
- package/dist/es/packages/button/style/style.harmony.css +3 -3
- package/dist/es/packages/button/style-jmapp/button.scss +3 -3
- package/dist/es/packages/button/style-jmapp/style.css +3 -3
- package/dist/es/packages/button/style-jrkf/button.scss +3 -3
- package/dist/es/packages/button/style-jrkf/style.css +3 -3
- package/dist/es/packages/collapseitem/style/collapseitem.scss +2 -2
- package/dist/es/packages/collapseitem/style/style.css +2 -2
- package/dist/es/packages/collapseitem/style/style.harmony.css +2 -2
- package/dist/es/packages/collapseitem/style-jmapp/collapseitem.scss +2 -2
- package/dist/es/packages/collapseitem/style-jmapp/style.css +2 -2
- package/dist/es/packages/collapseitem/style-jrkf/collapseitem.scss +2 -2
- package/dist/es/packages/collapseitem/style-jrkf/style.css +2 -2
- package/dist/es/packages/dialog/style/dialog.scss +1 -1
- package/dist/es/packages/dialog/style/style.css +1 -1
- package/dist/es/packages/dialog/style/style.harmony.css +1 -1
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/es/packages/loading/loading.js +0 -4
- package/dist/es/packages/lottie/lottiemp.js +7 -6
- package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +2 -2
- package/dist/es/packages/numberkeyboard/style/style.css +2 -2
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +2 -2
- package/dist/es/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -2
- package/dist/es/packages/numberkeyboard/style-jmapp/style.css +2 -2
- package/dist/es/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -2
- package/dist/es/packages/numberkeyboard/style-jrkf/style.css +2 -2
- package/dist/es/packages/pagination/pagination.js +4 -4
- package/dist/es/packages/pickerview/pickerroller.js +3 -3
- package/dist/es/packages/price/style/price.scss +9 -0
- package/dist/es/packages/price/style/style.css +9 -0
- package/dist/es/packages/price/style/style.harmony.css +9 -0
- package/dist/es/packages/price/style-jmapp/price.scss +9 -0
- package/dist/es/packages/price/style-jmapp/style.css +9 -0
- package/dist/es/packages/price/style-jrkf/price.scss +9 -0
- package/dist/es/packages/price/style-jrkf/style.css +9 -0
- package/dist/es/packages/steps/style/steps.scss +1 -1
- package/dist/es/packages/steps/style/style.css +1 -1
- package/dist/es/packages/steps/style/style.harmony.css +1 -1
- package/dist/es/packages/steps/style-jmapp/steps.scss +1 -1
- package/dist/es/packages/steps/style-jmapp/style.css +1 -1
- package/dist/es/packages/steps/style-jrkf/steps.scss +1 -1
- package/dist/es/packages/steps/style-jrkf/style.css +1 -1
- package/dist/es/packages/swiper/swiper.js +23 -22
- package/dist/es/packages/tabbaritem/style/style.css +4 -4
- package/dist/es/packages/tabbaritem/style/style.harmony.css +6 -6
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +4 -4
- package/dist/es/packages/tabbaritem/style-jmapp/style.css +4 -4
- package/dist/es/packages/tabbaritem/style-jmapp/tabbaritem.scss +4 -4
- package/dist/es/packages/tabbaritem/style-jrkf/style.css +4 -4
- package/dist/es/packages/tabbaritem/style-jrkf/tabbaritem.scss +4 -4
- package/dist/es/packages/tabs/style/style.css +2 -2
- package/dist/es/packages/tabs/style/style.harmony.css +2 -2
- package/dist/es/packages/tabs/style/tabs.scss +2 -2
- package/dist/es/packages/tabs/style-jmapp/style.css +2 -2
- package/dist/es/packages/tabs/style-jmapp/tabs.scss +2 -2
- package/dist/es/packages/tabs/style-jrkf/style.css +2 -2
- package/dist/es/packages/tabs/style-jrkf/tabs.scss +2 -2
- package/dist/es/packages/textarea/textarea.d.ts +2 -2
- package/dist/es/packages/textarea/textarea.js +28 -9
- package/dist/es/packages/toast/style/style.css +2 -2
- package/dist/es/packages/toast/style/style.harmony.css +2 -2
- package/dist/es/packages/toast/style/toast.scss +2 -2
- package/dist/es/packages/toast/style-jmapp/style.css +2 -2
- package/dist/es/packages/toast/style-jmapp/toast.scss +2 -2
- package/dist/es/packages/toast/style-jrkf/style.css +2 -2
- package/dist/es/packages/toast/style-jrkf/toast.scss +2 -2
- package/dist/es/packages/uploader/style/style.css +1 -0
- package/dist/es/packages/uploader/style/style.harmony.css +1 -0
- package/dist/es/packages/uploader/style/uploader.scss +1 -0
- package/dist/es/packages/uploader/style-jmapp/style.css +1 -0
- package/dist/es/packages/uploader/style-jmapp/uploader.scss +1 -0
- package/dist/es/packages/uploader/style-jrkf/style.css +1 -0
- package/dist/es/packages/uploader/style-jrkf/uploader.scss +1 -0
- package/dist/es/types/spec/input/base.d.ts +4 -1
- package/dist/es/types/spec/lottie/taro.d.ts +1 -0
- package/dist/es/types/spec/swiper/base.d.ts +5 -1
- package/dist/es/types/spec/swiper/taro.d.ts +4 -0
- package/dist/es/utils/index.d.ts +0 -1
- package/dist/es/utils/index.js +0 -1
- package/dist/es/utils/taro/platform.d.ts +1 -0
- package/dist/es/utils/taro/platform.js +5 -0
- package/dist/es/utils/taro/px-transform.js +3 -2
- package/dist/nutui.react.umd.js +72 -139
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +38 -38
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +35 -35
- package/dist/style.css +1 -1
- package/dist/style.scss +37 -37
- package/package.json +1 -1
- package/dist/cjs/utils/camel-case.d.ts +0 -1
- package/dist/cjs/utils/camel-case.js +0 -106
- package/dist/es/utils/camel-case.d.ts +0 -1
- package/dist/es/utils/camel-case.js +0 -96
|
@@ -3,7 +3,7 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
5
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
6
|
-
import React, { Children,
|
|
6
|
+
import React, { Children, useImperativeHandle, useMemo, useState } from "react";
|
|
7
7
|
import { Swiper as TaroSwiper, SwiperItem as TSwiperItem, View } from "@tarojs/components";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import Indicator from "../indicator/index";
|
|
@@ -12,27 +12,33 @@ var defaultProps = {
|
|
|
12
12
|
direction: 'horizontal',
|
|
13
13
|
indicator: false,
|
|
14
14
|
autoPlay: false,
|
|
15
|
+
autoplay: false,
|
|
15
16
|
loop: false,
|
|
16
17
|
defaultValue: 0,
|
|
17
18
|
style: {}
|
|
18
19
|
};
|
|
19
20
|
var classPrefix = 'nut-swiper';
|
|
20
21
|
export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
21
|
-
var _ref = _object_spread({}, defaultProps, props), width = _ref.width, height = _ref.height, className = _ref.className, children = _ref.children, indicator = _ref.indicator, loop = _ref.loop, autoPlay = _ref.autoPlay, duration = _ref.duration, direction = _ref.direction, defaultValue = _ref.defaultValue, onChange = _ref.onChange, style = _ref.style, rest = _object_without_properties(_ref, [
|
|
22
|
+
var _ref = _object_spread({}, defaultProps, props), width = _ref.width, height = _ref.height, className = _ref.className, children = _ref.children, indicator = _ref.indicator, indicatorDots = _ref.indicatorDots, loop = _ref.loop, circular = _ref.circular, autoPlay = _ref.autoPlay, autoplay = _ref.autoplay, duration = _ref.duration, vertical = _ref.vertical, direction = _ref.direction, defaultValue = _ref.defaultValue, current = _ref.current, onChange = _ref.onChange, style = _ref.style, rest = _object_without_properties(_ref, [
|
|
22
23
|
"width",
|
|
23
24
|
"height",
|
|
24
25
|
"className",
|
|
25
26
|
"children",
|
|
26
27
|
"indicator",
|
|
28
|
+
"indicatorDots",
|
|
27
29
|
"loop",
|
|
30
|
+
"circular",
|
|
28
31
|
"autoPlay",
|
|
32
|
+
"autoplay",
|
|
29
33
|
"duration",
|
|
34
|
+
"vertical",
|
|
30
35
|
"direction",
|
|
31
36
|
"defaultValue",
|
|
37
|
+
"current",
|
|
32
38
|
"onChange",
|
|
33
39
|
"style"
|
|
34
40
|
]);
|
|
35
|
-
var _useState = _sliced_to_array(useState(defaultValue), 2),
|
|
41
|
+
var _useState = _sliced_to_array(useState(current || defaultValue), 2), innerValue = _useState[0], setInnerValue = _useState[1];
|
|
36
42
|
var childrenCount = useMemo(function() {
|
|
37
43
|
var c = 0;
|
|
38
44
|
React.Children.map(children, function(child, index) {
|
|
@@ -42,47 +48,42 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
42
48
|
}, [
|
|
43
49
|
children
|
|
44
50
|
]);
|
|
45
|
-
useEffect(function() {
|
|
46
|
-
setCurrent(defaultValue);
|
|
47
|
-
}, [
|
|
48
|
-
defaultValue
|
|
49
|
-
]);
|
|
50
51
|
var renderIndicator = function() {
|
|
51
52
|
if (/*#__PURE__*/ React.isValidElement(indicator)) return indicator;
|
|
52
|
-
if (indicator) {
|
|
53
|
+
if (indicator || indicatorDots) {
|
|
53
54
|
var _obj;
|
|
54
55
|
return /*#__PURE__*/ React.createElement(View, {
|
|
55
|
-
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-indicator"), true), _define_property(_obj, "".concat(classPrefix, "-indicator-vertical"), direction === 'vertical'), _obj))
|
|
56
|
+
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-indicator"), true), _define_property(_obj, "".concat(classPrefix, "-indicator-vertical"), direction === 'vertical' || vertical), _obj))
|
|
56
57
|
}, /*#__PURE__*/ React.createElement(Indicator, {
|
|
57
|
-
current:
|
|
58
|
+
current: innerValue,
|
|
58
59
|
total: childrenCount,
|
|
59
|
-
direction: direction
|
|
60
|
+
direction: vertical ? 'vertical' : direction
|
|
60
61
|
}));
|
|
61
62
|
}
|
|
62
63
|
return null;
|
|
63
64
|
};
|
|
64
65
|
var handleOnChange = function(value) {
|
|
65
|
-
|
|
66
|
+
setInnerValue(value.detail.current);
|
|
66
67
|
};
|
|
67
68
|
useImperativeHandle(ref, function() {
|
|
68
69
|
return {
|
|
69
70
|
to: function(value) {
|
|
70
|
-
|
|
71
|
+
setInnerValue(value);
|
|
71
72
|
},
|
|
72
73
|
next: function() {
|
|
73
74
|
if (loop) {
|
|
74
|
-
|
|
75
|
+
setInnerValue((innerValue + 1) % childrenCount);
|
|
75
76
|
} else {
|
|
76
|
-
|
|
77
|
+
setInnerValue(innerValue + 1 >= childrenCount ? innerValue : innerValue + 1);
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
prev: function() {
|
|
80
81
|
if (loop) {
|
|
81
|
-
var next =
|
|
82
|
+
var next = innerValue - 1;
|
|
82
83
|
next = next < 0 ? childrenCount + next : next;
|
|
83
|
-
|
|
84
|
+
setInnerValue(next % childrenCount);
|
|
84
85
|
} else {
|
|
85
|
-
|
|
86
|
+
setInnerValue(innerValue - 1 <= 0 ? 0 : innerValue - 1);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
};
|
|
@@ -100,10 +101,10 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
100
101
|
height: !height ? pxTransform(150) : height
|
|
101
102
|
}
|
|
102
103
|
}, /*#__PURE__*/ React.createElement(TaroSwiper, _object_spread({
|
|
103
|
-
current:
|
|
104
|
+
current: innerValue,
|
|
104
105
|
circular: loop,
|
|
105
|
-
autoplay: autoPlay,
|
|
106
|
-
vertical: direction === 'vertical',
|
|
106
|
+
autoplay: autoplay || autoPlay,
|
|
107
|
+
vertical: direction === 'vertical' || vertical,
|
|
107
108
|
indicatorDots: false,
|
|
108
109
|
onChange: function(e) {
|
|
109
110
|
var _props_onChange;
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
width: 24px;
|
|
16
16
|
height: 24px;
|
|
17
17
|
font-size: 24px;
|
|
18
|
-
/* #ifdef harmony*/
|
|
18
|
+
/* #ifdef harmony dynamic*/
|
|
19
19
|
color: var(--nutui-tabbar-inactive-color, var(--nutui-color-title, #1a1a1a));
|
|
20
20
|
/* #endif*/
|
|
21
|
-
/* #ifndef harmony*/
|
|
21
|
+
/* #ifndef harmony dynamic*/
|
|
22
22
|
color: inherit;
|
|
23
23
|
/* #endif*/
|
|
24
24
|
}
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
.nut-tabbar-item-active .nut-tabbar-item-text,
|
|
51
51
|
.nut-tabbar-item-active .nut-icon {
|
|
52
|
-
/* #ifdef harmony*/
|
|
52
|
+
/* #ifdef harmony dynamic*/
|
|
53
53
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
54
54
|
/* #endif*/
|
|
55
|
-
/* #ifndef harmony*/
|
|
55
|
+
/* #ifndef harmony dynamic*/
|
|
56
56
|
color: inherit;
|
|
57
57
|
/* #endif*/
|
|
58
58
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
width: 24px;
|
|
16
16
|
height: 24px;
|
|
17
17
|
font-size: 24px;
|
|
18
|
-
/* #ifdef harmony*/
|
|
18
|
+
/* #ifdef harmony dynamic*/
|
|
19
19
|
color: #1a1a1a;
|
|
20
20
|
/* #endif*/
|
|
21
|
-
/* #ifndef harmony*/
|
|
21
|
+
/* #ifndef harmony dynamic*/
|
|
22
22
|
color: inherit;
|
|
23
23
|
/* #endif*/
|
|
24
24
|
}
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
color: #ff0f23;
|
|
49
49
|
}
|
|
50
50
|
.nut-tabbar-item-active .nut-tabbar-item-text {
|
|
51
|
-
/* #ifdef harmony*/
|
|
51
|
+
/* #ifdef harmony dynamic*/
|
|
52
52
|
color: #ff0f23;
|
|
53
53
|
/* #endif*/
|
|
54
|
-
/* #ifndef harmony*/
|
|
54
|
+
/* #ifndef harmony dynamic*/
|
|
55
55
|
color: inherit;
|
|
56
56
|
/* #endif*/
|
|
57
57
|
}
|
|
58
58
|
.nut-tabbar-item-active .nut-icon {
|
|
59
|
-
/* #ifdef harmony*/
|
|
59
|
+
/* #ifdef harmony dynamic*/
|
|
60
60
|
color: #ff0f23;
|
|
61
61
|
/* #endif*/
|
|
62
|
-
/* #ifndef harmony*/
|
|
62
|
+
/* #ifndef harmony dynamic*/
|
|
63
63
|
color: inherit;
|
|
64
64
|
/* #endif*/
|
|
65
65
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
width: 24px;
|
|
12
12
|
height: 24px;
|
|
13
13
|
font-size: 24px;
|
|
14
|
-
/* #ifdef harmony*/
|
|
14
|
+
/* #ifdef harmony dynamic*/
|
|
15
15
|
color: $tabbar-inactive-color;
|
|
16
16
|
/* #endif*/
|
|
17
|
-
/* #ifndef harmony*/
|
|
17
|
+
/* #ifndef harmony dynamic*/
|
|
18
18
|
color: inherit;
|
|
19
19
|
/* #endif*/
|
|
20
20
|
}
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
|
|
53
53
|
.nut-tabbar-item-text,
|
|
54
54
|
.nut-icon {
|
|
55
|
-
/* #ifdef harmony*/
|
|
55
|
+
/* #ifdef harmony dynamic*/
|
|
56
56
|
color: $tabbar-active-color;
|
|
57
57
|
/* #endif*/
|
|
58
|
-
/* #ifndef harmony*/
|
|
58
|
+
/* #ifndef harmony dynamic*/
|
|
59
59
|
color: inherit;
|
|
60
60
|
/* #endif*/
|
|
61
61
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
width: 24px;
|
|
16
16
|
height: 24px;
|
|
17
17
|
font-size: 24px;
|
|
18
|
-
/* #ifdef harmony*/
|
|
18
|
+
/* #ifdef harmony dynamic*/
|
|
19
19
|
color: var(--nutui-tabbar-inactive-color, var(--nutui-color-text));
|
|
20
20
|
/* #endif*/
|
|
21
|
-
/* #ifndef harmony*/
|
|
21
|
+
/* #ifndef harmony dynamic*/
|
|
22
22
|
color: inherit;
|
|
23
23
|
/* #endif*/
|
|
24
24
|
}
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
.nut-tabbar-item-active .nut-tabbar-item-text,
|
|
51
51
|
.nut-tabbar-item-active .nut-icon {
|
|
52
|
-
/* #ifdef harmony*/
|
|
52
|
+
/* #ifdef harmony dynamic*/
|
|
53
53
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary));
|
|
54
54
|
/* #endif*/
|
|
55
|
-
/* #ifndef harmony*/
|
|
55
|
+
/* #ifndef harmony dynamic*/
|
|
56
56
|
color: inherit;
|
|
57
57
|
/* #endif*/
|
|
58
58
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
width: 24px;
|
|
12
12
|
height: 24px;
|
|
13
13
|
font-size: 24px;
|
|
14
|
-
/* #ifdef harmony*/
|
|
14
|
+
/* #ifdef harmony dynamic*/
|
|
15
15
|
color: $tabbar-inactive-color;
|
|
16
16
|
/* #endif*/
|
|
17
|
-
/* #ifndef harmony*/
|
|
17
|
+
/* #ifndef harmony dynamic*/
|
|
18
18
|
color: inherit;
|
|
19
19
|
/* #endif*/
|
|
20
20
|
}
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
|
|
53
53
|
.nut-tabbar-item-text,
|
|
54
54
|
.nut-icon {
|
|
55
|
-
/* #ifdef harmony*/
|
|
55
|
+
/* #ifdef harmony dynamic*/
|
|
56
56
|
color: $tabbar-active-color;
|
|
57
57
|
/* #endif*/
|
|
58
|
-
/* #ifndef harmony*/
|
|
58
|
+
/* #ifndef harmony dynamic*/
|
|
59
59
|
color: inherit;
|
|
60
60
|
/* #endif*/
|
|
61
61
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
width: 24px;
|
|
16
16
|
height: 24px;
|
|
17
17
|
font-size: 24px;
|
|
18
|
-
/* #ifdef harmony*/
|
|
18
|
+
/* #ifdef harmony dynamic*/
|
|
19
19
|
color: var(--nutui-tabbar-inactive-color, var(--nutui-color-text));
|
|
20
20
|
/* #endif*/
|
|
21
|
-
/* #ifndef harmony*/
|
|
21
|
+
/* #ifndef harmony dynamic*/
|
|
22
22
|
color: inherit;
|
|
23
23
|
/* #endif*/
|
|
24
24
|
}
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
.nut-tabbar-item-active .nut-tabbar-item-text,
|
|
51
51
|
.nut-tabbar-item-active .nut-icon {
|
|
52
|
-
/* #ifdef harmony*/
|
|
52
|
+
/* #ifdef harmony dynamic*/
|
|
53
53
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff6666));
|
|
54
54
|
/* #endif*/
|
|
55
|
-
/* #ifndef harmony*/
|
|
55
|
+
/* #ifndef harmony dynamic*/
|
|
56
56
|
color: inherit;
|
|
57
57
|
/* #endif*/
|
|
58
58
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
width: 24px;
|
|
12
12
|
height: 24px;
|
|
13
13
|
font-size: 24px;
|
|
14
|
-
/* #ifdef harmony*/
|
|
14
|
+
/* #ifdef harmony dynamic*/
|
|
15
15
|
color: $tabbar-inactive-color;
|
|
16
16
|
/* #endif*/
|
|
17
|
-
/* #ifndef harmony*/
|
|
17
|
+
/* #ifndef harmony dynamic*/
|
|
18
18
|
color: inherit;
|
|
19
19
|
/* #endif*/
|
|
20
20
|
}
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
|
|
53
53
|
.nut-tabbar-item-text,
|
|
54
54
|
.nut-icon {
|
|
55
|
-
/* #ifdef harmony*/
|
|
55
|
+
/* #ifdef harmony dynamic*/
|
|
56
56
|
color: $tabbar-active-color;
|
|
57
57
|
/* #endif*/
|
|
58
|
-
/* #ifndef harmony*/
|
|
58
|
+
/* #ifndef harmony dynamic*/
|
|
59
59
|
color: inherit;
|
|
60
60
|
/* #endif*/
|
|
61
61
|
}
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
|
|
171
171
|
.nut-tabs-vertical .nut-tabs-ellipsis {
|
|
172
172
|
white-space: break-spaces;
|
|
173
|
-
/* #ifdef harmony */
|
|
173
|
+
/* #ifdef harmony dynamic*/
|
|
174
174
|
padding-left: 12px;
|
|
175
175
|
/* #endif */
|
|
176
|
-
/* #ifndef harmony */
|
|
176
|
+
/* #ifndef harmony dynamic*/
|
|
177
177
|
padding-left: 6px;
|
|
178
178
|
/* #endif */
|
|
179
179
|
width: 90px;
|
|
@@ -186,10 +186,10 @@
|
|
|
186
186
|
|
|
187
187
|
.nut-tabs-vertical .nut-tabs-ellipsis {
|
|
188
188
|
white-space: break-spaces;
|
|
189
|
-
/* #ifdef harmony */
|
|
189
|
+
/* #ifdef harmony dynamic*/
|
|
190
190
|
padding-left: 12px;
|
|
191
191
|
/* #endif */
|
|
192
|
-
/* #ifndef harmony */
|
|
192
|
+
/* #ifndef harmony dynamic*/
|
|
193
193
|
padding-left: 6px;
|
|
194
194
|
/* #endif */
|
|
195
195
|
width: 90px;
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
.nut-tabs-vertical {
|
|
214
214
|
.nut-tabs-ellipsis {
|
|
215
215
|
white-space: break-spaces;
|
|
216
|
-
/* #ifdef harmony */
|
|
216
|
+
/* #ifdef harmony dynamic*/
|
|
217
217
|
padding-left: 12px;
|
|
218
218
|
/* #endif */
|
|
219
|
-
/* #ifndef harmony */
|
|
219
|
+
/* #ifndef harmony dynamic*/
|
|
220
220
|
padding-left: 6px;
|
|
221
221
|
/* #endif */
|
|
222
222
|
width: 90px;
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
|
|
171
171
|
.nut-tabs-vertical .nut-tabs-ellipsis {
|
|
172
172
|
white-space: break-spaces;
|
|
173
|
-
/* #ifdef harmony */
|
|
173
|
+
/* #ifdef harmony dynamic*/
|
|
174
174
|
padding-left: 12px;
|
|
175
175
|
/* #endif */
|
|
176
|
-
/* #ifndef harmony */
|
|
176
|
+
/* #ifndef harmony dynamic*/
|
|
177
177
|
padding-left: 6px;
|
|
178
178
|
/* #endif */
|
|
179
179
|
width: 90px;
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
.nut-tabs-vertical {
|
|
214
214
|
.nut-tabs-ellipsis {
|
|
215
215
|
white-space: break-spaces;
|
|
216
|
-
/* #ifdef harmony */
|
|
216
|
+
/* #ifdef harmony dynamic*/
|
|
217
217
|
padding-left: 12px;
|
|
218
218
|
/* #endif */
|
|
219
|
-
/* #ifndef harmony */
|
|
219
|
+
/* #ifndef harmony dynamic*/
|
|
220
220
|
padding-left: 6px;
|
|
221
221
|
/* #endif */
|
|
222
222
|
width: 90px;
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
|
|
171
171
|
.nut-tabs-vertical .nut-tabs-ellipsis {
|
|
172
172
|
white-space: break-spaces;
|
|
173
|
-
/* #ifdef harmony */
|
|
173
|
+
/* #ifdef harmony dynamic*/
|
|
174
174
|
padding-left: 12px;
|
|
175
175
|
/* #endif */
|
|
176
|
-
/* #ifndef harmony */
|
|
176
|
+
/* #ifndef harmony dynamic*/
|
|
177
177
|
padding-left: 6px;
|
|
178
178
|
/* #endif */
|
|
179
179
|
width: 90px;
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
.nut-tabs-vertical {
|
|
214
214
|
.nut-tabs-ellipsis {
|
|
215
215
|
white-space: break-spaces;
|
|
216
|
-
/* #ifdef harmony */
|
|
216
|
+
/* #ifdef harmony dynamic*/
|
|
217
217
|
padding-left: 12px;
|
|
218
218
|
/* #endif */
|
|
219
|
-
/* #ifndef harmony */
|
|
219
|
+
/* #ifndef harmony dynamic*/
|
|
220
220
|
padding-left: 6px;
|
|
221
221
|
/* #endif */
|
|
222
222
|
width: 90px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TaroTextAreaProps } from "../../types";
|
|
3
|
-
export declare const TextArea:
|
|
3
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<Partial<TaroTextAreaProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -3,7 +3,7 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
5
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
6
|
-
import React, { useRef } from "react";
|
|
6
|
+
import React, { forwardRef, useRef, useImperativeHandle } from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import Taro from "@tarojs/taro";
|
|
9
9
|
import { Textarea, View } from "@tarojs/components";
|
|
@@ -14,14 +14,13 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
14
14
|
defaultValue: '',
|
|
15
15
|
showCount: false,
|
|
16
16
|
maxLength: 140,
|
|
17
|
-
placeholder: '',
|
|
18
17
|
readOnly: false,
|
|
19
18
|
disabled: false,
|
|
20
19
|
autoSize: false,
|
|
21
20
|
plain: false,
|
|
22
21
|
status: 'default'
|
|
23
22
|
});
|
|
24
|
-
export var TextArea = function(props) {
|
|
23
|
+
export var TextArea = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
25
24
|
var locale = useConfig().locale;
|
|
26
25
|
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, value = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
|
|
27
26
|
"className",
|
|
@@ -55,15 +54,16 @@ export var TextArea = function(props) {
|
|
|
55
54
|
defaultValue: defaultValue,
|
|
56
55
|
finalValue: format(defaultValue),
|
|
57
56
|
onChange: onChange
|
|
58
|
-
}), 2),
|
|
57
|
+
}), 2), innerValue = _usePropsValue[0], setInnerValue = _usePropsValue[1];
|
|
58
|
+
var textareaRef = useRef(null);
|
|
59
59
|
var handleChange = function(event) {
|
|
60
60
|
var _event_detail;
|
|
61
61
|
var text = event === null || event === void 0 ? void 0 : (_event_detail = event.detail) === null || _event_detail === void 0 ? void 0 : _event_detail.value;
|
|
62
62
|
if (text) {
|
|
63
63
|
var value = compositionRef.current ? text : format(text);
|
|
64
|
-
|
|
64
|
+
setInnerValue(value);
|
|
65
65
|
} else {
|
|
66
|
-
|
|
66
|
+
setInnerValue('');
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
var isDisabled = function() {
|
|
@@ -77,10 +77,29 @@ export var TextArea = function(props) {
|
|
|
77
77
|
if (isDisabled()) return;
|
|
78
78
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
79
79
|
};
|
|
80
|
+
useImperativeHandle(ref, function() {
|
|
81
|
+
return {
|
|
82
|
+
clear: function() {
|
|
83
|
+
setInnerValue('');
|
|
84
|
+
},
|
|
85
|
+
focus: function() {
|
|
86
|
+
var _textareaRef_current;
|
|
87
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.focus();
|
|
88
|
+
},
|
|
89
|
+
blur: function() {
|
|
90
|
+
var _textareaRef_current;
|
|
91
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.blur();
|
|
92
|
+
},
|
|
93
|
+
get nativeElement () {
|
|
94
|
+
return textareaRef.current;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
});
|
|
80
98
|
var _obj;
|
|
81
99
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(View, {
|
|
82
100
|
className: classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix, "-plain"), plain), _define_property(_obj, "".concat(classPrefix, "-container"), !plain), _define_property(_obj, "".concat(classPrefix, "-").concat(status), status), _obj), className)
|
|
83
101
|
}, /*#__PURE__*/ React.createElement(Textarea, _object_spread_props(_object_spread({}, rest), {
|
|
102
|
+
ref: textareaRef,
|
|
84
103
|
nativeProps: {
|
|
85
104
|
style: style,
|
|
86
105
|
readOnly: readOnly,
|
|
@@ -96,7 +115,7 @@ export var TextArea = function(props) {
|
|
|
96
115
|
style: Taro.getEnv() === 'WEB' ? undefined : style,
|
|
97
116
|
disabled: Taro.getEnv() === 'WEB' ? disabled : disabled || readOnly,
|
|
98
117
|
// @ts-ignore
|
|
99
|
-
value:
|
|
118
|
+
value: innerValue,
|
|
100
119
|
onInput: handleChange,
|
|
101
120
|
onBlur: handleBlur,
|
|
102
121
|
onFocus: handleFocus,
|
|
@@ -105,6 +124,6 @@ export var TextArea = function(props) {
|
|
|
105
124
|
placeholder: placeholder !== undefined ? placeholder : locale.placeholder
|
|
106
125
|
})), showCount && /*#__PURE__*/ React.createElement(View, {
|
|
107
126
|
className: classNames("".concat(classPrefix, "-limit"), _define_property({}, "".concat(classPrefix, "-limit-disabled"), disabled))
|
|
108
|
-
},
|
|
109
|
-
};
|
|
127
|
+
}, innerValue.length, "/", maxLength < 0 ? 0 : maxLength)));
|
|
128
|
+
});
|
|
110
129
|
TextArea.displayName = 'NutTextArea';
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
28
28
|
}
|
|
29
29
|
.nut-toast-overlay-default-taro {
|
|
30
|
-
/* #ifdef harmony */
|
|
30
|
+
/* #ifdef harmony dynamic*/
|
|
31
31
|
background-color: rgba(0, 0, 0, 0);
|
|
32
32
|
/* #endif */
|
|
33
|
-
/* #ifndef harmony */
|
|
33
|
+
/* #ifndef harmony dynamic*/
|
|
34
34
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
35
35
|
/* #endif */
|
|
36
36
|
}
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
z-index: 1300;
|
|
25
25
|
}
|
|
26
26
|
.nut-toast-overlay-default-taro {
|
|
27
|
-
/* #ifdef harmony */
|
|
27
|
+
/* #ifdef harmony dynamic*/
|
|
28
28
|
background-color: rgba(0, 0, 0, 0);
|
|
29
29
|
/* #endif */
|
|
30
|
-
/* #ifndef harmony */
|
|
30
|
+
/* #ifndef harmony dynamic*/
|
|
31
31
|
/* #endif */
|
|
32
32
|
}
|
|
33
33
|
.nut-toast-inner {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&-overlay-default-taro {
|
|
29
|
-
/* #ifdef harmony */
|
|
29
|
+
/* #ifdef harmony dynamic*/
|
|
30
30
|
background-color: rgba(0, 0, 0, 0);
|
|
31
31
|
/* #endif */
|
|
32
|
-
/* #ifndef harmony */
|
|
32
|
+
/* #ifndef harmony dynamic*/
|
|
33
33
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
34
34
|
/* #endif */
|
|
35
35
|
}
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
28
28
|
}
|
|
29
29
|
.nut-toast-overlay-default-taro {
|
|
30
|
-
/* #ifdef harmony */
|
|
30
|
+
/* #ifdef harmony dynamic*/
|
|
31
31
|
background-color: rgba(0, 0, 0, 0);
|
|
32
32
|
/* #endif */
|
|
33
|
-
/* #ifndef harmony */
|
|
33
|
+
/* #ifndef harmony dynamic*/
|
|
34
34
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
35
35
|
/* #endif */
|
|
36
36
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&-overlay-default-taro {
|
|
29
|
-
/* #ifdef harmony */
|
|
29
|
+
/* #ifdef harmony dynamic*/
|
|
30
30
|
background-color: rgba(0, 0, 0, 0);
|
|
31
31
|
/* #endif */
|
|
32
|
-
/* #ifndef harmony */
|
|
32
|
+
/* #ifndef harmony dynamic*/
|
|
33
33
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
34
34
|
/* #endif */
|
|
35
35
|
}
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
28
28
|
}
|
|
29
29
|
.nut-toast-overlay-default-taro {
|
|
30
|
-
/* #ifdef harmony */
|
|
30
|
+
/* #ifdef harmony dynamic*/
|
|
31
31
|
background-color: rgba(0, 0, 0, 0);
|
|
32
32
|
/* #endif */
|
|
33
|
-
/* #ifndef harmony */
|
|
33
|
+
/* #ifndef harmony dynamic*/
|
|
34
34
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
35
35
|
/* #endif */
|
|
36
36
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&-overlay-default-taro {
|
|
29
|
-
/* #ifdef harmony */
|
|
29
|
+
/* #ifdef harmony dynamic*/
|
|
30
30
|
background-color: rgba(0, 0, 0, 0);
|
|
31
31
|
/* #endif */
|
|
32
|
-
/* #ifndef harmony */
|
|
32
|
+
/* #ifndef harmony dynamic*/
|
|
33
33
|
--nutui-overlay-bg-color: rgba(0, 0, 0, 0);
|
|
34
34
|
/* #endif */
|
|
35
35
|
}
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
height: 100%;
|
|
78
78
|
background: var(--nutui-uploader-preview-progress-background, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
79
79
|
border-radius: var(--nutui-uploader-image-border-radius, 4px);
|
|
80
|
+
z-index: 10;
|
|
80
81
|
}
|
|
81
82
|
.nut-uploader-preview-progress i {
|
|
82
83
|
margin-bottom: var(--nutui-uploader-image-icon-margin-bottom, 6px);
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
height: 100%;
|
|
78
78
|
background: var(--nutui-uploader-preview-progress-background, var(--nutui-color-surface-overlay));
|
|
79
79
|
border-radius: var(--nutui-uploader-image-border-radius, var(--nutui-radius-xs));
|
|
80
|
+
z-index: 10;
|
|
80
81
|
}
|
|
81
82
|
.nut-uploader-preview-progress i {
|
|
82
83
|
margin-bottom: var(--nutui-uploader-image-icon-margin-bottom, 6px);
|