@nutui/nutui-react 1.1.3-beta.0 → 1.1.3-beta.1
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/dist/esm/ActionSheet/style/index.js +1 -0
- package/dist/esm/Address/style/index.js +3 -0
- package/dist/esm/AnimatingNumbers/style/index.js +2 -0
- package/dist/esm/Avatar/style/index.js +1 -0
- package/dist/esm/BackTop/style/index.js +1 -0
- package/dist/esm/Badge/style/index.js +1 -0
- package/dist/esm/Barrage/style/index.js +1 -0
- package/dist/esm/Button/style/index.js +1 -0
- package/dist/esm/Calendar/style/index.js +2 -0
- package/dist/esm/CalendarItem/style/index.js +1 -0
- package/dist/esm/Card/style/index.js +3 -0
- package/dist/esm/Cell/style/index.js +1 -0
- package/dist/esm/CellGroup/style/index.js +1 -0
- package/dist/esm/Checkbox/style/index.js +1 -0
- package/dist/esm/CheckboxGroup/style/index.js +1 -0
- package/dist/esm/CircleProgress/style/index.js +1 -0
- package/dist/esm/Col/style/index.js +1 -0
- package/dist/esm/Collapse/style/index.js +1 -0
- package/dist/esm/CollapseItem/style/index.js +1 -0
- package/dist/esm/DatePicker/style/index.js +1 -0
- package/dist/esm/Dialog/style/index.js +2 -0
- package/dist/esm/Divider/style/index.js +1 -0
- package/dist/esm/Drag/style/index.js +1 -0
- package/dist/esm/Elevator/style/index.js +1 -0
- package/dist/esm/FixedNav/style/index.js +2 -0
- package/dist/esm/Icon/style/index.js +1 -0
- package/dist/esm/Infiniteloading/style/index.js +1 -0
- package/dist/esm/Input/style/index.js +1 -0
- package/dist/esm/InputNumber/style/index.js +1 -0
- package/dist/esm/Layout/style/index.js +1 -0
- package/dist/esm/NavBar/style/index.js +1 -0
- package/dist/esm/NoticeBar/style/index.js +1 -0
- package/dist/esm/Notify/style/index.js +1 -0
- package/dist/esm/Overlay/style/index.js +1 -0
- package/dist/esm/Pagination/style/index.js +1 -0
- package/dist/esm/Picker/style/index.js +1 -0
- package/dist/esm/Popover/style/index.js +1 -0
- package/dist/esm/Popup/style/index.js +2 -0
- package/dist/esm/Price/style/index.js +1 -0
- package/dist/esm/Radio/style/index.js +1 -0
- package/dist/esm/RadioGroup/style/index.js +1 -0
- package/dist/esm/Range/style/index.js +1 -0
- package/dist/esm/Rate/style/index.js +1 -0
- package/dist/esm/Row/style/index.js +1 -0
- package/dist/esm/ShortPassword/style/index.js +2 -0
- package/dist/esm/Signature/style/index.js +1 -0
- package/dist/esm/Skeleton/style/index.js +1 -0
- package/dist/esm/Step/style/index.js +1 -0
- package/dist/esm/Steps/style/index.js +1 -0
- package/dist/esm/Swiper/style/index.js +1 -0
- package/dist/esm/SwiperItem/style/index.js +1 -0
- package/dist/esm/Switch/style/index.js +1 -0
- package/dist/esm/TabPane/style/index.js +1 -0
- package/dist/esm/Tabbar/style/index.js +1 -0
- package/dist/esm/TabbarItem/style/index.js +1 -0
- package/dist/esm/Tabs/style/index.js +2 -0
- package/dist/esm/Tag/style/index.js +1 -0
- package/dist/esm/TextArea/style/index.js +1 -0
- package/dist/esm/Toast/style/index.js +1 -0
- package/dist/esm/Uploader/style/index.js +1 -0
- package/dist/esm/Uploader.js +6 -1
- package/dist/esm/nutui-react.es.js +37 -37
- package/dist/nutui.react.es.js +10402 -10396
- package/dist/nutui.react.umd.js +15 -15
- package/dist/packages/actionsheet/actionsheet.scss +0 -1
- package/dist/packages/address/address.scss +0 -3
- package/dist/packages/animatingnumbers/animatingnumbers.scss +0 -1
- package/dist/packages/backtop/backtop.scss +0 -1
- package/dist/packages/button/button.scss +0 -1
- package/dist/packages/calendar/calendar.scss +0 -2
- package/dist/packages/card/card.scss +0 -2
- package/dist/packages/cell/cell.scss +0 -1
- package/dist/packages/checkbox/checkbox.scss +0 -1
- package/dist/packages/collapse/collapse.scss +0 -1
- package/dist/packages/collapseitem/collapseitem.scss +0 -1
- package/dist/packages/datepicker/datepicker.scss +1 -0
- package/dist/packages/dialog/dialog.scss +0 -1
- package/dist/packages/fixednav/fixednav.scss +0 -2
- package/dist/packages/infiniteloading/infiniteloading.scss +0 -1
- package/dist/packages/input/input.scss +0 -1
- package/dist/packages/inputnumber/inputnumber.scss +0 -1
- package/dist/packages/navbar/navbar.scss +0 -1
- package/dist/packages/noticebar/noticebar.scss +0 -1
- package/dist/packages/picker/picker.scss +0 -1
- package/dist/packages/popover/popover.scss +0 -1
- package/dist/packages/popup/popup.scss +0 -2
- package/dist/packages/radio/radio.scss +0 -1
- package/dist/packages/range/range.scss +0 -1
- package/dist/packages/rate/rate.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +0 -2
- package/dist/packages/signature/signature.scss +0 -1
- package/dist/packages/step/step.scss +0 -1
- package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
- package/dist/packages/tabs/tabs.scss +0 -1
- package/dist/packages/tag/tag.scss +0 -1
- package/dist/packages/toast/toast.scss +0 -1
- package/dist/packages/uploader/uploader.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +37 -37
- package/dist/types/nutui.react.d.ts +38 -38
- package/dist/types/uploader/uploader.d.ts +1 -0
- package/package.json +3 -3
- package/dist/esm/ActionSheet/style/css.js +0 -1
- package/dist/esm/Address/style/css.js +0 -1
- package/dist/esm/AnimatingNumbers/style/css.js +0 -1
- package/dist/esm/Avatar/style/css.js +0 -1
- package/dist/esm/BackTop/style/css.js +0 -1
- package/dist/esm/Badge/style/css.js +0 -1
- package/dist/esm/Barrage/style/css.js +0 -1
- package/dist/esm/Button/style/css.js +0 -1
- package/dist/esm/Calendar/style/css.js +0 -1
- package/dist/esm/CalendarItem/style/css.js +0 -1
- package/dist/esm/Card/style/css.js +0 -1
- package/dist/esm/Cell/style/css.js +0 -1
- package/dist/esm/CellGroup/style/css.js +0 -1
- package/dist/esm/Checkbox/style/css.js +0 -1
- package/dist/esm/CheckboxGroup/style/css.js +0 -1
- package/dist/esm/CircleProgress/style/css.js +0 -1
- package/dist/esm/Col/style/css.js +0 -1
- package/dist/esm/Collapse/style/css.js +0 -1
- package/dist/esm/CollapseItem/style/css.js +0 -1
- package/dist/esm/DatePicker/style/css.js +0 -1
- package/dist/esm/Dialog/style/css.js +0 -1
- package/dist/esm/Divider/style/css.js +0 -1
- package/dist/esm/Drag/style/css.js +0 -1
- package/dist/esm/Elevator/style/css.js +0 -1
- package/dist/esm/FixedNav/style/css.js +0 -1
- package/dist/esm/Icon/style/css.js +0 -1
- package/dist/esm/Infiniteloading/style/css.js +0 -1
- package/dist/esm/Input/style/css.js +0 -1
- package/dist/esm/InputNumber/style/css.js +0 -1
- package/dist/esm/Layout/style/css.js +0 -1
- package/dist/esm/NavBar/style/css.js +0 -1
- package/dist/esm/NoticeBar/style/css.js +0 -1
- package/dist/esm/Notify/style/css.js +0 -1
- package/dist/esm/Overlay/style/css.js +0 -1
- package/dist/esm/Pagination/style/css.js +0 -1
- package/dist/esm/Picker/style/css.js +0 -1
- package/dist/esm/Popover/style/css.js +0 -1
- package/dist/esm/Popup/style/css.js +0 -1
- package/dist/esm/Price/style/css.js +0 -1
- package/dist/esm/Radio/style/css.js +0 -1
- package/dist/esm/RadioGroup/style/css.js +0 -1
- package/dist/esm/Range/style/css.js +0 -1
- package/dist/esm/Rate/style/css.js +0 -1
- package/dist/esm/Row/style/css.js +0 -1
- package/dist/esm/ShortPassword/style/css.js +0 -1
- package/dist/esm/Signature/style/css.js +0 -1
- package/dist/esm/Skeleton/style/css.js +0 -1
- package/dist/esm/Step/style/css.js +0 -1
- package/dist/esm/Steps/style/css.js +0 -1
- package/dist/esm/Swiper/style/css.js +0 -1
- package/dist/esm/SwiperItem/style/css.js +0 -1
- package/dist/esm/Switch/style/css.js +0 -1
- package/dist/esm/TabPane/style/css.js +0 -1
- package/dist/esm/Tabbar/style/css.js +0 -1
- package/dist/esm/TabbarItem/style/css.js +0 -1
- package/dist/esm/Tabs/style/css.js +0 -1
- package/dist/esm/Tag/style/css.js +0 -1
- package/dist/esm/TextArea/style/css.js +0 -1
- package/dist/esm/Toast/style/css.js +0 -1
- package/dist/esm/Uploader/style/css.js +0 -1
package/dist/esm/Uploader.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
5
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
var _excluded = ["children", "uploadIcon", "name", "accept", "disabled", "multiple", "url", "headers", "timeout", "method", "xhrState", "withCredentials", "data", "isPreview", "isDeletable", "maximum", "capture", "maximize", "className", "autoUpload", "clearInput", "start", "removeImage", "progress", "success", "update", "failure", "oversize", "beforeUpload", "beforeDelete"];
|
|
7
|
+
var _excluded = ["children", "uploadIcon", "name", "accept", "disabled", "multiple", "url", "defaultImg", "headers", "timeout", "method", "xhrState", "withCredentials", "data", "isPreview", "isDeletable", "maximum", "capture", "maximize", "className", "autoUpload", "clearInput", "start", "removeImage", "progress", "success", "update", "failure", "oversize", "beforeUpload", "beforeDelete"];
|
|
8
8
|
|
|
9
9
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
@@ -120,6 +120,7 @@ var defaultProps = {
|
|
|
120
120
|
data: {},
|
|
121
121
|
headers: {},
|
|
122
122
|
method: 'post',
|
|
123
|
+
defaultImg: '',
|
|
123
124
|
xhrState: 200,
|
|
124
125
|
timeout: 1000 * 30,
|
|
125
126
|
withCredentials: false,
|
|
@@ -157,6 +158,7 @@ var InternalUploader = function InternalUploader(props, ref) {
|
|
|
157
158
|
disabled = _defaultProps$props.disabled,
|
|
158
159
|
multiple = _defaultProps$props.multiple,
|
|
159
160
|
url = _defaultProps$props.url,
|
|
161
|
+
defaultImg = _defaultProps$props.defaultImg,
|
|
160
162
|
headers = _defaultProps$props.headers,
|
|
161
163
|
timeout = _defaultProps$props.timeout,
|
|
162
164
|
method = _defaultProps$props.method,
|
|
@@ -448,6 +450,9 @@ var InternalUploader = function InternalUploader(props, ref) {
|
|
|
448
450
|
}), item.type.includes('image') && item.url && React__default.createElement("img", {
|
|
449
451
|
className: "nut-uploader__preview-img__c",
|
|
450
452
|
src: item.url
|
|
453
|
+
}), !item.type.includes('image') && defaultImg && React__default.createElement("img", {
|
|
454
|
+
className: "nut-uploader__preview-img__c",
|
|
455
|
+
src: defaultImg
|
|
451
456
|
}), item.status !== 'success' && React__default.createElement("div", {
|
|
452
457
|
className: "tips"
|
|
453
458
|
}, item.status)));
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
export { default as Avatar } from './Avatar.js';
|
|
2
1
|
export { default as Button } from './Button.js';
|
|
3
2
|
export { default as Cell } from './Cell.js';
|
|
4
3
|
export { default as CellGroup } from './CellGroup.js';
|
|
5
4
|
export { default as Icon } from './Icon.js';
|
|
6
|
-
export { default as Price } from './Price.js';
|
|
7
5
|
export { default as Overlay } from './Overlay.js';
|
|
8
|
-
export { default as
|
|
6
|
+
export { default as Popup } from './Popup.js';
|
|
9
7
|
export { default as Layout } from './Layout.js';
|
|
10
|
-
export { default as Row } from './Row.js';
|
|
11
8
|
export { default as Col } from './Col.js';
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as Popup } from './Popup.js';
|
|
15
|
-
export { default as ActionSheet } from './ActionSheet.js';
|
|
16
|
-
export { default as Picker } from './Picker.js';
|
|
17
|
-
export { default as Infiniteloading } from './Infiniteloading.js';
|
|
18
|
-
export { default as Popover } from './Popover.js';
|
|
19
|
-
export { default as Collapse } from './Collapse.js';
|
|
20
|
-
export { default as CollapseItem } from './CollapseItem.js';
|
|
21
|
-
export { default as Range } from './Range.js';
|
|
22
|
-
export { default as CircleProgress } from './CircleProgress.js';
|
|
23
|
-
export { default as NoticeBar } from './NoticeBar.js';
|
|
24
|
-
export { default as Notify } from './Notify.js';
|
|
25
|
-
export { default as Switch } from './Switch.js';
|
|
9
|
+
export { default as Row } from './Row.js';
|
|
10
|
+
export { default as Divider } from './Divider.js';
|
|
26
11
|
export { default as NavBar } from './NavBar.js';
|
|
12
|
+
export { default as FixedNav } from './FixedNav.js';
|
|
27
13
|
export { default as Tabbar } from './Tabbar.js';
|
|
28
14
|
export { default as TabbarItem } from './TabbarItem.js';
|
|
29
15
|
export { default as Elevator } from './Elevator.js';
|
|
30
|
-
export { default as FixedNav } from './FixedNav.js';
|
|
31
16
|
export { default as Pagination } from './Pagination.js';
|
|
32
|
-
export { default as Steps } from './Steps.js';
|
|
33
|
-
export { default as Step } from './Step.js';
|
|
34
|
-
export { default as Swiper } from './Swiper.js';
|
|
35
|
-
export { default as SwiperItem } from './SwiperItem.js';
|
|
36
|
-
export { default as BackTop } from './BackTop.js';
|
|
37
17
|
export { default as Tabs } from './Tabs.js';
|
|
38
18
|
export { default as TabPane } from './TabPane.js';
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
19
|
+
export { default as Range } from './Range.js';
|
|
20
|
+
export { default as Calendar } from './Calendar.js';
|
|
21
|
+
export { default as Checkbox } from './Checkbox.js';
|
|
22
|
+
export { default as CheckboxGroup } from './CheckboxGroup.js';
|
|
23
|
+
export { default as DatePicker } from './DatePicker.js';
|
|
42
24
|
export { default as InputNumber } from './InputNumber.js';
|
|
43
|
-
export { default as
|
|
25
|
+
export { default as Input } from './Input.js';
|
|
44
26
|
export { default as Radio } from './Radio.js';
|
|
45
27
|
export { default as RadioGroup } from './RadioGroup.js';
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as CheckboxGroup } from './CheckboxGroup.js';
|
|
48
|
-
export { default as Tag } from './Tag.js';
|
|
49
|
-
export { default as Badge } from './Badge.js';
|
|
50
|
-
export { default as Uploader } from './Uploader.js';
|
|
51
|
-
export { default as Calendar } from './Calendar.js';
|
|
28
|
+
export { default as Rate } from './Rate.js';
|
|
52
29
|
export { default as CalendarItem } from './CalendarItem.js';
|
|
53
|
-
export { default as
|
|
30
|
+
export { default as Picker } from './Picker.js';
|
|
31
|
+
export { default as ShortPassword } from './ShortPassword.js';
|
|
32
|
+
export { default as TextArea } from './TextArea.js';
|
|
33
|
+
export { default as Uploader } from './Uploader.js';
|
|
34
|
+
export { default as ActionSheet } from './ActionSheet.js';
|
|
35
|
+
export { default as BackTop } from './BackTop.js';
|
|
36
|
+
export { default as Drag } from './Drag.js';
|
|
37
|
+
export { default as Dialog } from './Dialog.js';
|
|
38
|
+
export { default as Infiniteloading } from './Infiniteloading.js';
|
|
39
|
+
export { default as Notify } from './Notify.js';
|
|
40
|
+
export { default as Switch } from './Switch.js';
|
|
41
|
+
export { default as Toast } from './Toast.js';
|
|
42
|
+
export { default as CircleProgress } from './CircleProgress.js';
|
|
43
|
+
export { default as NoticeBar } from './NoticeBar.js';
|
|
44
|
+
export { default as Steps } from './Steps.js';
|
|
45
|
+
export { default as Step } from './Step.js';
|
|
46
|
+
export { default as Swiper } from './Swiper.js';
|
|
47
|
+
export { default as SwiperItem } from './SwiperItem.js';
|
|
48
|
+
export { default as Avatar } from './Avatar.js';
|
|
49
|
+
export { default as Price } from './Price.js';
|
|
50
|
+
export { default as Badge } from './Badge.js';
|
|
51
|
+
export { default as Tag } from './Tag.js';
|
|
52
|
+
export { default as Popover } from './Popover.js';
|
|
54
53
|
export { default as Skeleton } from './Skeleton.js';
|
|
54
|
+
export { default as Collapse } from './Collapse.js';
|
|
55
|
+
export { default as CollapseItem } from './CollapseItem.js';
|
|
56
|
+
export { default as AnimatingNumbers } from './AnimatingNumbers.js';
|
|
55
57
|
export { default as Address } from './Address.js';
|
|
56
58
|
export { default as Barrage } from './Barrage.js';
|
|
57
59
|
export { default as Signature } from './Signature.js';
|
|
58
|
-
export { default as Drag } from './Drag.js';
|
|
59
|
-
export { default as AnimatingNumbers } from './AnimatingNumbers.js';
|
|
60
60
|
export { default as Card } from './Card.js';
|