@nutui/nutui-react-taro 2.0.0-alpha.1 → 2.0.0-alpha.2
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 +14 -0
- package/dist/esm/Address.js +2 -2
- package/dist/esm/Animate.js +2 -3
- package/dist/esm/Badge.js +1 -3
- package/dist/esm/Divider.js +2 -1
- package/dist/esm/Drag.js +2 -3
- package/dist/esm/Elevator.js +3 -3
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +3 -4
- package/dist/esm/NavBar.js +1 -4
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/Uploader.js +2 -4
- package/dist/esm/{address.taro-632ca799.js → address.taro-2f915873.js} +2 -2
- package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-9e65d07a.js} +4 -3
- package/dist/esm/{badge.taro-ae154f41.js → badge.taro-1d5df601.js} +11 -16
- package/dist/esm/{divider.taro-6c1657ce.js → divider.taro-67e9f757.js} +2 -0
- package/dist/esm/{drag.taro-79bb8744.js → drag.taro-2d3d9d11.js} +4 -3
- package/dist/esm/{elevator.taro-81a11ecc.js → elevator.taro-588e219b.js} +31 -24
- package/dist/esm/menu.taro-b61442a7.js +111 -0
- package/dist/esm/{menuitem.taro-86a6bb6c.js → menuitem.taro-bca78e07.js} +31 -30
- package/dist/esm/navbar.taro-02c69d66.js +57 -0
- package/dist/esm/nutui-react.es.js +13 -13
- package/dist/esm/progress.taro-1c199fbe.js +40 -0
- package/dist/esm/{uploader.taro-2151eec6.js → uploader.taro-17569890.js} +2 -2
- 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 +702 -795
- package/dist/nutui.react.umd.js +702 -795
- package/dist/packages/badge/badge.scss +8 -17
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +23 -114
- package/dist/styles/variables.scss +31 -122
- package/dist/types/index.d.ts +18 -51
- package/package.json +1 -1
- package/dist/esm/menu.taro-54951911.js +0 -98
- package/dist/esm/navbar.taro-69f47d51.js +0 -77
- package/dist/esm/progress.taro-24392ef3.js +0 -88
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import React__default, { forwardRef, useState, useEffect, useImperativeHandle } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { getSystemInfoSync } from '@tarojs/taro';
|
|
3
4
|
import { CSSTransition } from 'react-transition-group';
|
|
4
5
|
import { Check } from '@nutui/icons-react-taro';
|
|
5
|
-
import { u as useConfig } from './configprovider.taro-c8c54556.js';
|
|
6
6
|
import { O as Overlay } from './overlay.taro-ad0d4775.js';
|
|
7
|
+
import { g as getRectByTaro } from './use-client-rect-1f8ed1fe.js';
|
|
7
8
|
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
8
9
|
|
|
9
10
|
const defaultProps = {
|
|
10
11
|
...ComponentDefaults,
|
|
11
|
-
className: '',
|
|
12
|
-
style: {},
|
|
13
12
|
columns: 1,
|
|
14
13
|
direction: 'down',
|
|
15
|
-
|
|
14
|
+
icon: null,
|
|
15
|
+
closeOnClickAway: false,
|
|
16
16
|
activeTitleClass: '',
|
|
17
17
|
inactiveTitleClass: '',
|
|
18
18
|
onChange: (value) => undefined,
|
|
19
19
|
};
|
|
20
20
|
const MenuItem = forwardRef((props, ref) => {
|
|
21
|
-
|
|
22
|
-
const mergedProps = { ...defaultProps, ...props };
|
|
23
|
-
const { style, options, value, columns, title, optionsIcon, direction, onChange, activeTitleClass, inactiveTitleClass, children, } = {
|
|
21
|
+
const { className, style, options, value, columns, title, icon, direction, onChange, activeTitleClass, inactiveTitleClass, closeOnClickAway, children, activeColor, show, parent, index, } = {
|
|
24
22
|
...defaultProps,
|
|
25
23
|
...props,
|
|
26
24
|
};
|
|
27
|
-
const
|
|
28
|
-
const [_showPopup, setShowPopup] = useState(showPopup);
|
|
25
|
+
const [_showPopup, setShowPopup] = useState(show);
|
|
29
26
|
const [_value, setValue] = useState(value);
|
|
30
27
|
useEffect(() => {
|
|
31
|
-
setShowPopup(
|
|
32
|
-
}, [
|
|
28
|
+
setShowPopup(show);
|
|
29
|
+
}, [show]);
|
|
33
30
|
useEffect(() => {
|
|
34
31
|
getParentOffset();
|
|
35
32
|
}, [_showPopup]);
|
|
36
33
|
useImperativeHandle(ref, () => ({
|
|
37
|
-
toggle: parent.
|
|
34
|
+
toggle: parent.toggleMenuItem,
|
|
38
35
|
}));
|
|
39
36
|
const getIconCName = (optionVal, value) => {
|
|
40
37
|
return classNames({
|
|
@@ -44,11 +41,11 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
44
41
|
};
|
|
45
42
|
const setTitle = (text) => {
|
|
46
43
|
if (!title) {
|
|
47
|
-
parent.updateTitle(text,
|
|
44
|
+
parent.updateTitle(text, index);
|
|
48
45
|
}
|
|
49
46
|
};
|
|
50
47
|
const handleClick = (item) => {
|
|
51
|
-
parent.
|
|
48
|
+
parent.toggleMenuItem(index);
|
|
52
49
|
setTitle(item.text);
|
|
53
50
|
setValue(item.value);
|
|
54
51
|
onChange && onChange(item);
|
|
@@ -59,13 +56,13 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
59
56
|
});
|
|
60
57
|
const getParentOffset = () => {
|
|
61
58
|
setTimeout(async () => {
|
|
62
|
-
const p = parent.
|
|
63
|
-
const rect = await p
|
|
59
|
+
const p = parent.menuRef.current;
|
|
60
|
+
const rect = await getRectByTaro(p);
|
|
64
61
|
setPosition({
|
|
65
62
|
height: rect.height,
|
|
66
63
|
top: rect.top,
|
|
67
64
|
});
|
|
68
|
-
});
|
|
65
|
+
}, 100);
|
|
69
66
|
};
|
|
70
67
|
const isShow = () => {
|
|
71
68
|
if (_showPopup)
|
|
@@ -75,34 +72,38 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
75
72
|
const getPosition = () => {
|
|
76
73
|
return direction === 'down'
|
|
77
74
|
? { top: `${position.top + position.height}px` }
|
|
78
|
-
: {
|
|
75
|
+
: {
|
|
76
|
+
bottom: `${getSystemInfoSync().windowHeight - position.top}px`,
|
|
77
|
+
top: 'auto',
|
|
78
|
+
};
|
|
79
79
|
};
|
|
80
80
|
const placeholderStyle = () => {
|
|
81
81
|
if (direction === 'down') {
|
|
82
82
|
return {
|
|
83
83
|
height: `${position.top + position.height}px`,
|
|
84
|
+
top: 0,
|
|
84
85
|
...isShow(),
|
|
85
|
-
...style,
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
return {
|
|
89
|
-
height: `${
|
|
89
|
+
height: `${getSystemInfoSync().windowHeight - position.top}px`,
|
|
90
|
+
bottom: `0px`,
|
|
90
91
|
top: 'auto',
|
|
91
92
|
...isShow(),
|
|
92
|
-
...style,
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
return (React__default.createElement(React__default.Fragment, null,
|
|
96
|
-
React__default.createElement("div", { className: `placeholder-element ${classNames({
|
|
96
|
+
closeOnClickAway ? (React__default.createElement("div", { className: `placeholder-element ${classNames({
|
|
97
97
|
up: direction === 'up',
|
|
98
|
-
})}`, style: placeholderStyle(), onClick: () => parent.
|
|
99
|
-
React__default.createElement(Overlay, { className: "nut-menu__overlay", style: getPosition(), lockScroll: parent.lockScroll, visible: _showPopup, closeOnOverlayClick: parent.
|
|
100
|
-
parent.
|
|
98
|
+
})}`, style: placeholderStyle(), onClick: () => parent.toggleMenuItem(index) })) : null,
|
|
99
|
+
React__default.createElement(Overlay, { className: "nut-menu__overlay", style: getPosition(), lockScroll: parent.lockScroll, visible: _showPopup, closeOnOverlayClick: parent.closeOnOverlayClick, onClick: () => {
|
|
100
|
+
parent.closeOnOverlayClick && parent.toggleMenuItem(index);
|
|
101
101
|
} }),
|
|
102
|
-
React__default.createElement("div", { className:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
React__default.createElement("div", { className: classNames(className, {
|
|
103
|
+
'nut-menu-item__wrap': direction === 'down',
|
|
104
|
+
'nut-menu-item__wrap-up': direction !== 'down',
|
|
105
|
+
}), style: {
|
|
106
|
+
...style,
|
|
106
107
|
...isShow(),
|
|
107
108
|
} },
|
|
108
109
|
React__default.createElement(CSSTransition, { in: _showPopup, timeout: 100, classNames: direction === 'down' ? 'menu-item' : 'menu-item-up' },
|
|
@@ -115,7 +116,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
115
116
|
}, onClick: () => {
|
|
116
117
|
handleClick(item);
|
|
117
118
|
} },
|
|
118
|
-
item.value === _value ? (React__default.createElement(React__default.Fragment, null,
|
|
119
|
+
item.value === _value ? (React__default.createElement(React__default.Fragment, null, icon || (React__default.createElement(Check, { color: activeColor, size: 10, className: getIconCName(item.value, value) })))) : null,
|
|
119
120
|
React__default.createElement("div", { className: getIconCName(item.value, value), style: {
|
|
120
121
|
color: `${item.value === _value ? activeColor : ''}`,
|
|
121
122
|
} }, item.text)));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
4
|
+
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
...ComponentDefaults,
|
|
7
|
+
left: '',
|
|
8
|
+
right: '',
|
|
9
|
+
back: '',
|
|
10
|
+
fixed: false,
|
|
11
|
+
safeAreaInsetTop: false,
|
|
12
|
+
placeholder: false,
|
|
13
|
+
zIndex: 10,
|
|
14
|
+
};
|
|
15
|
+
const NavBar = (props) => {
|
|
16
|
+
const { right, left, className, style, back, fixed, safeAreaInsetTop, placeholder, zIndex, onClickBack, } = {
|
|
17
|
+
...defaultProps,
|
|
18
|
+
...props,
|
|
19
|
+
};
|
|
20
|
+
const classPrefix = 'nut-navbar';
|
|
21
|
+
const children = Array.isArray(props.children)
|
|
22
|
+
? props.children
|
|
23
|
+
: [props.children];
|
|
24
|
+
const styles = () => {
|
|
25
|
+
return {
|
|
26
|
+
...style,
|
|
27
|
+
zIndex,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const renderLeft = () => {
|
|
31
|
+
return (React__default.createElement("div", { className: `${classPrefix}__left` },
|
|
32
|
+
back && (React__default.createElement("div", { className: `${classPrefix}__left__back`, onClick: (e) => onClickBack(e) }, back)),
|
|
33
|
+
left));
|
|
34
|
+
};
|
|
35
|
+
const renderContent = () => {
|
|
36
|
+
return React__default.createElement("div", { className: `${classPrefix}__title` }, children);
|
|
37
|
+
};
|
|
38
|
+
const renderRight = () => {
|
|
39
|
+
return React__default.createElement("div", { className: `${classPrefix}__right` }, right);
|
|
40
|
+
};
|
|
41
|
+
const renderWrapper = () => {
|
|
42
|
+
return (React__default.createElement("div", { className: cls, style: styles() },
|
|
43
|
+
renderLeft(),
|
|
44
|
+
renderContent(),
|
|
45
|
+
renderRight()));
|
|
46
|
+
};
|
|
47
|
+
const classes = classNames({
|
|
48
|
+
[`${classPrefix}--fixed`]: fixed,
|
|
49
|
+
[`${classPrefix}--safe-area-inset-top`]: safeAreaInsetTop,
|
|
50
|
+
});
|
|
51
|
+
const cls = classNames(classPrefix, classes, className);
|
|
52
|
+
return (React__default.createElement(React__default.Fragment, null, fixed && placeholder ? (React__default.createElement("div", { className: `${classPrefix}--placeholder` }, renderWrapper())) : (renderWrapper())));
|
|
53
|
+
};
|
|
54
|
+
NavBar.defaultProps = defaultProps;
|
|
55
|
+
NavBar.displayName = 'NutNavBar';
|
|
56
|
+
|
|
57
|
+
export { NavBar as N };
|
|
@@ -6,18 +6,18 @@ export { I as Image } from './image.taro-edb572bb.js';
|
|
|
6
6
|
export { O as Overlay } from './overlay.taro-ad0d4775.js';
|
|
7
7
|
export { P as Popup } from './popup.taro-020bf791.js';
|
|
8
8
|
export { C as Col } from './col.taro-a99a9171.js';
|
|
9
|
-
export { D as Divider } from './divider.taro-
|
|
9
|
+
export { D as Divider } from './divider.taro-67e9f757.js';
|
|
10
10
|
export { G as Grid } from './grid.taro-3797169c.js';
|
|
11
11
|
export { G as GridItem } from './griditem.taro-04f59ae1.js';
|
|
12
12
|
export { L as Layout } from './layout.taro-9046d093.js';
|
|
13
13
|
export { R as Row } from './row.taro-75039d53.js';
|
|
14
14
|
export { S as Sticky } from './sticky.taro-b5bde7b1.js';
|
|
15
|
-
export { E as Elevator } from './elevator.taro-
|
|
15
|
+
export { E as Elevator } from './elevator.taro-588e219b.js';
|
|
16
16
|
export { F as FixedNav } from './fixednav.taro-39fbd47a.js';
|
|
17
17
|
export { I as Indicator } from './indicator.taro-c10334e8.js';
|
|
18
|
-
export { M as Menu } from './menu.taro-
|
|
19
|
-
export { M as MenuItem } from './menuitem.taro-
|
|
20
|
-
export { N as NavBar } from './navbar.taro-
|
|
18
|
+
export { M as Menu } from './menu.taro-b61442a7.js';
|
|
19
|
+
export { M as MenuItem } from './menuitem.taro-bca78e07.js';
|
|
20
|
+
export { N as NavBar } from './navbar.taro-02c69d66.js';
|
|
21
21
|
export { P as Pagination } from './pagination.taro-60b22b27.js';
|
|
22
22
|
export { S as SideNavBar } from './sidenavbar.taro-d5c5b331.js';
|
|
23
23
|
export { S as SideNavBarItem } from './sidenavbaritem.taro-bb80dbf4.js';
|
|
@@ -43,23 +43,23 @@ export { R as Rate } from './rate.taro-57341aa9.js';
|
|
|
43
43
|
export { S as SearchBar } from './searchbar.taro-eef468bb.js';
|
|
44
44
|
export { S as ShortPassword } from './shortpassword.taro-681a33a1.js';
|
|
45
45
|
export { T as TextArea } from './textarea.taro-a0f79515.js';
|
|
46
|
-
export { U as Uploader } from './uploader.taro-
|
|
46
|
+
export { U as Uploader } from './uploader.taro-17569890.js';
|
|
47
47
|
export { A as ActionSheet } from './actionsheet.taro-10cc53ee.js';
|
|
48
48
|
export { B as BackTop } from './backtop.taro-ba271b8f.js';
|
|
49
49
|
export { B as Dialog } from './dialog.taro-00ac41fd.js';
|
|
50
|
-
export { D as Drag } from './drag.taro-
|
|
50
|
+
export { D as Drag } from './drag.taro-2d3d9d11.js';
|
|
51
51
|
export { I as Infiniteloading } from './infiniteloading.taro-73c9b8ca.js';
|
|
52
52
|
export { N as Notify } from './notify.taro-e17c6f82.js';
|
|
53
53
|
export { P as PullToRefresh } from './pulltorefresh.taro-d5fcfcb0.js';
|
|
54
54
|
export { S as Swipe } from './swipe.taro-350c9a94.js';
|
|
55
55
|
export { S as Switch } from './switch.taro-34ca8228.js';
|
|
56
56
|
export { T as Toast } from './toast.taro-e4f44812.js';
|
|
57
|
-
export { A as Animate } from './animate.taro-
|
|
57
|
+
export { A as Animate } from './animate.taro-9e65d07a.js';
|
|
58
58
|
export { A as AnimatingNumbers } from './animatingnumbers.taro-03e5d61d.js';
|
|
59
59
|
export { A as Audio } from './audio.taro-f672a68c.js';
|
|
60
60
|
export { A as Avatar } from './avatar.taro-de157a1f.js';
|
|
61
61
|
export { A as AvatarGroup } from './avatargroup-b476ac68.js';
|
|
62
|
-
export { B as Badge } from './badge.taro-
|
|
62
|
+
export { B as Badge } from './badge.taro-1d5df601.js';
|
|
63
63
|
export { C as CircleProgress } from './circleprogress.taro-79854448.js';
|
|
64
64
|
export { C as Collapse } from './collapse.taro-35a8a0d6.js';
|
|
65
65
|
export { C as CollapseItem } from './collapseitem-690eb91c.js';
|
|
@@ -70,7 +70,7 @@ export { I as ImagePreview } from './imagepreview.taro-b88fcf41.js';
|
|
|
70
70
|
export { N as NoticeBar } from './noticebar.taro-49e7441f.js';
|
|
71
71
|
export { P as Popover } from './popover.taro-2a57eae4.js';
|
|
72
72
|
export { P as Price } from './price.taro-776ed16e.js';
|
|
73
|
-
export { P as Progress } from './progress.taro-
|
|
73
|
+
export { P as Progress } from './progress.taro-1c199fbe.js';
|
|
74
74
|
export { S as Skeleton } from './skeleton.taro-64e858a2.js';
|
|
75
75
|
export { S as Step } from './step.taro-2ec1f283.js';
|
|
76
76
|
export { S as Steps } from './steps.taro-c82d2252.js';
|
|
@@ -82,7 +82,7 @@ export { T as TrendArrow } from './trendarrow.taro-7cf90def.js';
|
|
|
82
82
|
export { V as Video } from './video-7ed508cc.js';
|
|
83
83
|
export { V as VirtualList } from './virtuallist.taro-35b9bd9a.js';
|
|
84
84
|
export { W as WaterMark } from './watermark.taro-c780d360.js';
|
|
85
|
-
export { A as Address } from './address.taro-
|
|
85
|
+
export { A as Address } from './address.taro-2f915873.js';
|
|
86
86
|
export { B as Barrage } from './barrage.taro-80df08d3.js';
|
|
87
87
|
export { C as Card } from './card.taro-5e9b34c8.js';
|
|
88
88
|
export { S as Signature } from './signature.taro-f01b2b05.js';
|
|
@@ -103,10 +103,10 @@ import '@tarojs/taro';
|
|
|
103
103
|
import './use-client-rect-1f8ed1fe.js';
|
|
104
104
|
import './get-scroll-parent-b4a07e65.js';
|
|
105
105
|
import './can-use-dom-3eeb5af4.js';
|
|
106
|
-
import './bem-350c1702.js';
|
|
107
|
-
import '@bem-react/classname';
|
|
108
106
|
import './use-props-value-ae7ee726.js';
|
|
109
107
|
import './offsetContext-c2a746fa.js';
|
|
108
|
+
import './bem-350c1702.js';
|
|
109
|
+
import '@bem-react/classname';
|
|
110
110
|
import './use-touch-db24bb5c.js';
|
|
111
111
|
import './supports-passive-c85ef996.js';
|
|
112
112
|
import './index-5bcb0ff8.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
4
|
+
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
...ComponentDefaults,
|
|
7
|
+
percent: 0,
|
|
8
|
+
showText: false,
|
|
9
|
+
animated: false,
|
|
10
|
+
};
|
|
11
|
+
const Progress = (props) => {
|
|
12
|
+
const { className, style, percent, background, color, strokeWidth, showText, animated, children, ...rest } = {
|
|
13
|
+
...defaultProps,
|
|
14
|
+
...props,
|
|
15
|
+
};
|
|
16
|
+
const classPrefix = 'nut-progress';
|
|
17
|
+
const classesInner = classNames({
|
|
18
|
+
[`${classPrefix}-inner`]: true,
|
|
19
|
+
[`${classPrefix}-active`]: animated,
|
|
20
|
+
});
|
|
21
|
+
const stylesOuter = {
|
|
22
|
+
height: `${strokeWidth}px`,
|
|
23
|
+
background,
|
|
24
|
+
};
|
|
25
|
+
const stylesInner = {
|
|
26
|
+
width: `${percent}%`,
|
|
27
|
+
background: color,
|
|
28
|
+
};
|
|
29
|
+
return (React__default.createElement("div", { className: classNames(classPrefix, className), style: style, ...rest },
|
|
30
|
+
React__default.createElement("div", { className: `${classPrefix}-outer`, style: stylesOuter },
|
|
31
|
+
React__default.createElement("div", { className: classesInner, style: stylesInner }, showText && (React__default.createElement("div", { className: `${classPrefix}-text`, style: { left: `${percent}%` } }, children || (React__default.createElement("div", { className: `${classPrefix}-text__inner`, style: {
|
|
32
|
+
background: color,
|
|
33
|
+
} },
|
|
34
|
+
percent,
|
|
35
|
+
"%"))))))));
|
|
36
|
+
};
|
|
37
|
+
Progress.defaultProps = defaultProps;
|
|
38
|
+
Progress.displayName = 'NutProgress';
|
|
39
|
+
|
|
40
|
+
export { Progress as P };
|
|
@@ -4,7 +4,7 @@ import Taro, { uploadFile, getEnv, chooseMedia, chooseImage } from '@tarojs/taro
|
|
|
4
4
|
import { Failure, Loading, Link, Del, Photograph } from '@nutui/icons-react-taro';
|
|
5
5
|
import { Image } from '@tarojs/components';
|
|
6
6
|
import { B as Button } from './button.taro-a1c9512f.js';
|
|
7
|
-
import { P as Progress } from './progress.taro-
|
|
7
|
+
import { P as Progress } from './progress.taro-1c199fbe.js';
|
|
8
8
|
import { u as useConfig } from './configprovider.taro-c8c54556.js';
|
|
9
9
|
import { i as isPromise } from './index-5bcb0ff8.js';
|
|
10
10
|
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
@@ -479,7 +479,7 @@ const InternalUploader = (props, ref) => {
|
|
|
479
479
|
"\u00A0",
|
|
480
480
|
item.name),
|
|
481
481
|
deletable && (React__default.createElement(Del, { color: "#808080", className: "nut-uploader__preview-img__file__del", onClick: () => onDeleteItem(item, index) })),
|
|
482
|
-
item.status === 'uploading' && (React__default.createElement(Progress, {
|
|
482
|
+
item.status === 'uploading' && (React__default.createElement(Progress, { percent: item.percentage, color: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)", showText: false }))))));
|
|
483
483
|
}),
|
|
484
484
|
maxCount > fileList.length && previewType === 'picture' && !children && (React__default.createElement("div", { className: `nut-uploader__upload ${previewType} ${disabled ? 'nut-uploader__upload-disabled' : ''}` },
|
|
485
485
|
React__default.createElement("div", { className: "nut-uploader__icon" },
|
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