@nutui/nutui-react 1.1.1 → 1.1.2-beta.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/dist/esm/Card/style/css.js +1 -0
- package/dist/esm/Card/style/index.js +1 -0
- package/dist/esm/Card.js +68 -0
- package/dist/esm/nutui-react.es.js +1 -0
- package/dist/nutui.react.es.js +237 -172
- package/dist/nutui.react.umd.js +10 -10
- package/dist/packages/card/card.scss +75 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/types/card/card.d.ts +17 -0
- package/dist/types/card/index.d.ts +2 -0
- package/dist/types/nutui.react.d.ts +2 -1
- package/package.json +1 -1
- package/dist/1x/demo-1.1.1/CSSTransition.js +0 -1
- package/dist/1x/demo-1.1.1/avatar.js +0 -1
- package/dist/1x/demo-1.1.1/bem.js +0 -1
- package/dist/1x/demo-1.1.1/button.js +0 -7
- package/dist/1x/demo-1.1.1/cell.js +0 -1
- package/dist/1x/demo-1.1.1/cellgroup.js +0 -1
- package/dist/1x/demo-1.1.1/demo.css +0 -1
- package/dist/1x/demo-1.1.1/demo.js +0 -1
- package/dist/1x/demo-1.1.1/demo10.css +0 -1
- package/dist/1x/demo-1.1.1/demo10.js +0 -1
- package/dist/1x/demo-1.1.1/demo11.js +0 -1
- package/dist/1x/demo-1.1.1/demo12.js +0 -1
- package/dist/1x/demo-1.1.1/demo13.js +0 -1
- package/dist/1x/demo-1.1.1/demo14.js +0 -1
- package/dist/1x/demo-1.1.1/demo15.js +0 -1
- package/dist/1x/demo-1.1.1/demo16.js +0 -1
- package/dist/1x/demo-1.1.1/demo17.js +0 -1
- package/dist/1x/demo-1.1.1/demo18.js +0 -1
- package/dist/1x/demo-1.1.1/demo19.js +0 -1
- package/dist/1x/demo-1.1.1/demo2.css +0 -1
- package/dist/1x/demo-1.1.1/demo2.js +0 -1
- package/dist/1x/demo-1.1.1/demo20.js +0 -1
- package/dist/1x/demo-1.1.1/demo21.js +0 -1
- package/dist/1x/demo-1.1.1/demo22.js +0 -1
- package/dist/1x/demo-1.1.1/demo23.js +0 -1
- package/dist/1x/demo-1.1.1/demo24.js +0 -7
- package/dist/1x/demo-1.1.1/demo25.js +0 -1
- package/dist/1x/demo-1.1.1/demo26.js +0 -1
- package/dist/1x/demo-1.1.1/demo27.js +0 -1
- package/dist/1x/demo-1.1.1/demo28.js +0 -1
- package/dist/1x/demo-1.1.1/demo29.js +0 -1
- package/dist/1x/demo-1.1.1/demo3.css +0 -1
- package/dist/1x/demo-1.1.1/demo3.js +0 -1
- package/dist/1x/demo-1.1.1/demo30.js +0 -1
- package/dist/1x/demo-1.1.1/demo31.js +0 -4
- package/dist/1x/demo-1.1.1/demo32.js +0 -1
- package/dist/1x/demo-1.1.1/demo33.js +0 -1
- package/dist/1x/demo-1.1.1/demo34.js +0 -1
- package/dist/1x/demo-1.1.1/demo35.js +0 -2
- package/dist/1x/demo-1.1.1/demo36.js +0 -1
- package/dist/1x/demo-1.1.1/demo37.js +0 -1
- package/dist/1x/demo-1.1.1/demo38.js +0 -1
- package/dist/1x/demo-1.1.1/demo39.js +0 -1
- package/dist/1x/demo-1.1.1/demo4.css +0 -1
- package/dist/1x/demo-1.1.1/demo4.js +0 -1
- package/dist/1x/demo-1.1.1/demo40.js +0 -1
- package/dist/1x/demo-1.1.1/demo41.js +0 -1
- package/dist/1x/demo-1.1.1/demo42.js +0 -1
- package/dist/1x/demo-1.1.1/demo43.js +0 -1
- package/dist/1x/demo-1.1.1/demo44.js +0 -1
- package/dist/1x/demo-1.1.1/demo45.js +0 -6
- package/dist/1x/demo-1.1.1/demo46.js +0 -1
- package/dist/1x/demo-1.1.1/demo47.js +0 -1
- package/dist/1x/demo-1.1.1/demo48.js +0 -1
- package/dist/1x/demo-1.1.1/demo5.css +0 -1
- package/dist/1x/demo-1.1.1/demo5.js +0 -1
- package/dist/1x/demo-1.1.1/demo6.css +0 -1
- package/dist/1x/demo-1.1.1/demo6.js +0 -1
- package/dist/1x/demo-1.1.1/demo7.css +0 -1
- package/dist/1x/demo-1.1.1/demo7.js +0 -1
- package/dist/1x/demo-1.1.1/demo8.css +0 -1
- package/dist/1x/demo-1.1.1/demo8.js +0 -1
- package/dist/1x/demo-1.1.1/demo9.css +0 -1
- package/dist/1x/demo-1.1.1/demo9.js +0 -1
- package/dist/1x/demo-1.1.1/drag.js +0 -1
- package/dist/1x/demo-1.1.1/elevator.js +0 -1
- package/dist/1x/demo-1.1.1/icon.js +0 -1
- package/dist/1x/demo-1.1.1/iconfont.ttf +0 -0
- package/dist/1x/demo-1.1.1/iconfont.woff +0 -0
- package/dist/1x/demo-1.1.1/iconfont.woff2 +0 -0
- package/dist/1x/demo-1.1.1/index.js +0 -5
- package/dist/1x/demo-1.1.1/logo-red.png +0 -0
- package/dist/1x/demo-1.1.1/mobile.css +0 -1
- package/dist/1x/demo-1.1.1/mobile.js +0 -1
- package/dist/1x/demo-1.1.1/nutui.react.scss.css +0 -1
- package/dist/1x/demo-1.1.1/nutui.react.scss.js +0 -1
- package/dist/1x/demo-1.1.1/overlay.js +0 -1
- package/dist/1x/demo-1.1.1/picker.js +0 -1
- package/dist/1x/demo-1.1.1/popup.js +0 -1
- package/dist/1x/demo-1.1.1/switch.js +0 -1
- package/dist/1x/demo-1.1.1/toast.js +0 -1
- package/dist/1x/demo-1.1.1/vendor.js +0 -41
- package/dist/1x/demo.html +0 -62
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +0 -20
- package/dist/esm/types/src/packages/actionsheet/index.d.ts +0 -2
- package/dist/esm/types/src/packages/address/address.d.ts +0 -56
- package/dist/esm/types/src/packages/address/customRender.d.ts +0 -18
- package/dist/esm/types/src/packages/address/existRender.d.ts +0 -18
- package/dist/esm/types/src/packages/address/index.d.ts +0 -2
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +0 -12
- package/dist/esm/types/src/packages/animatingnumbers/countup.d.ts +0 -11
- package/dist/esm/types/src/packages/animatingnumbers/index.d.ts +0 -2
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +0 -14
- package/dist/esm/types/src/packages/avatar/index.d.ts +0 -2
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +0 -15
- package/dist/esm/types/src/packages/backtop/index.d.ts +0 -2
- package/dist/esm/types/src/packages/badge/badge.d.ts +0 -13
- package/dist/esm/types/src/packages/badge/index.d.ts +0 -2
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +0 -12
- package/dist/esm/types/src/packages/barrage/index.d.ts +0 -2
- package/dist/esm/types/src/packages/button/button.d.ts +0 -20
- package/dist/esm/types/src/packages/button/index.d.ts +0 -2
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +0 -14
- package/dist/esm/types/src/packages/calendar/index.d.ts +0 -2
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +0 -17
- package/dist/esm/types/src/packages/calendaritem/index.d.ts +0 -2
- package/dist/esm/types/src/packages/cell/cell.d.ts +0 -16
- package/dist/esm/types/src/packages/cell/index.d.ts +0 -2
- package/dist/esm/types/src/packages/cellgroup/cellgroup.d.ts +0 -6
- package/dist/esm/types/src/packages/cellgroup/index.d.ts +0 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +0 -15
- package/dist/esm/types/src/packages/checkbox/index.d.ts +0 -2
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +0 -7
- package/dist/esm/types/src/packages/checkboxgroup/index.d.ts +0 -2
- package/dist/esm/types/src/packages/circleprogress/circleprogress.d.ts +0 -9
- package/dist/esm/types/src/packages/circleprogress/index.d.ts +0 -2
- package/dist/esm/types/src/packages/col/col.d.ts +0 -7
- package/dist/esm/types/src/packages/col/index.d.ts +0 -2
- package/dist/esm/types/src/packages/collapse/collapse.d.ts +0 -11
- package/dist/esm/types/src/packages/collapse/index.d.ts +0 -2
- package/dist/esm/types/src/packages/collapseitem/collapseitem.d.ts +0 -18
- package/dist/esm/types/src/packages/collapseitem/index.d.ts +0 -2
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +0 -16
- package/dist/esm/types/src/packages/datepicker/index.d.ts +0 -2
- package/dist/esm/types/src/packages/dialog/Confirm.d.ts +0 -7
- package/dist/esm/types/src/packages/dialog/Content.d.ts +0 -10
- package/dist/esm/types/src/packages/dialog/DialogWrap.d.ts +0 -11
- package/dist/esm/types/src/packages/dialog/DialogWrapper.d.ts +0 -8
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +0 -3
- package/dist/esm/types/src/packages/dialog/config.d.ts +0 -46
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +0 -2
- package/dist/esm/types/src/packages/dialog/index.d.ts +0 -2
- package/dist/esm/types/src/packages/divider/divider.d.ts +0 -9
- package/dist/esm/types/src/packages/divider/index.d.ts +0 -2
- package/dist/esm/types/src/packages/drag/drag.d.ts +0 -14
- package/dist/esm/types/src/packages/drag/index.d.ts +0 -2
- package/dist/esm/types/src/packages/elevator/elevator.d.ts +0 -17
- package/dist/esm/types/src/packages/elevator/index.d.ts +0 -2
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +0 -22
- package/dist/esm/types/src/packages/fixednav/index.d.ts +0 -2
- package/dist/esm/types/src/packages/icon/icon.d.ts +0 -12
- package/dist/esm/types/src/packages/icon/index.d.ts +0 -2
- package/dist/esm/types/src/packages/infiniteloading/index.d.ts +0 -2
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +0 -20
- package/dist/esm/types/src/packages/input/index.d.ts +0 -2
- package/dist/esm/types/src/packages/input/input.d.ts +0 -20
- package/dist/esm/types/src/packages/input/util.d.ts +0 -1
- package/dist/esm/types/src/packages/inputnumber/index.d.ts +0 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +0 -22
- package/dist/esm/types/src/packages/layout/index.d.ts +0 -2
- package/dist/esm/types/src/packages/layout/layout.d.ts +0 -4
- package/dist/esm/types/src/packages/navbar/index.d.ts +0 -2
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +0 -15
- package/dist/esm/types/src/packages/noticebar/index.d.ts +0 -2
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +0 -23
- package/dist/esm/types/src/packages/notify/Notification.d.ts +0 -31
- package/dist/esm/types/src/packages/notify/index.d.ts +0 -2
- package/dist/esm/types/src/packages/notify/notify.d.ts +0 -10
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +0 -60
- package/dist/esm/types/src/packages/nutui.react.d.ts +0 -119
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -59
- package/dist/esm/types/src/packages/overlay/index.d.ts +0 -2
- package/dist/esm/types/src/packages/overlay/overlay.d.ts +0 -12
- package/dist/esm/types/src/packages/pagination/index.d.ts +0 -2
- package/dist/esm/types/src/packages/pagination/pagination.d.ts +0 -19
- package/dist/esm/types/src/packages/picker/index.d.ts +0 -2
- package/dist/esm/types/src/packages/picker/picker.d.ts +0 -19
- package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +0 -10
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +0 -21
- package/dist/esm/types/src/packages/popover/index.d.ts +0 -2
- package/dist/esm/types/src/packages/popover/popover.d.ts +0 -13
- package/dist/esm/types/src/packages/popup/index.d.ts +0 -2
- package/dist/esm/types/src/packages/popup/popup.d.ts +0 -23
- package/dist/esm/types/src/packages/price/index.d.ts +0 -2
- package/dist/esm/types/src/packages/price/price.d.ts +0 -11
- package/dist/esm/types/src/packages/radio/context.d.ts +0 -5
- package/dist/esm/types/src/packages/radio/index.d.ts +0 -2
- package/dist/esm/types/src/packages/radio/radio.d.ts +0 -21
- package/dist/esm/types/src/packages/radiogroup/index.d.ts +0 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +0 -11
- package/dist/esm/types/src/packages/range/index.d.ts +0 -2
- package/dist/esm/types/src/packages/range/range.d.ts +0 -23
- package/dist/esm/types/src/packages/rate/index.d.ts +0 -2
- package/dist/esm/types/src/packages/rate/rate.d.ts +0 -16
- package/dist/esm/types/src/packages/row/UserContext.d.ts +0 -2
- package/dist/esm/types/src/packages/row/index.d.ts +0 -2
- package/dist/esm/types/src/packages/row/row.d.ts +0 -9
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +0 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +0 -21
- package/dist/esm/types/src/packages/signature/index.d.ts +0 -2
- package/dist/esm/types/src/packages/signature/signature.d.ts +0 -11
- package/dist/esm/types/src/packages/skeleton/index.d.ts +0 -2
- package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +0 -18
- package/dist/esm/types/src/packages/step/index.d.ts +0 -2
- package/dist/esm/types/src/packages/step/step.d.ts +0 -12
- package/dist/esm/types/src/packages/steps/UserContext.d.ts +0 -2
- package/dist/esm/types/src/packages/steps/index.d.ts +0 -2
- package/dist/esm/types/src/packages/steps/steps.d.ts +0 -9
- package/dist/esm/types/src/packages/swiper/UserContext.d.ts +0 -2
- package/dist/esm/types/src/packages/swiper/index.d.ts +0 -2
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +0 -26
- package/dist/esm/types/src/packages/swiperitem/index.d.ts +0 -2
- package/dist/esm/types/src/packages/swiperitem/swiperitem.d.ts +0 -7
- package/dist/esm/types/src/packages/switch/index.d.ts +0 -2
- package/dist/esm/types/src/packages/switch/switch.d.ts +0 -14
- package/dist/esm/types/src/packages/tabbar/index.d.ts +0 -2
- package/dist/esm/types/src/packages/tabbar/tabbar.d.ts +0 -13
- package/dist/esm/types/src/packages/tabbaritem/index.d.ts +0 -2
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +0 -13
- package/dist/esm/types/src/packages/tabpane/index.d.ts +0 -2
- package/dist/esm/types/src/packages/tabpane/tabpane.d.ts +0 -8
- package/dist/esm/types/src/packages/tabs/index.d.ts +0 -2
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +0 -28
- package/dist/esm/types/src/packages/tag/index.d.ts +0 -2
- package/dist/esm/types/src/packages/tag/tag.d.ts +0 -15
- package/dist/esm/types/src/packages/textarea/index.d.ts +0 -2
- package/dist/esm/types/src/packages/textarea/textarea.d.ts +0 -18
- package/dist/esm/types/src/packages/toast/Notification.d.ts +0 -37
- package/dist/esm/types/src/packages/toast/index.d.ts +0 -2
- package/dist/esm/types/src/packages/toast/toast.d.ts +0 -11
- package/dist/esm/types/src/packages/uploader/index.d.ts +0 -2
- package/dist/esm/types/src/packages/uploader/upload.d.ts +0 -20
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +0 -59
- package/dist/esm/types/src/utils/bem.d.ts +0 -2
- package/dist/esm/types/src/utils/create/bem.d.ts +0 -2
- package/dist/esm/types/src/utils/create/index.d.ts +0 -1
- package/dist/esm/types/src/utils/date.d.ts +0 -49
- package/dist/esm/types/src/utils/index.d.ts +0 -1
- package/dist/esm/types/src/utils/raf.d.ts +0 -2
- package/dist/esm/types/src/utils/useRect/index.d.ts +0 -17
- package/dist/esm/types/src/utils/useTouch/index.d.ts +0 -16
package/dist/nutui.react.es.js
CHANGED
|
@@ -34,7 +34,7 @@ var __publicField = (obj, key, value) => {
|
|
|
34
34
|
return value;
|
|
35
35
|
};
|
|
36
36
|
/*!
|
|
37
|
-
* @nutui/nutui-react v1.1.
|
|
37
|
+
* @nutui/nutui-react v1.1.2-beta.0 Tue Mar 29 2022 14:06:09 GMT+0800 (China Standard Time)
|
|
38
38
|
* (c) 2021 @jdf2e.
|
|
39
39
|
* Released under the MIT License.
|
|
40
40
|
*/
|
|
@@ -128,7 +128,7 @@ classname_production_min.cn = e$1, classname_production_min.withNaming = r$1;
|
|
|
128
128
|
classname.exports = classname_production_min;
|
|
129
129
|
}
|
|
130
130
|
const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
131
|
-
const defaultProps$
|
|
131
|
+
const defaultProps$W = {
|
|
132
132
|
name: "",
|
|
133
133
|
size: "",
|
|
134
134
|
classPrefix: "nutui-iconfont",
|
|
@@ -142,7 +142,7 @@ function pxCheck$2(value) {
|
|
|
142
142
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
143
143
|
}
|
|
144
144
|
const Icon = (props) => {
|
|
145
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
145
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$W), props), { name, size, classPrefix, color, tag, children, className, style, click } = _a, rest = __objRest(_a, ["name", "size", "classPrefix", "color", "tag", "children", "className", "style", "click"]);
|
|
146
146
|
const isImage = name ? name.indexOf("/") !== -1 : false;
|
|
147
147
|
const type = isImage ? "img" : tag;
|
|
148
148
|
const b2 = cn("icon");
|
|
@@ -168,9 +168,9 @@ const Icon = (props) => {
|
|
|
168
168
|
onClick: handleClick
|
|
169
169
|
}), hasSrc()), children);
|
|
170
170
|
};
|
|
171
|
-
Icon.defaultProps = defaultProps$
|
|
171
|
+
Icon.defaultProps = defaultProps$W;
|
|
172
172
|
Icon.displayName = "NutIcon";
|
|
173
|
-
const defaultProps$
|
|
173
|
+
const defaultProps$V = {
|
|
174
174
|
size: "normal",
|
|
175
175
|
icon: "",
|
|
176
176
|
shape: "round",
|
|
@@ -179,7 +179,7 @@ const defaultProps$U = {
|
|
|
179
179
|
src: ""
|
|
180
180
|
};
|
|
181
181
|
const Avatar = (props) => {
|
|
182
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
182
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$V), props), { children, prefixCls, size, shape, bgColor, src, icon, className, style } = _a, rest = __objRest(_a, ["children", "prefixCls", "size", "shape", "bgColor", "src", "icon", "className", "style"]);
|
|
183
183
|
const sizeValue = ["large", "normal", "small"];
|
|
184
184
|
const classes = classNames({
|
|
185
185
|
[`${prefixCls}`]: true,
|
|
@@ -211,9 +211,9 @@ const Avatar = (props) => {
|
|
|
211
211
|
className: "text"
|
|
212
212
|
}, children));
|
|
213
213
|
};
|
|
214
|
-
Avatar.defaultProps = defaultProps$
|
|
214
|
+
Avatar.defaultProps = defaultProps$V;
|
|
215
215
|
Avatar.displayName = "NutAvatar";
|
|
216
|
-
const defaultProps$
|
|
216
|
+
const defaultProps$U = {
|
|
217
217
|
className: "",
|
|
218
218
|
color: "",
|
|
219
219
|
shape: "round",
|
|
@@ -230,7 +230,7 @@ const defaultProps$T = {
|
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
const Button = (props) => {
|
|
233
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
233
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$U), props), {
|
|
234
234
|
color,
|
|
235
235
|
shape,
|
|
236
236
|
plain,
|
|
@@ -324,7 +324,7 @@ const Button = (props) => {
|
|
|
324
324
|
name: icon
|
|
325
325
|
}) : "", children));
|
|
326
326
|
};
|
|
327
|
-
Button.defaultProps = defaultProps$
|
|
327
|
+
Button.defaultProps = defaultProps$U;
|
|
328
328
|
Button.displayName = "NutButton";
|
|
329
329
|
function _setPrototypeOf(o, p2) {
|
|
330
330
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p3) {
|
|
@@ -1533,7 +1533,7 @@ var useContext = React__default.useContext;
|
|
|
1533
1533
|
function useHistory() {
|
|
1534
1534
|
return useContext(historyContext);
|
|
1535
1535
|
}
|
|
1536
|
-
const defaultProps$
|
|
1536
|
+
const defaultProps$T = {
|
|
1537
1537
|
title: "",
|
|
1538
1538
|
subTitle: "",
|
|
1539
1539
|
desc: "",
|
|
@@ -1549,7 +1549,7 @@ const defaultProps$S = {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
1551
1551
|
const Cell = (props) => {
|
|
1552
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
1552
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$T), props), {
|
|
1553
1553
|
children,
|
|
1554
1554
|
click,
|
|
1555
1555
|
isLink,
|
|
@@ -1612,11 +1612,11 @@ const Cell = (props) => {
|
|
|
1612
1612
|
className: b2("link")
|
|
1613
1613
|
}) : null);
|
|
1614
1614
|
};
|
|
1615
|
-
Cell.defaultProps = defaultProps$
|
|
1615
|
+
Cell.defaultProps = defaultProps$T;
|
|
1616
1616
|
Cell.displayName = "NutCell";
|
|
1617
|
-
const defaultProps$
|
|
1617
|
+
const defaultProps$S = { title: "", classPrefix: "nutui-cell-group" };
|
|
1618
1618
|
const CellGroup = (props) => {
|
|
1619
|
-
const { children, classPrefix, title } = __spreadValues(__spreadValues({}, defaultProps$
|
|
1619
|
+
const { children, classPrefix, title } = __spreadValues(__spreadValues({}, defaultProps$S), props);
|
|
1620
1620
|
const b2 = cn("cell-group");
|
|
1621
1621
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
1622
1622
|
className: b2(null, [classPrefix])
|
|
@@ -1626,9 +1626,9 @@ const CellGroup = (props) => {
|
|
|
1626
1626
|
className: b2("wrap")
|
|
1627
1627
|
}, children));
|
|
1628
1628
|
};
|
|
1629
|
-
CellGroup.defaultProps = defaultProps$
|
|
1629
|
+
CellGroup.defaultProps = defaultProps$S;
|
|
1630
1630
|
CellGroup.displayName = "NutCellGroup";
|
|
1631
|
-
const defaultProps$
|
|
1631
|
+
const defaultProps$R = {
|
|
1632
1632
|
price: 0,
|
|
1633
1633
|
needSymbol: true,
|
|
1634
1634
|
symbol: "¥",
|
|
@@ -1637,7 +1637,7 @@ const defaultProps$Q = {
|
|
|
1637
1637
|
className: ""
|
|
1638
1638
|
};
|
|
1639
1639
|
const Price = (props) => {
|
|
1640
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
1640
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$R), props), { price, needSymbol, symbol, decimalDigits, thousands, className } = _a, rest = __objRest(_a, ["price", "needSymbol", "symbol", "decimalDigits", "thousands", "className"]);
|
|
1641
1641
|
const b2 = cn("price");
|
|
1642
1642
|
const showSymbol = () => {
|
|
1643
1643
|
return { __html: (needSymbol ? symbol : "") || "" };
|
|
@@ -1687,7 +1687,7 @@ const Price = (props) => {
|
|
|
1687
1687
|
className: `${b2("small")}`
|
|
1688
1688
|
}, formatDecimal(price)));
|
|
1689
1689
|
};
|
|
1690
|
-
Price.defaultProps = defaultProps$
|
|
1690
|
+
Price.defaultProps = defaultProps$R;
|
|
1691
1691
|
Price.displayName = "NutPrice";
|
|
1692
1692
|
const defaultOverlayProps = {
|
|
1693
1693
|
zIndex: 2e3,
|
|
@@ -1768,13 +1768,13 @@ const Overlay = (props) => {
|
|
|
1768
1768
|
};
|
|
1769
1769
|
Overlay.defaultProps = defaultOverlayProps;
|
|
1770
1770
|
Overlay.displayName = "NutOverlay";
|
|
1771
|
-
const defaultProps$
|
|
1771
|
+
const defaultProps$Q = {
|
|
1772
1772
|
contentPosition: "center",
|
|
1773
1773
|
dashed: false,
|
|
1774
1774
|
hairline: true
|
|
1775
1775
|
};
|
|
1776
1776
|
const Divider = (props) => {
|
|
1777
|
-
const { children, contentPosition, dashed, hairline, styles, className } = __spreadValues(__spreadValues({}, defaultProps$
|
|
1777
|
+
const { children, contentPosition, dashed, hairline, styles, className } = __spreadValues(__spreadValues({}, defaultProps$Q), props);
|
|
1778
1778
|
const dividerBem = cn("divider");
|
|
1779
1779
|
const classes = classNames({
|
|
1780
1780
|
[dividerBem()]: true,
|
|
@@ -1789,19 +1789,19 @@ const Divider = (props) => {
|
|
|
1789
1789
|
style: styles
|
|
1790
1790
|
}, children);
|
|
1791
1791
|
};
|
|
1792
|
-
Divider.defaultProps = defaultProps$
|
|
1792
|
+
Divider.defaultProps = defaultProps$Q;
|
|
1793
1793
|
Divider.displayName = "NutDivider";
|
|
1794
|
-
const defaultProps$
|
|
1794
|
+
const defaultProps$P = {};
|
|
1795
1795
|
const Layout = (props) => {
|
|
1796
|
-
__spreadValues(__spreadValues({}, defaultProps$
|
|
1796
|
+
__spreadValues(__spreadValues({}, defaultProps$P), props);
|
|
1797
1797
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
1798
1798
|
className: "nut-layout"
|
|
1799
1799
|
}, "Layout");
|
|
1800
1800
|
};
|
|
1801
|
-
Layout.defaultProps = defaultProps$
|
|
1801
|
+
Layout.defaultProps = defaultProps$P;
|
|
1802
1802
|
Layout.displayName = "NutLayout";
|
|
1803
1803
|
const DataContext$2 = createContext({});
|
|
1804
|
-
const defaultProps$
|
|
1804
|
+
const defaultProps$O = {
|
|
1805
1805
|
type: "",
|
|
1806
1806
|
justify: "start",
|
|
1807
1807
|
align: "flex-start",
|
|
@@ -1809,7 +1809,7 @@ const defaultProps$N = {
|
|
|
1809
1809
|
gutter: "0"
|
|
1810
1810
|
};
|
|
1811
1811
|
const Row = (props) => {
|
|
1812
|
-
const { children, type, justify, align, wrap, gutter } = __spreadValues(__spreadValues({}, defaultProps$
|
|
1812
|
+
const { children, type, justify, align, wrap, gutter } = __spreadValues(__spreadValues({}, defaultProps$O), props);
|
|
1813
1813
|
const prefixCls = "nut-row";
|
|
1814
1814
|
const getClass = (prefix2, type2) => {
|
|
1815
1815
|
return prefix2 ? type2 ? `nut-row-${prefix2}-${type2}` : "" : `nut-row-${type2}`;
|
|
@@ -1832,15 +1832,15 @@ const Row = (props) => {
|
|
|
1832
1832
|
className: getClasses()
|
|
1833
1833
|
}, children));
|
|
1834
1834
|
};
|
|
1835
|
-
Row.defaultProps = defaultProps$
|
|
1835
|
+
Row.defaultProps = defaultProps$O;
|
|
1836
1836
|
Row.displayName = "NutRow";
|
|
1837
|
-
const defaultProps$
|
|
1837
|
+
const defaultProps$N = {
|
|
1838
1838
|
span: "24",
|
|
1839
1839
|
offset: "0",
|
|
1840
1840
|
gutter: "0"
|
|
1841
1841
|
};
|
|
1842
1842
|
const Col = (props) => {
|
|
1843
|
-
const { span, offset, children } = __spreadValues(__spreadValues({}, defaultProps$
|
|
1843
|
+
const { span, offset, children } = __spreadValues(__spreadValues({}, defaultProps$N), props);
|
|
1844
1844
|
const [colName, setColName] = useState("");
|
|
1845
1845
|
const [colStyle, setColStyle] = useState({});
|
|
1846
1846
|
const { gutter } = useContext$1(DataContext$2);
|
|
@@ -1863,7 +1863,7 @@ const Col = (props) => {
|
|
|
1863
1863
|
style: __spreadValues({}, colStyle)
|
|
1864
1864
|
}, children);
|
|
1865
1865
|
};
|
|
1866
|
-
Col.defaultProps = defaultProps$
|
|
1866
|
+
Col.defaultProps = defaultProps$N;
|
|
1867
1867
|
Col.displayName = "NutCol";
|
|
1868
1868
|
class Notification$1 extends React.PureComponent {
|
|
1869
1869
|
constructor(props) {
|
|
@@ -2630,7 +2630,7 @@ function confirm(config2, renderFunc) {
|
|
|
2630
2630
|
update: update2
|
|
2631
2631
|
};
|
|
2632
2632
|
}
|
|
2633
|
-
const defaultProps$
|
|
2633
|
+
const defaultProps$M = {
|
|
2634
2634
|
okText: "\u786E\u5B9A",
|
|
2635
2635
|
cancelText: "\u53D6\u6D88",
|
|
2636
2636
|
mask: true,
|
|
@@ -2698,9 +2698,9 @@ Dialog.confirm = (props) => {
|
|
|
2698
2698
|
}));
|
|
2699
2699
|
};
|
|
2700
2700
|
});
|
|
2701
|
-
Dialog.defaultProps = defaultProps$
|
|
2701
|
+
Dialog.defaultProps = defaultProps$M;
|
|
2702
2702
|
Dialog.displayName = "NutDialog";
|
|
2703
|
-
const defaultProps$
|
|
2703
|
+
const defaultProps$L = __spreadValues({
|
|
2704
2704
|
position: "center",
|
|
2705
2705
|
transition: "",
|
|
2706
2706
|
style: {},
|
|
@@ -2849,9 +2849,9 @@ const Popup = (props) => {
|
|
|
2849
2849
|
size: "12px"
|
|
2850
2850
|
})) : "")));
|
|
2851
2851
|
};
|
|
2852
|
-
Popup.defaultProps = defaultProps$
|
|
2852
|
+
Popup.defaultProps = defaultProps$L;
|
|
2853
2853
|
Popup.displayName = "NutPopup";
|
|
2854
|
-
const defaultProps$
|
|
2854
|
+
const defaultProps$K = {
|
|
2855
2855
|
cancelTxt: "",
|
|
2856
2856
|
optionTag: "name",
|
|
2857
2857
|
optionSubTag: "subname",
|
|
@@ -2869,7 +2869,7 @@ const defaultProps$J = {
|
|
|
2869
2869
|
style: {}
|
|
2870
2870
|
};
|
|
2871
2871
|
const ActionSheet = (props) => {
|
|
2872
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
2872
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$K), props), {
|
|
2873
2873
|
cancelTxt,
|
|
2874
2874
|
optionTag,
|
|
2875
2875
|
optionSubTag,
|
|
@@ -2940,7 +2940,7 @@ const ActionSheet = (props) => {
|
|
|
2940
2940
|
onClick: () => cancelActionSheet()
|
|
2941
2941
|
}, cancelTxt)));
|
|
2942
2942
|
};
|
|
2943
|
-
ActionSheet.defaultProps = defaultProps$
|
|
2943
|
+
ActionSheet.defaultProps = defaultProps$K;
|
|
2944
2944
|
ActionSheet.displayName = "NutActionSheet";
|
|
2945
2945
|
const InternalPickerSlot = (props, ref) => {
|
|
2946
2946
|
const { isUpdate, keyIndex = 0, defaultValue, listData = [], chooseItem } = props;
|
|
@@ -3253,7 +3253,7 @@ const InternalPicker = (props, ref) => {
|
|
|
3253
3253
|
}))));
|
|
3254
3254
|
};
|
|
3255
3255
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
3256
|
-
const defaultProps$
|
|
3256
|
+
const defaultProps$J = {
|
|
3257
3257
|
hasMore: true,
|
|
3258
3258
|
threshold: 200,
|
|
3259
3259
|
containerId: "",
|
|
@@ -3267,7 +3267,7 @@ const defaultProps$I = {
|
|
|
3267
3267
|
loadMoreTxt: "\u54CE\u5440\uFF0C\u8FD9\u91CC\u662F\u5E95\u90E8\u4E86\u5566"
|
|
3268
3268
|
};
|
|
3269
3269
|
const Infiniteloading = (props) => {
|
|
3270
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
3270
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$J), props), {
|
|
3271
3271
|
children,
|
|
3272
3272
|
hasMore,
|
|
3273
3273
|
threshold,
|
|
@@ -3455,7 +3455,7 @@ const Infiniteloading = (props) => {
|
|
|
3455
3455
|
className: "tips"
|
|
3456
3456
|
}, loadMoreTxt)));
|
|
3457
3457
|
};
|
|
3458
|
-
Infiniteloading.defaultProps = defaultProps$
|
|
3458
|
+
Infiniteloading.defaultProps = defaultProps$J;
|
|
3459
3459
|
Infiniteloading.displayName = "NutInfiniteloading";
|
|
3460
3460
|
function fillRef(ref, node) {
|
|
3461
3461
|
if (typeof ref === "function") {
|
|
@@ -3512,7 +3512,7 @@ const getEleAttr = (ele) => {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
return null;
|
|
3514
3514
|
};
|
|
3515
|
-
const defaultProps$
|
|
3515
|
+
const defaultProps$I = {
|
|
3516
3516
|
list: [],
|
|
3517
3517
|
theme: "light",
|
|
3518
3518
|
location: "bottom",
|
|
@@ -3522,7 +3522,7 @@ const defaultProps$H = {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
};
|
|
3524
3524
|
const Popover = (props) => {
|
|
3525
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
3525
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$I), props), { children, list, theme, location: location2, visible, className, style, onClick } = _a, reset = __objRest(_a, ["children", "list", "theme", "location", "visible", "className", "style", "onClick"]);
|
|
3526
3526
|
const goodItem = useRef(null);
|
|
3527
3527
|
const aa = goodItem.current && findDOMNode(goodItem.current);
|
|
3528
3528
|
setTimeout(() => {
|
|
@@ -3628,9 +3628,9 @@ const Popover = (props) => {
|
|
|
3628
3628
|
}, item.name));
|
|
3629
3629
|
})) : null)));
|
|
3630
3630
|
};
|
|
3631
|
-
Popover.defaultProps = defaultProps$
|
|
3631
|
+
Popover.defaultProps = defaultProps$I;
|
|
3632
3632
|
Popover.displayName = "NutPopover";
|
|
3633
|
-
const defaultProps$
|
|
3633
|
+
const defaultProps$H = {
|
|
3634
3634
|
activeName: ["0"],
|
|
3635
3635
|
accordion: false,
|
|
3636
3636
|
icon: "",
|
|
@@ -3642,7 +3642,7 @@ function areEqual(prevProps, nextProps) {
|
|
|
3642
3642
|
return JSON.stringify(prevProps.activeName) == JSON.stringify(nextProps.activeName);
|
|
3643
3643
|
}
|
|
3644
3644
|
const Collapse = memo((props) => {
|
|
3645
|
-
const { children, activeName, accordion, icon, rotate, iconSize, iconColor, change } = __spreadValues(__spreadValues({}, defaultProps$
|
|
3645
|
+
const { children, activeName, accordion, icon, rotate, iconSize, iconColor, change } = __spreadValues(__spreadValues({}, defaultProps$H), props);
|
|
3646
3646
|
const childrenDom = React__default.Children.toArray(children);
|
|
3647
3647
|
const [defaultOpenIndex, setDefaultOpenIndex] = useState([]);
|
|
3648
3648
|
const handleActiveName = () => {
|
|
@@ -3695,9 +3695,9 @@ const Collapse = memo((props) => {
|
|
|
3695
3695
|
});
|
|
3696
3696
|
}));
|
|
3697
3697
|
}, areEqual);
|
|
3698
|
-
Collapse.defaultProps = defaultProps$
|
|
3698
|
+
Collapse.defaultProps = defaultProps$H;
|
|
3699
3699
|
Collapse.displayName = "NutCollapse";
|
|
3700
|
-
const defaultProps$
|
|
3700
|
+
const defaultProps$G = {
|
|
3701
3701
|
title: "",
|
|
3702
3702
|
name: "",
|
|
3703
3703
|
isOpen: false,
|
|
@@ -3729,7 +3729,7 @@ const CollapseItem = (props) => {
|
|
|
3729
3729
|
titleIconSize,
|
|
3730
3730
|
iconSize,
|
|
3731
3731
|
iconColor
|
|
3732
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
3732
|
+
} = __spreadValues(__spreadValues({}, defaultProps$G), props);
|
|
3733
3733
|
const [domHeight, setDomHeight] = useState(-1);
|
|
3734
3734
|
const [currHeight, setCurrHeight] = useState("auto");
|
|
3735
3735
|
const [update2, setUpdate] = useState(false);
|
|
@@ -3795,7 +3795,7 @@ const CollapseItem = (props) => {
|
|
|
3795
3795
|
className: colBem("content-text")
|
|
3796
3796
|
}, children)));
|
|
3797
3797
|
};
|
|
3798
|
-
CollapseItem.defaultProps = defaultProps$
|
|
3798
|
+
CollapseItem.defaultProps = defaultProps$G;
|
|
3799
3799
|
CollapseItem.displayName = "NutCollapseItem";
|
|
3800
3800
|
const MIN_DISTANCE = 10;
|
|
3801
3801
|
function getDirection(x2, y2) {
|
|
@@ -3885,7 +3885,7 @@ const useRect = (elementRef) => {
|
|
|
3885
3885
|
height: 0
|
|
3886
3886
|
};
|
|
3887
3887
|
};
|
|
3888
|
-
const defaultProps$
|
|
3888
|
+
const defaultProps$F = {
|
|
3889
3889
|
range: false,
|
|
3890
3890
|
hiddenRange: false,
|
|
3891
3891
|
hiddenTag: false,
|
|
@@ -3914,7 +3914,7 @@ const Range = (props) => {
|
|
|
3914
3914
|
change,
|
|
3915
3915
|
dragStart,
|
|
3916
3916
|
dragEnd
|
|
3917
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
3917
|
+
} = __spreadValues(__spreadValues({}, defaultProps$F), props);
|
|
3918
3918
|
const [buttonIndex, SetButtonIndex] = useState(0);
|
|
3919
3919
|
const [initValue, SetInitValue] = useState();
|
|
3920
3920
|
const [dragStatus, SetDragStatus] = useState("start");
|
|
@@ -4123,16 +4123,16 @@ const Range = (props) => {
|
|
|
4123
4123
|
className: "max"
|
|
4124
4124
|
}, +max) : null);
|
|
4125
4125
|
};
|
|
4126
|
-
Range.defaultProps = defaultProps$
|
|
4126
|
+
Range.defaultProps = defaultProps$F;
|
|
4127
4127
|
Range.displayName = "NutRange";
|
|
4128
|
-
const defaultProps$
|
|
4128
|
+
const defaultProps$E = {
|
|
4129
4129
|
strokeInnerWidth: 10,
|
|
4130
4130
|
progress: 10,
|
|
4131
4131
|
isAuto: false,
|
|
4132
4132
|
progressOption: {}
|
|
4133
4133
|
};
|
|
4134
4134
|
const CircleProgress = (props) => {
|
|
4135
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
4135
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$E), props), {
|
|
4136
4136
|
children,
|
|
4137
4137
|
strokeInnerWidth,
|
|
4138
4138
|
progress,
|
|
@@ -4206,9 +4206,9 @@ const CircleProgress = (props) => {
|
|
|
4206
4206
|
className: "nut-circleprogress-content"
|
|
4207
4207
|
}, !isAuto ? `${progress}%` : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children)));
|
|
4208
4208
|
};
|
|
4209
|
-
CircleProgress.defaultProps = defaultProps$
|
|
4209
|
+
CircleProgress.defaultProps = defaultProps$E;
|
|
4210
4210
|
CircleProgress.displayName = "NutCircleProgress";
|
|
4211
|
-
const defaultProps$
|
|
4211
|
+
const defaultProps$D = {
|
|
4212
4212
|
direction: "across",
|
|
4213
4213
|
list: [],
|
|
4214
4214
|
standTime: 1e3,
|
|
@@ -4246,7 +4246,7 @@ const NoticeBar = (props) => {
|
|
|
4246
4246
|
rightIcon,
|
|
4247
4247
|
close,
|
|
4248
4248
|
click
|
|
4249
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
4249
|
+
} = __spreadValues(__spreadValues({}, defaultProps$D), props);
|
|
4250
4250
|
const wrap = useRef(null);
|
|
4251
4251
|
const content = useRef(null);
|
|
4252
4252
|
const [showNoticeBar, SetShowNoticeBar] = useState(true);
|
|
@@ -4459,7 +4459,7 @@ const NoticeBar = (props) => {
|
|
|
4459
4459
|
size: "11px"
|
|
4460
4460
|
}) : null))) : null);
|
|
4461
4461
|
};
|
|
4462
|
-
NoticeBar.defaultProps = defaultProps$
|
|
4462
|
+
NoticeBar.defaultProps = defaultProps$D;
|
|
4463
4463
|
NoticeBar.displayName = "NutNoticeBar";
|
|
4464
4464
|
class Notification extends React.PureComponent {
|
|
4465
4465
|
constructor(props) {
|
|
@@ -4616,7 +4616,7 @@ var Notify = {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
4618
|
};
|
|
4619
|
-
const defaultProps$
|
|
4619
|
+
const defaultProps$C = {
|
|
4620
4620
|
isAsync: false,
|
|
4621
4621
|
checked: false,
|
|
4622
4622
|
disable: false,
|
|
@@ -4638,7 +4638,7 @@ const Switch = (props) => {
|
|
|
4638
4638
|
change,
|
|
4639
4639
|
className,
|
|
4640
4640
|
style
|
|
4641
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
4641
|
+
} = __spreadValues(__spreadValues({}, defaultProps$C), props);
|
|
4642
4642
|
const [value, setValue] = useState(false);
|
|
4643
4643
|
const b2 = cn("switch");
|
|
4644
4644
|
useEffect(() => {
|
|
@@ -4675,9 +4675,9 @@ const Switch = (props) => {
|
|
|
4675
4675
|
className: `${b2("label")} close`
|
|
4676
4676
|
}, inactiveText))));
|
|
4677
4677
|
};
|
|
4678
|
-
Switch.defaultProps = defaultProps$
|
|
4678
|
+
Switch.defaultProps = defaultProps$C;
|
|
4679
4679
|
Switch.displayName = "NutSwitch";
|
|
4680
|
-
const defaultProps$
|
|
4680
|
+
const defaultProps$B = {
|
|
4681
4681
|
title: "",
|
|
4682
4682
|
desc: "",
|
|
4683
4683
|
leftShow: false,
|
|
@@ -4698,7 +4698,7 @@ const NavBar = (props) => {
|
|
|
4698
4698
|
onClickIcon,
|
|
4699
4699
|
onClickBack,
|
|
4700
4700
|
onClickClear
|
|
4701
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
4701
|
+
} = __spreadValues(__spreadValues({}, defaultProps$B), props);
|
|
4702
4702
|
const b2 = cn("navbar");
|
|
4703
4703
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
4704
4704
|
className: `nut-navbar ${className}`,
|
|
@@ -4721,9 +4721,9 @@ const NavBar = (props) => {
|
|
|
4721
4721
|
name: icon
|
|
4722
4722
|
})));
|
|
4723
4723
|
};
|
|
4724
|
-
NavBar.defaultProps = defaultProps$
|
|
4724
|
+
NavBar.defaultProps = defaultProps$B;
|
|
4725
4725
|
NavBar.displayName = "NutNavBar";
|
|
4726
|
-
const defaultProps$
|
|
4726
|
+
const defaultProps$A = {
|
|
4727
4727
|
visible: 0,
|
|
4728
4728
|
bottom: false,
|
|
4729
4729
|
type: "",
|
|
@@ -4736,7 +4736,7 @@ const defaultProps$z = {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
};
|
|
4738
4738
|
const Tabbar = (props) => {
|
|
4739
|
-
const { children, visible, bottom, activeColor, unactiveColor, className, style, tabSwitch } = __spreadValues(__spreadValues({}, defaultProps$
|
|
4739
|
+
const { children, visible, bottom, activeColor, unactiveColor, className, style, tabSwitch } = __spreadValues(__spreadValues({}, defaultProps$A), props);
|
|
4740
4740
|
const b2 = cn("tabbar");
|
|
4741
4741
|
const [selectIndex, setSelectIndex] = useState(visible);
|
|
4742
4742
|
const handleClick = (idx) => {
|
|
@@ -4762,9 +4762,9 @@ const Tabbar = (props) => {
|
|
|
4762
4762
|
return React__default.cloneElement(child, childProps);
|
|
4763
4763
|
}));
|
|
4764
4764
|
};
|
|
4765
|
-
Tabbar.defaultProps = defaultProps$
|
|
4765
|
+
Tabbar.defaultProps = defaultProps$A;
|
|
4766
4766
|
Tabbar.displayName = "NutTabbar";
|
|
4767
|
-
const defaultProps$
|
|
4767
|
+
const defaultProps$z = {
|
|
4768
4768
|
tabTitle: "",
|
|
4769
4769
|
icon: "",
|
|
4770
4770
|
href: "",
|
|
@@ -4777,7 +4777,7 @@ const defaultProps$y = {
|
|
|
4777
4777
|
}
|
|
4778
4778
|
};
|
|
4779
4779
|
const TabbarItem = (props) => {
|
|
4780
|
-
const { tabTitle, icon, href, num, active, activeColor, unactiveColor, index: index2, handleClick } = __spreadValues(__spreadValues({}, defaultProps$
|
|
4780
|
+
const { tabTitle, icon, href, num, active, activeColor, unactiveColor, index: index2, handleClick } = __spreadValues(__spreadValues({}, defaultProps$z), props);
|
|
4781
4781
|
const b2 = cn("tabbar-item");
|
|
4782
4782
|
const bIcon = cn("tabbar-item__icon-box");
|
|
4783
4783
|
useEffect(() => {
|
|
@@ -4806,14 +4806,14 @@ const TabbarItem = (props) => {
|
|
|
4806
4806
|
className: bIcon({ "nav-word": true }, [bIcon({ "big-word": !icon })])
|
|
4807
4807
|
}, tabTitle)));
|
|
4808
4808
|
};
|
|
4809
|
-
const defaultProps$
|
|
4809
|
+
const defaultProps$y = {
|
|
4810
4810
|
height: "200px",
|
|
4811
4811
|
acceptKey: "title",
|
|
4812
4812
|
indexList: [],
|
|
4813
4813
|
className: ""
|
|
4814
4814
|
};
|
|
4815
4815
|
const Elevator = (props) => {
|
|
4816
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
4816
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$y), props), { height, acceptKey, indexList, className, clickItem, clickIndex } = _a, rest = __objRest(_a, ["height", "acceptKey", "indexList", "className", "clickItem", "clickIndex"]);
|
|
4817
4817
|
const b2 = cn("elevator");
|
|
4818
4818
|
const spaceHeight = 23;
|
|
4819
4819
|
const listview = useRef(null);
|
|
@@ -4947,9 +4947,9 @@ const Elevator = (props) => {
|
|
|
4947
4947
|
}, item[acceptKey]);
|
|
4948
4948
|
}))));
|
|
4949
4949
|
};
|
|
4950
|
-
Elevator.defaultProps = defaultProps$
|
|
4950
|
+
Elevator.defaultProps = defaultProps$y;
|
|
4951
4951
|
Elevator.displayName = "NutElevator";
|
|
4952
|
-
const defaultProps$
|
|
4952
|
+
const defaultProps$x = {
|
|
4953
4953
|
fixednavClass: "nut-fixednav",
|
|
4954
4954
|
activeText: "\u6536\u8D77\u5BFC\u822A",
|
|
4955
4955
|
unActiveText: "\u5FEB\u901F\u5BFC\u822A",
|
|
@@ -4960,7 +4960,7 @@ const defaultProps$w = {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
};
|
|
4962
4962
|
const FixedNav = (props) => {
|
|
4963
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
4963
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$x), props), {
|
|
4964
4964
|
fixednavClass,
|
|
4965
4965
|
overlay,
|
|
4966
4966
|
visible,
|
|
@@ -5030,9 +5030,9 @@ const FixedNav = (props) => {
|
|
|
5030
5030
|
className: "text"
|
|
5031
5031
|
}, visible ? activeText : unActiveText))));
|
|
5032
5032
|
};
|
|
5033
|
-
FixedNav.defaultProps = defaultProps$
|
|
5033
|
+
FixedNav.defaultProps = defaultProps$x;
|
|
5034
5034
|
FixedNav.displayName = "NutFixedNav";
|
|
5035
|
-
const defaultProps$
|
|
5035
|
+
const defaultProps$w = {
|
|
5036
5036
|
defaultValue: 1,
|
|
5037
5037
|
mode: "multi",
|
|
5038
5038
|
prevText: "\u4E0A\u4E00\u9875",
|
|
@@ -5048,7 +5048,7 @@ const defaultProps$v = {
|
|
|
5048
5048
|
}
|
|
5049
5049
|
};
|
|
5050
5050
|
const Pagination = (props) => {
|
|
5051
|
-
__spreadValues(__spreadValues({}, defaultProps$
|
|
5051
|
+
__spreadValues(__spreadValues({}, defaultProps$w), props);
|
|
5052
5052
|
const _a = props, {
|
|
5053
5053
|
modelValue,
|
|
5054
5054
|
mode,
|
|
@@ -5178,16 +5178,16 @@ const Pagination = (props) => {
|
|
|
5178
5178
|
onClick: (e2) => selectPage(Number(currentPage) + 1, true)
|
|
5179
5179
|
}, nextText));
|
|
5180
5180
|
};
|
|
5181
|
-
Pagination.defaultProps = defaultProps$
|
|
5181
|
+
Pagination.defaultProps = defaultProps$w;
|
|
5182
5182
|
Pagination.displayName = "NutPagination";
|
|
5183
5183
|
const DataContext$1 = createContext({});
|
|
5184
|
-
const defaultProps$
|
|
5184
|
+
const defaultProps$v = {
|
|
5185
5185
|
current: 0,
|
|
5186
5186
|
direction: "horizontal",
|
|
5187
5187
|
progressDot: false
|
|
5188
5188
|
};
|
|
5189
5189
|
const Steps = (props) => {
|
|
5190
|
-
const propSteps = __spreadValues(__spreadValues({}, defaultProps$
|
|
5190
|
+
const propSteps = __spreadValues(__spreadValues({}, defaultProps$v), props);
|
|
5191
5191
|
const _a = propSteps, { children, direction, className } = _a, restProps = __objRest(_a, ["children", "direction", "className"]);
|
|
5192
5192
|
const parentSteps = {
|
|
5193
5193
|
propSteps
|
|
@@ -5203,9 +5203,9 @@ const Steps = (props) => {
|
|
|
5203
5203
|
className: classes
|
|
5204
5204
|
}, restProps), children));
|
|
5205
5205
|
};
|
|
5206
|
-
Steps.defaultProps = defaultProps$
|
|
5206
|
+
Steps.defaultProps = defaultProps$v;
|
|
5207
5207
|
Steps.displayName = "NutSteps";
|
|
5208
|
-
const defaultProps$
|
|
5208
|
+
const defaultProps$u = {
|
|
5209
5209
|
title: "",
|
|
5210
5210
|
content: "",
|
|
5211
5211
|
activeIndex: 0,
|
|
@@ -5213,7 +5213,7 @@ const defaultProps$t = {
|
|
|
5213
5213
|
size: "12px"
|
|
5214
5214
|
};
|
|
5215
5215
|
const Step = (props) => {
|
|
5216
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
5216
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$u), props), {
|
|
5217
5217
|
children,
|
|
5218
5218
|
title,
|
|
5219
5219
|
content,
|
|
@@ -5268,10 +5268,10 @@ const Step = (props) => {
|
|
|
5268
5268
|
className: "nut-step-content"
|
|
5269
5269
|
}, renderContent())));
|
|
5270
5270
|
};
|
|
5271
|
-
Step.defaultProps = defaultProps$
|
|
5271
|
+
Step.defaultProps = defaultProps$u;
|
|
5272
5272
|
Step.displayName = "NutStep";
|
|
5273
5273
|
const DataContext = createContext({});
|
|
5274
|
-
const defaultProps$
|
|
5274
|
+
const defaultProps$t = {
|
|
5275
5275
|
width: window.innerWidth,
|
|
5276
5276
|
height: 0,
|
|
5277
5277
|
duration: 500,
|
|
@@ -5288,7 +5288,7 @@ const defaultProps$s = {
|
|
|
5288
5288
|
};
|
|
5289
5289
|
const DISTANCE = 5;
|
|
5290
5290
|
const Swiper = React__default.forwardRef((props, ref) => {
|
|
5291
|
-
const propSwiper = __spreadValues(__spreadValues({}, defaultProps$
|
|
5291
|
+
const propSwiper = __spreadValues(__spreadValues({}, defaultProps$t), props);
|
|
5292
5292
|
const _a = propSwiper, {
|
|
5293
5293
|
children,
|
|
5294
5294
|
direction,
|
|
@@ -5664,13 +5664,13 @@ const Swiper = React__default.forwardRef((props, ref) => {
|
|
|
5664
5664
|
});
|
|
5665
5665
|
})) : /* @__PURE__ */ React__default.createElement("div", null, pageContent)));
|
|
5666
5666
|
});
|
|
5667
|
-
Swiper.defaultProps = defaultProps$
|
|
5667
|
+
Swiper.defaultProps = defaultProps$t;
|
|
5668
5668
|
Swiper.displayName = "NutSwiper";
|
|
5669
|
-
const defaultProps$
|
|
5669
|
+
const defaultProps$s = {
|
|
5670
5670
|
direction: "horizontal"
|
|
5671
5671
|
};
|
|
5672
5672
|
const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
5673
|
-
const _props = __spreadValues(__spreadValues({}, defaultProps$
|
|
5673
|
+
const _props = __spreadValues(__spreadValues({}, defaultProps$s), props);
|
|
5674
5674
|
const { children, direction, size } = _props;
|
|
5675
5675
|
const parent = useContext$1(DataContext);
|
|
5676
5676
|
const [offset, setOffset] = useState(0);
|
|
@@ -5698,9 +5698,9 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
|
5698
5698
|
style: style()
|
|
5699
5699
|
}, children);
|
|
5700
5700
|
});
|
|
5701
|
-
SwiperItem.defaultProps = defaultProps$
|
|
5701
|
+
SwiperItem.defaultProps = defaultProps$s;
|
|
5702
5702
|
SwiperItem.displayName = "NutSwiperItem";
|
|
5703
|
-
const defaultProps$
|
|
5703
|
+
const defaultProps$r = {
|
|
5704
5704
|
bottom: 20,
|
|
5705
5705
|
right: 10,
|
|
5706
5706
|
elId: "",
|
|
@@ -5722,7 +5722,7 @@ const BackTop = (props) => {
|
|
|
5722
5722
|
duration,
|
|
5723
5723
|
style,
|
|
5724
5724
|
backTopClick
|
|
5725
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
5725
|
+
} = __spreadValues(__spreadValues({}, defaultProps$r), props);
|
|
5726
5726
|
const [backTop, SetBackTop] = useState(false);
|
|
5727
5727
|
const [scrollTop, SetScrollTop] = useState(0);
|
|
5728
5728
|
let startTime = 0;
|
|
@@ -5805,7 +5805,7 @@ const BackTop = (props) => {
|
|
|
5805
5805
|
name: "top"
|
|
5806
5806
|
}));
|
|
5807
5807
|
};
|
|
5808
|
-
BackTop.defaultProps = defaultProps$
|
|
5808
|
+
BackTop.defaultProps = defaultProps$r;
|
|
5809
5809
|
BackTop.displayName = "NutBackTop";
|
|
5810
5810
|
class Title {
|
|
5811
5811
|
constructor() {
|
|
@@ -5815,7 +5815,7 @@ class Title {
|
|
|
5815
5815
|
__publicField(this, "index", 0);
|
|
5816
5816
|
}
|
|
5817
5817
|
}
|
|
5818
|
-
const defaultProps$
|
|
5818
|
+
const defaultProps$q = {
|
|
5819
5819
|
value: 0,
|
|
5820
5820
|
color: "",
|
|
5821
5821
|
background: "",
|
|
@@ -5831,7 +5831,7 @@ const pxCheck$1 = (value) => {
|
|
|
5831
5831
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
5832
5832
|
};
|
|
5833
5833
|
const Tabs = (props) => {
|
|
5834
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
5834
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$q), props), {
|
|
5835
5835
|
value,
|
|
5836
5836
|
color,
|
|
5837
5837
|
background,
|
|
@@ -5952,16 +5952,16 @@ const Tabs = (props) => {
|
|
|
5952
5952
|
return React__default.cloneElement(child, childProps);
|
|
5953
5953
|
})));
|
|
5954
5954
|
};
|
|
5955
|
-
Tabs.defaultProps = defaultProps$
|
|
5955
|
+
Tabs.defaultProps = defaultProps$q;
|
|
5956
5956
|
Tabs.displayName = "NutTabs";
|
|
5957
|
-
const defaultProps$
|
|
5957
|
+
const defaultProps$p = {
|
|
5958
5958
|
title: "",
|
|
5959
5959
|
paneKey: "",
|
|
5960
5960
|
activeKey: "",
|
|
5961
5961
|
disabled: false
|
|
5962
5962
|
};
|
|
5963
5963
|
const TabPane = (props) => {
|
|
5964
|
-
const { children, paneKey, activeKey } = __spreadValues(__spreadValues({}, defaultProps$
|
|
5964
|
+
const { children, paneKey, activeKey } = __spreadValues(__spreadValues({}, defaultProps$p), props);
|
|
5965
5965
|
const b2 = cn("tabpane");
|
|
5966
5966
|
const classes = classNames({
|
|
5967
5967
|
active: paneKey === activeKey
|
|
@@ -5970,7 +5970,7 @@ const TabPane = (props) => {
|
|
|
5970
5970
|
className: classes
|
|
5971
5971
|
}, children);
|
|
5972
5972
|
};
|
|
5973
|
-
const defaultProps$
|
|
5973
|
+
const defaultProps$o = {
|
|
5974
5974
|
count: 5,
|
|
5975
5975
|
modelValue: 0,
|
|
5976
5976
|
iconSize: 18,
|
|
@@ -5997,7 +5997,7 @@ const Rate = (props) => {
|
|
|
5997
5997
|
allowHalf,
|
|
5998
5998
|
spacing,
|
|
5999
5999
|
change
|
|
6000
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
6000
|
+
} = __spreadValues(__spreadValues({}, defaultProps$o), props);
|
|
6001
6001
|
const b2 = cn("rate");
|
|
6002
6002
|
const bi = cn("rate-item");
|
|
6003
6003
|
const [countArray, setCountArray] = useState([1, 2, 3, 4, 5]);
|
|
@@ -6060,7 +6060,7 @@ const Rate = (props) => {
|
|
|
6060
6060
|
}));
|
|
6061
6061
|
}));
|
|
6062
6062
|
};
|
|
6063
|
-
Rate.defaultProps = defaultProps$
|
|
6063
|
+
Rate.defaultProps = defaultProps$o;
|
|
6064
6064
|
Rate.displayName = "NutRate";
|
|
6065
6065
|
function trimExtraChar(value, char, regExp) {
|
|
6066
6066
|
const index2 = value.indexOf(char);
|
|
@@ -6086,7 +6086,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
6086
6086
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
6087
6087
|
return value.replace(regExp, "");
|
|
6088
6088
|
}
|
|
6089
|
-
const defaultProps$
|
|
6089
|
+
const defaultProps$n = {
|
|
6090
6090
|
type: "text",
|
|
6091
6091
|
defaultValue: "",
|
|
6092
6092
|
placeholder: "\u8BF7\u8F93\u5165\u4FE1\u606F",
|
|
@@ -6116,7 +6116,7 @@ const Input = (props) => {
|
|
|
6116
6116
|
blur,
|
|
6117
6117
|
focus,
|
|
6118
6118
|
clear
|
|
6119
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
6119
|
+
} = __spreadValues(__spreadValues({}, defaultProps$n), props);
|
|
6120
6120
|
const inputBem = cn("input");
|
|
6121
6121
|
const [inputValue, SetInputValue] = useState("");
|
|
6122
6122
|
const [active, SetActive] = useState(false);
|
|
@@ -6200,9 +6200,9 @@ const Input = (props) => {
|
|
|
6200
6200
|
size: "12px"
|
|
6201
6201
|
}) : null) : null);
|
|
6202
6202
|
};
|
|
6203
|
-
Input.defaultProps = defaultProps$
|
|
6203
|
+
Input.defaultProps = defaultProps$n;
|
|
6204
6204
|
Input.displayName = "NutInput";
|
|
6205
|
-
const defaultProps$
|
|
6205
|
+
const defaultProps$m = {
|
|
6206
6206
|
defaultValue: "",
|
|
6207
6207
|
textAlign: "left",
|
|
6208
6208
|
limitshow: false,
|
|
@@ -6229,7 +6229,7 @@ const TextArea = (props) => {
|
|
|
6229
6229
|
change,
|
|
6230
6230
|
blur,
|
|
6231
6231
|
focus
|
|
6232
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
6232
|
+
} = __spreadValues(__spreadValues({}, defaultProps$m), props);
|
|
6233
6233
|
const textareaBem = cn("textarea");
|
|
6234
6234
|
const [inputValue, SetInputValue] = useState("");
|
|
6235
6235
|
useEffect(() => {
|
|
@@ -6300,9 +6300,9 @@ const TextArea = (props) => {
|
|
|
6300
6300
|
className: textareaBem("limit")
|
|
6301
6301
|
}, inputValue.length, "/", maxlength < 0 ? 0 : maxlength) : null);
|
|
6302
6302
|
};
|
|
6303
|
-
TextArea.defaultProps = defaultProps$
|
|
6303
|
+
TextArea.defaultProps = defaultProps$m;
|
|
6304
6304
|
TextArea.displayName = "NutTextArea";
|
|
6305
|
-
const defaultProps$
|
|
6305
|
+
const defaultProps$l = {
|
|
6306
6306
|
disabled: false,
|
|
6307
6307
|
buttonSize: "",
|
|
6308
6308
|
min: 1,
|
|
@@ -6318,7 +6318,7 @@ function pxCheck(value) {
|
|
|
6318
6318
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
6319
6319
|
}
|
|
6320
6320
|
const InputNumber = (props) => {
|
|
6321
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
6321
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$l), props), {
|
|
6322
6322
|
children,
|
|
6323
6323
|
disabled,
|
|
6324
6324
|
buttonSize,
|
|
@@ -6475,9 +6475,9 @@ const InputNumber = (props) => {
|
|
|
6475
6475
|
click: addNumber
|
|
6476
6476
|
}));
|
|
6477
6477
|
};
|
|
6478
|
-
InputNumber.defaultProps = defaultProps$
|
|
6478
|
+
InputNumber.defaultProps = defaultProps$l;
|
|
6479
6479
|
InputNumber.displayName = "NutInputNumber";
|
|
6480
|
-
const defaultProps$
|
|
6480
|
+
const defaultProps$k = {
|
|
6481
6481
|
title: "\u8BF7\u8F93\u5165\u5BC6\u7801",
|
|
6482
6482
|
desc: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",
|
|
6483
6483
|
tips: "\u5FD8\u8BB0\u5BC6\u7801",
|
|
@@ -6652,14 +6652,14 @@ const ShortPassword = (props) => {
|
|
|
6652
6652
|
onClick: () => sure()
|
|
6653
6653
|
}, "\u786E\u8BA4")) : null)));
|
|
6654
6654
|
};
|
|
6655
|
-
ShortPassword.defaultProps = defaultProps$
|
|
6655
|
+
ShortPassword.defaultProps = defaultProps$k;
|
|
6656
6656
|
ShortPassword.displayName = "NutShortPassword";
|
|
6657
6657
|
const radioContext = {
|
|
6658
6658
|
onChange: (val) => {
|
|
6659
6659
|
}
|
|
6660
6660
|
};
|
|
6661
6661
|
var RadioContext = React__default.createContext(radioContext);
|
|
6662
|
-
const defaultProps$
|
|
6662
|
+
const defaultProps$j = {
|
|
6663
6663
|
value: null,
|
|
6664
6664
|
textPosition: "right",
|
|
6665
6665
|
onChange: (value) => {
|
|
@@ -6667,7 +6667,7 @@ const defaultProps$i = {
|
|
|
6667
6667
|
direction: "vertical"
|
|
6668
6668
|
};
|
|
6669
6669
|
const RadioGroup = React__default.forwardRef((props, ref) => {
|
|
6670
|
-
const { children } = __spreadValues(__spreadValues({}, defaultProps$
|
|
6670
|
+
const { children } = __spreadValues(__spreadValues({}, defaultProps$j), props);
|
|
6671
6671
|
cn("RadioGroup");
|
|
6672
6672
|
const _a = props, { className, value, onChange, textPosition, direction } = _a, rest = __objRest(_a, ["className", "value", "onChange", "textPosition", "direction"]);
|
|
6673
6673
|
const [val2State, setVal2State] = useState(value);
|
|
@@ -6702,9 +6702,9 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
|
|
|
6702
6702
|
className: `nut-radiogroup nut-radiogroup--${props.direction}`
|
|
6703
6703
|
}, rest), cloneChildren()));
|
|
6704
6704
|
});
|
|
6705
|
-
RadioGroup.defaultProps = defaultProps$
|
|
6705
|
+
RadioGroup.defaultProps = defaultProps$j;
|
|
6706
6706
|
RadioGroup.displayName = "NutRadioGroup";
|
|
6707
|
-
const defaultProps$
|
|
6707
|
+
const defaultProps$i = {
|
|
6708
6708
|
disabled: false,
|
|
6709
6709
|
checked: false,
|
|
6710
6710
|
shape: "round",
|
|
@@ -6717,7 +6717,7 @@ const defaultProps$h = {
|
|
|
6717
6717
|
}
|
|
6718
6718
|
};
|
|
6719
6719
|
const Radio = (props) => {
|
|
6720
|
-
const { children } = __spreadValues(__spreadValues({}, defaultProps$
|
|
6720
|
+
const { children } = __spreadValues(__spreadValues({}, defaultProps$i), props);
|
|
6721
6721
|
const _a = props, {
|
|
6722
6722
|
className,
|
|
6723
6723
|
disabled,
|
|
@@ -6785,17 +6785,17 @@ const Radio = (props) => {
|
|
|
6785
6785
|
onClick: handleClick
|
|
6786
6786
|
}, rest), props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]);
|
|
6787
6787
|
};
|
|
6788
|
-
Radio.defaultProps = defaultProps$
|
|
6788
|
+
Radio.defaultProps = defaultProps$i;
|
|
6789
6789
|
Radio.displayName = "NutRadio";
|
|
6790
6790
|
Radio.RadioGroup = RadioGroup;
|
|
6791
|
-
const defaultProps$
|
|
6791
|
+
const defaultProps$h = {
|
|
6792
6792
|
disabled: false,
|
|
6793
6793
|
checkedValue: [],
|
|
6794
6794
|
onChange: (value) => {
|
|
6795
6795
|
}
|
|
6796
6796
|
};
|
|
6797
6797
|
const CheckboxGroup = React__default.forwardRef((props, ref) => {
|
|
6798
|
-
const { children } = __spreadValues(__spreadValues({}, defaultProps$
|
|
6798
|
+
const { children } = __spreadValues(__spreadValues({}, defaultProps$h), props);
|
|
6799
6799
|
const b2 = cn("checkboxgroup");
|
|
6800
6800
|
const _a = props, { className, disabled, onChange, checkedValue } = _a, rest = __objRest(_a, ["className", "disabled", "onChange", "checkedValue"]);
|
|
6801
6801
|
const [innerDisabled, setInnerDisabled] = useState(disabled);
|
|
@@ -6854,9 +6854,9 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
|
|
|
6854
6854
|
className: `${b2()} ${className || ""}`
|
|
6855
6855
|
}, rest), cloneChildren());
|
|
6856
6856
|
});
|
|
6857
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
6857
|
+
CheckboxGroup.defaultProps = defaultProps$h;
|
|
6858
6858
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
6859
|
-
const defaultProps$
|
|
6859
|
+
const defaultProps$g = {
|
|
6860
6860
|
checked: false,
|
|
6861
6861
|
disabled: false,
|
|
6862
6862
|
textPosition: "right",
|
|
@@ -6867,7 +6867,7 @@ const defaultProps$f = {
|
|
|
6867
6867
|
}
|
|
6868
6868
|
};
|
|
6869
6869
|
const Checkbox = (props) => {
|
|
6870
|
-
const { children } = __spreadValues(__spreadValues({}, defaultProps$
|
|
6870
|
+
const { children } = __spreadValues(__spreadValues({}, defaultProps$g), props);
|
|
6871
6871
|
const b2 = cn("checkbox");
|
|
6872
6872
|
const _a = props, {
|
|
6873
6873
|
iconName,
|
|
@@ -6923,10 +6923,10 @@ const Checkbox = (props) => {
|
|
|
6923
6923
|
onClick: handleClick
|
|
6924
6924
|
}), renderIcon(), renderLabel());
|
|
6925
6925
|
};
|
|
6926
|
-
Checkbox.defaultProps = defaultProps$
|
|
6926
|
+
Checkbox.defaultProps = defaultProps$g;
|
|
6927
6927
|
Checkbox.displayName = "NutCheckBox";
|
|
6928
6928
|
Checkbox.Group = CheckboxGroup;
|
|
6929
|
-
const defaultProps$
|
|
6929
|
+
const defaultProps$f = {
|
|
6930
6930
|
type: "default",
|
|
6931
6931
|
color: "",
|
|
6932
6932
|
textColor: "",
|
|
@@ -6952,7 +6952,7 @@ const Tag = (props) => {
|
|
|
6952
6952
|
textColor,
|
|
6953
6953
|
isShow,
|
|
6954
6954
|
onClick
|
|
6955
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
6955
|
+
} = __spreadValues(__spreadValues({}, defaultProps$f), props);
|
|
6956
6956
|
const [btnName, setBtnName] = useState("");
|
|
6957
6957
|
useEffect(() => {
|
|
6958
6958
|
setBtnName(classes());
|
|
@@ -7005,9 +7005,9 @@ const Tag = (props) => {
|
|
|
7005
7005
|
className: "text"
|
|
7006
7006
|
}, children)));
|
|
7007
7007
|
};
|
|
7008
|
-
Tag.defaultProps = defaultProps$
|
|
7008
|
+
Tag.defaultProps = defaultProps$f;
|
|
7009
7009
|
Tag.displayName = "NutTag";
|
|
7010
|
-
const defaultProps$
|
|
7010
|
+
const defaultProps$e = {
|
|
7011
7011
|
value: "",
|
|
7012
7012
|
dot: false,
|
|
7013
7013
|
max: 1e4,
|
|
@@ -7018,7 +7018,7 @@ const defaultProps$d = {
|
|
|
7018
7018
|
icons: ""
|
|
7019
7019
|
};
|
|
7020
7020
|
const Badge = (props) => {
|
|
7021
|
-
const { value, children, dot, max, top, right, zIndex, color, icons } = __spreadValues(__spreadValues({}, defaultProps$
|
|
7021
|
+
const { value, children, dot, max, top, right, zIndex, color, icons } = __spreadValues(__spreadValues({}, defaultProps$e), props);
|
|
7022
7022
|
const content = () => {
|
|
7023
7023
|
if (dot)
|
|
7024
7024
|
return;
|
|
@@ -7051,7 +7051,7 @@ const Badge = (props) => {
|
|
|
7051
7051
|
style: getStyle()
|
|
7052
7052
|
}, content()));
|
|
7053
7053
|
};
|
|
7054
|
-
Badge.defaultProps = defaultProps$
|
|
7054
|
+
Badge.defaultProps = defaultProps$e;
|
|
7055
7055
|
Badge.displayName = "NutBadge";
|
|
7056
7056
|
class UploadOptions {
|
|
7057
7057
|
constructor() {
|
|
@@ -7107,7 +7107,7 @@ class Upload {
|
|
|
7107
7107
|
}
|
|
7108
7108
|
}
|
|
7109
7109
|
}
|
|
7110
|
-
const defaultProps$
|
|
7110
|
+
const defaultProps$d = {
|
|
7111
7111
|
url: "",
|
|
7112
7112
|
maximum: 1,
|
|
7113
7113
|
uploadIcon: "photograph",
|
|
@@ -7142,7 +7142,7 @@ class FileItem {
|
|
|
7142
7142
|
}
|
|
7143
7143
|
}
|
|
7144
7144
|
const InternalUploader = (props, ref) => {
|
|
7145
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
7145
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$d), props), {
|
|
7146
7146
|
children,
|
|
7147
7147
|
uploadIcon,
|
|
7148
7148
|
name,
|
|
@@ -7442,7 +7442,7 @@ const InternalUploader = (props, ref) => {
|
|
|
7442
7442
|
}))));
|
|
7443
7443
|
};
|
|
7444
7444
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
7445
|
-
Uploader.defaultProps = defaultProps$
|
|
7445
|
+
Uploader.defaultProps = defaultProps$d;
|
|
7446
7446
|
Uploader.displayName = "NutUploader";
|
|
7447
7447
|
const Utils = {
|
|
7448
7448
|
isLeapYear(y2) {
|
|
@@ -7528,7 +7528,7 @@ function requestAniFrame() {
|
|
|
7528
7528
|
};
|
|
7529
7529
|
}
|
|
7530
7530
|
var requestAniFrame$1 = requestAniFrame();
|
|
7531
|
-
const defaultProps$
|
|
7531
|
+
const defaultProps$c = {
|
|
7532
7532
|
type: "one",
|
|
7533
7533
|
isAutoBackFill: false,
|
|
7534
7534
|
poppable: true,
|
|
@@ -7558,7 +7558,7 @@ const CalendarItem = (props) => {
|
|
|
7558
7558
|
onChoose,
|
|
7559
7559
|
onUpdate,
|
|
7560
7560
|
onClose
|
|
7561
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
7561
|
+
} = __spreadValues(__spreadValues({}, defaultProps$c), props);
|
|
7562
7562
|
const weeks = ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
7563
7563
|
const [yearMonthTitle, setYearMonthTitle] = useState("");
|
|
7564
7564
|
const [unLoadPrev, setUnLoadPrev] = useState(false);
|
|
@@ -7944,9 +7944,9 @@ const CalendarItem = (props) => {
|
|
|
7944
7944
|
onClick: confirm2
|
|
7945
7945
|
}, "\u786E\u5B9A")) : ""));
|
|
7946
7946
|
};
|
|
7947
|
-
CalendarItem.defaultProps = defaultProps$
|
|
7947
|
+
CalendarItem.defaultProps = defaultProps$c;
|
|
7948
7948
|
CalendarItem.displayName = "NutCalendarItem";
|
|
7949
|
-
const defaultProps$
|
|
7949
|
+
const defaultProps$b = {
|
|
7950
7950
|
type: "one",
|
|
7951
7951
|
isAutoBackFill: false,
|
|
7952
7952
|
poppable: true,
|
|
@@ -7973,7 +7973,7 @@ const Calendar = (props) => {
|
|
|
7973
7973
|
endDate,
|
|
7974
7974
|
onClose,
|
|
7975
7975
|
onChoose
|
|
7976
|
-
} = __spreadValues(__spreadValues({}, defaultProps$
|
|
7976
|
+
} = __spreadValues(__spreadValues({}, defaultProps$b), props);
|
|
7977
7977
|
const close = () => {
|
|
7978
7978
|
onClose && onClose();
|
|
7979
7979
|
};
|
|
@@ -8016,10 +8016,10 @@ const Calendar = (props) => {
|
|
|
8016
8016
|
onChoose: choose
|
|
8017
8017
|
}));
|
|
8018
8018
|
};
|
|
8019
|
-
Calendar.defaultProps = defaultProps$
|
|
8019
|
+
Calendar.defaultProps = defaultProps$b;
|
|
8020
8020
|
Calendar.displayName = "NutCalendar";
|
|
8021
8021
|
const currentYear = new Date().getFullYear();
|
|
8022
|
-
const defaultProps$
|
|
8022
|
+
const defaultProps$a = {
|
|
8023
8023
|
modelValue: new Date(),
|
|
8024
8024
|
visible: false,
|
|
8025
8025
|
title: "",
|
|
@@ -8031,7 +8031,7 @@ const defaultProps$9 = {
|
|
|
8031
8031
|
onCloseDatePicker: () => void 0
|
|
8032
8032
|
};
|
|
8033
8033
|
const DatePicker = (props) => {
|
|
8034
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8034
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$a), props), {
|
|
8035
8035
|
minDate,
|
|
8036
8036
|
maxDate,
|
|
8037
8037
|
type,
|
|
@@ -8285,9 +8285,9 @@ const DatePicker = (props) => {
|
|
|
8285
8285
|
ref: pickerRef
|
|
8286
8286
|
}));
|
|
8287
8287
|
};
|
|
8288
|
-
DatePicker.defaultProps = defaultProps$
|
|
8288
|
+
DatePicker.defaultProps = defaultProps$a;
|
|
8289
8289
|
DatePicker.displayName = "NutDatePicker";
|
|
8290
|
-
const defaultProps$
|
|
8290
|
+
const defaultProps$9 = {
|
|
8291
8291
|
width: 100,
|
|
8292
8292
|
height: 100,
|
|
8293
8293
|
row: 1,
|
|
@@ -8300,7 +8300,7 @@ const defaultProps$8 = {
|
|
|
8300
8300
|
avatarShape: "round"
|
|
8301
8301
|
};
|
|
8302
8302
|
const Skeleton = (props) => {
|
|
8303
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8303
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$9), props), {
|
|
8304
8304
|
className,
|
|
8305
8305
|
width,
|
|
8306
8306
|
height,
|
|
@@ -8371,9 +8371,9 @@ const Skeleton = (props) => {
|
|
|
8371
8371
|
});
|
|
8372
8372
|
})))));
|
|
8373
8373
|
};
|
|
8374
|
-
Skeleton.defaultProps = defaultProps$
|
|
8374
|
+
Skeleton.defaultProps = defaultProps$9;
|
|
8375
8375
|
Skeleton.displayName = "NutSkeleton";
|
|
8376
|
-
const defaultProps$
|
|
8376
|
+
const defaultProps$8 = {
|
|
8377
8377
|
type: "custom",
|
|
8378
8378
|
existAddress: [],
|
|
8379
8379
|
defaultIcon: "location2",
|
|
@@ -8382,7 +8382,7 @@ const defaultProps$7 = {
|
|
|
8382
8382
|
customAndExistTitle: "\u9009\u62E9\u5176\u4ED6\u5730\u5740"
|
|
8383
8383
|
};
|
|
8384
8384
|
const ExistRender = (props) => {
|
|
8385
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8385
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$8), props), {
|
|
8386
8386
|
children,
|
|
8387
8387
|
type,
|
|
8388
8388
|
existAddress,
|
|
@@ -8464,7 +8464,7 @@ const ExistRender = (props) => {
|
|
|
8464
8464
|
className: b2("choose-other-btn")
|
|
8465
8465
|
}, customAndExistTitle)));
|
|
8466
8466
|
};
|
|
8467
|
-
const defaultProps$
|
|
8467
|
+
const defaultProps$7 = {
|
|
8468
8468
|
type: "custom",
|
|
8469
8469
|
province: [],
|
|
8470
8470
|
city: [],
|
|
@@ -8473,7 +8473,7 @@ const defaultProps$6 = {
|
|
|
8473
8473
|
height: "200px"
|
|
8474
8474
|
};
|
|
8475
8475
|
const CustomRender = (props) => {
|
|
8476
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8476
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$7), props), { children, type, height, province, city, country, town, onNextArea, onClose } = _a, rest = __objRest(_a, ["children", "type", "height", "province", "city", "country", "town", "onNextArea", "onClose"]);
|
|
8477
8477
|
const b2 = cn("address");
|
|
8478
8478
|
const [privateType, setPrivateType] = useState(type);
|
|
8479
8479
|
const [tabIndex, setTabIndex] = useState(0);
|
|
@@ -8596,25 +8596,25 @@ const CustomRender = (props) => {
|
|
|
8596
8596
|
nextAreaList(item);
|
|
8597
8597
|
};
|
|
8598
8598
|
useEffect(() => {
|
|
8599
|
-
const { province: province2 } = __spreadValues(__spreadValues({}, defaultProps$
|
|
8599
|
+
const { province: province2 } = __spreadValues(__spreadValues({}, defaultProps$7), props);
|
|
8600
8600
|
setRegionList(__spreadProps(__spreadValues({}, regionList), {
|
|
8601
8601
|
province: isCustom2() ? transformData(province2) : province2
|
|
8602
8602
|
}));
|
|
8603
8603
|
}, [province]);
|
|
8604
8604
|
useEffect(() => {
|
|
8605
|
-
const { city: city2 } = __spreadValues(__spreadValues({}, defaultProps$
|
|
8605
|
+
const { city: city2 } = __spreadValues(__spreadValues({}, defaultProps$7), props);
|
|
8606
8606
|
setRegionList(__spreadProps(__spreadValues({}, regionList), {
|
|
8607
8607
|
city: isCustom2() ? transformData(city2) : city2
|
|
8608
8608
|
}));
|
|
8609
8609
|
}, [city]);
|
|
8610
8610
|
useEffect(() => {
|
|
8611
|
-
const { country: country2 } = __spreadValues(__spreadValues({}, defaultProps$
|
|
8611
|
+
const { country: country2 } = __spreadValues(__spreadValues({}, defaultProps$7), props);
|
|
8612
8612
|
setRegionList(__spreadProps(__spreadValues({}, regionList), {
|
|
8613
8613
|
country: isCustom2() ? transformData(country2) : country2
|
|
8614
8614
|
}));
|
|
8615
8615
|
}, [country]);
|
|
8616
8616
|
useEffect(() => {
|
|
8617
|
-
const { town: town2 } = __spreadValues(__spreadValues({}, defaultProps$
|
|
8617
|
+
const { town: town2 } = __spreadValues(__spreadValues({}, defaultProps$7), props);
|
|
8618
8618
|
setRegionList(__spreadProps(__spreadValues({}, regionList), {
|
|
8619
8619
|
town: isCustom2() ? transformData(town2) : town2
|
|
8620
8620
|
}));
|
|
@@ -8657,7 +8657,7 @@ const CustomRender = (props) => {
|
|
|
8657
8657
|
clickItem: handleElevatorItem
|
|
8658
8658
|
})));
|
|
8659
8659
|
};
|
|
8660
|
-
const defaultProps$
|
|
8660
|
+
const defaultProps$6 = {
|
|
8661
8661
|
modelValue: false,
|
|
8662
8662
|
type: "custom",
|
|
8663
8663
|
customAddressTitle: "\u8BF7\u9009\u62E9\u6240\u5728\u5730\u533A",
|
|
@@ -8676,7 +8676,7 @@ const defaultProps$5 = {
|
|
|
8676
8676
|
backBtnIcon: "left"
|
|
8677
8677
|
};
|
|
8678
8678
|
const Address = (props) => {
|
|
8679
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8679
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$6), props), {
|
|
8680
8680
|
modelValue,
|
|
8681
8681
|
children,
|
|
8682
8682
|
type,
|
|
@@ -8872,9 +8872,9 @@ const Address = (props) => {
|
|
|
8872
8872
|
onSwitchModule
|
|
8873
8873
|
}))));
|
|
8874
8874
|
};
|
|
8875
|
-
Address.defaultProps = defaultProps$
|
|
8875
|
+
Address.defaultProps = defaultProps$6;
|
|
8876
8876
|
Address.displayName = "NutAddress";
|
|
8877
|
-
const defaultProps$
|
|
8877
|
+
const defaultProps$5 = {
|
|
8878
8878
|
barrageList: [],
|
|
8879
8879
|
frequency: 500,
|
|
8880
8880
|
loop: true,
|
|
@@ -8883,7 +8883,7 @@ const defaultProps$4 = {
|
|
|
8883
8883
|
top: 10
|
|
8884
8884
|
};
|
|
8885
8885
|
const InternalBarrage = (props, ref) => {
|
|
8886
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8886
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$5), props), { className, frequency, loop: loop2, barrageList, speeds, rows, top } = _a, restProps = __objRest(_a, ["className", "frequency", "loop", "barrageList", "speeds", "rows", "top"]);
|
|
8887
8887
|
const barrageBody = useRef(null);
|
|
8888
8888
|
const barrageContainer = useRef(null);
|
|
8889
8889
|
const barrageCWidth = useRef(0);
|
|
@@ -8942,9 +8942,9 @@ const InternalBarrage = (props, ref) => {
|
|
|
8942
8942
|
}));
|
|
8943
8943
|
};
|
|
8944
8944
|
const Barrage = React__default.forwardRef(InternalBarrage);
|
|
8945
|
-
Barrage.defaultProps = defaultProps$
|
|
8945
|
+
Barrage.defaultProps = defaultProps$5;
|
|
8946
8946
|
Barrage.displayName = "NutBarrage";
|
|
8947
|
-
const defaultProps$
|
|
8947
|
+
const defaultProps$4 = {
|
|
8948
8948
|
type: "png",
|
|
8949
8949
|
lineWidth: 2,
|
|
8950
8950
|
strokeStyle: "#000",
|
|
@@ -8952,7 +8952,7 @@ const defaultProps$3 = {
|
|
|
8952
8952
|
className: ""
|
|
8953
8953
|
};
|
|
8954
8954
|
const Signature = (props) => {
|
|
8955
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
8955
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$4), props), { type, lineWidth, strokeStyle, unSupportTpl, className } = _a, rest = __objRest(_a, ["type", "lineWidth", "strokeStyle", "unSupportTpl", "className"]);
|
|
8956
8956
|
const b2 = cn("signature");
|
|
8957
8957
|
const canvasRef = useRef(null);
|
|
8958
8958
|
const wrapRef = useRef(null);
|
|
@@ -9059,7 +9059,7 @@ const Signature = (props) => {
|
|
|
9059
9059
|
onClick: () => confirm2()
|
|
9060
9060
|
}, "\u786E\u8BA4"));
|
|
9061
9061
|
};
|
|
9062
|
-
Signature.defaultProps = defaultProps$
|
|
9062
|
+
Signature.defaultProps = defaultProps$4;
|
|
9063
9063
|
Signature.displayName = "NutSignature";
|
|
9064
9064
|
function clamp(v2, min, max) {
|
|
9065
9065
|
return Math.max(min, Math.min(v2, max));
|
|
@@ -13461,7 +13461,7 @@ const host = createHost(primitives, {
|
|
|
13461
13461
|
}
|
|
13462
13462
|
});
|
|
13463
13463
|
const animated = host.animated;
|
|
13464
|
-
const defaultProps$
|
|
13464
|
+
const defaultProps$3 = {
|
|
13465
13465
|
attract: false,
|
|
13466
13466
|
direction: void 0,
|
|
13467
13467
|
boundary: {
|
|
@@ -13473,7 +13473,7 @@ const defaultProps$2 = {
|
|
|
13473
13473
|
className: ""
|
|
13474
13474
|
};
|
|
13475
13475
|
const Drag = (props) => {
|
|
13476
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
13476
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$3), props), { attract, direction, boundary, children, className, style } = _a, reset = __objRest(_a, ["attract", "direction", "boundary", "children", "className", "style"]);
|
|
13477
13477
|
const b2 = cn("drag");
|
|
13478
13478
|
const [boundaryState, setBoundaryState] = useState(boundary);
|
|
13479
13479
|
const myDrag = useRef(null);
|
|
@@ -13529,9 +13529,9 @@ const Drag = (props) => {
|
|
|
13529
13529
|
style: currstyle
|
|
13530
13530
|
}, bind()), children));
|
|
13531
13531
|
};
|
|
13532
|
-
Drag.defaultProps = defaultProps$
|
|
13532
|
+
Drag.defaultProps = defaultProps$3;
|
|
13533
13533
|
Drag.displayName = "NutDrag";
|
|
13534
|
-
const defaultProps$
|
|
13534
|
+
const defaultProps$2 = {
|
|
13535
13535
|
maxLen: 0,
|
|
13536
13536
|
endNumber: "",
|
|
13537
13537
|
delaySpeed: 300,
|
|
@@ -13540,7 +13540,7 @@ const defaultProps$1 = {
|
|
|
13540
13540
|
className: ""
|
|
13541
13541
|
};
|
|
13542
13542
|
const CountUp = (props) => {
|
|
13543
|
-
const _a = __spreadValues(__spreadValues({}, defaultProps$
|
|
13543
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps$2), props), { maxLen, endNumber, delaySpeed, easeSpeed, className, thousands } = _a, reset = __objRest(_a, ["maxLen", "endNumber", "delaySpeed", "easeSpeed", "className", "thousands"]);
|
|
13544
13544
|
const b2 = cn("countup");
|
|
13545
13545
|
const countupRef = useRef(null);
|
|
13546
13546
|
const timerRef = useRef(0);
|
|
@@ -13604,9 +13604,9 @@ const CountUp = (props) => {
|
|
|
13604
13604
|
}, item));
|
|
13605
13605
|
})));
|
|
13606
13606
|
};
|
|
13607
|
-
CountUp.defaultProps = defaultProps$
|
|
13607
|
+
CountUp.defaultProps = defaultProps$2;
|
|
13608
13608
|
CountUp.displayName = "NutCountUp";
|
|
13609
|
-
const defaultProps = {};
|
|
13609
|
+
const defaultProps$1 = {};
|
|
13610
13610
|
class AnimatingNumbers extends Component {
|
|
13611
13611
|
constructor(props) {
|
|
13612
13612
|
super(props);
|
|
@@ -13618,8 +13618,73 @@ class AnimatingNumbers extends Component {
|
|
|
13618
13618
|
});
|
|
13619
13619
|
}
|
|
13620
13620
|
}
|
|
13621
|
-
__publicField(AnimatingNumbers, "defaultProps", defaultProps);
|
|
13621
|
+
__publicField(AnimatingNumbers, "defaultProps", defaultProps$1);
|
|
13622
13622
|
__publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
13623
13623
|
__publicField(AnimatingNumbers, "CountUp", CountUp);
|
|
13624
13624
|
AnimatingNumbers.CountUp = CountUp;
|
|
13625
|
-
|
|
13625
|
+
const defaultProps = {};
|
|
13626
|
+
const Card = (props) => {
|
|
13627
|
+
const _a = __spreadValues(__spreadValues({}, defaultProps), props), {
|
|
13628
|
+
className,
|
|
13629
|
+
style,
|
|
13630
|
+
imgUrl,
|
|
13631
|
+
title,
|
|
13632
|
+
price,
|
|
13633
|
+
vipPrice,
|
|
13634
|
+
shopDesc,
|
|
13635
|
+
delivery,
|
|
13636
|
+
shopName,
|
|
13637
|
+
shopTagTpl,
|
|
13638
|
+
originTpl,
|
|
13639
|
+
prolistTpl,
|
|
13640
|
+
footerTpl
|
|
13641
|
+
} = _a, rest = __objRest(_a, [
|
|
13642
|
+
"className",
|
|
13643
|
+
"style",
|
|
13644
|
+
"imgUrl",
|
|
13645
|
+
"title",
|
|
13646
|
+
"price",
|
|
13647
|
+
"vipPrice",
|
|
13648
|
+
"shopDesc",
|
|
13649
|
+
"delivery",
|
|
13650
|
+
"shopName",
|
|
13651
|
+
"shopTagTpl",
|
|
13652
|
+
"originTpl",
|
|
13653
|
+
"prolistTpl",
|
|
13654
|
+
"footerTpl"
|
|
13655
|
+
]);
|
|
13656
|
+
const b2 = cn("card");
|
|
13657
|
+
return /* @__PURE__ */ React__default.createElement("div", __spreadValues({
|
|
13658
|
+
className: `${b2()} ${className}`,
|
|
13659
|
+
style
|
|
13660
|
+
}, rest), /* @__PURE__ */ React__default.createElement("div", {
|
|
13661
|
+
className: b2("left")
|
|
13662
|
+
}, /* @__PURE__ */ React__default.createElement("img", {
|
|
13663
|
+
src: imgUrl,
|
|
13664
|
+
alt: ""
|
|
13665
|
+
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
13666
|
+
className: b2("right")
|
|
13667
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
13668
|
+
className: b2("right__title")
|
|
13669
|
+
}, title), prolistTpl, /* @__PURE__ */ React__default.createElement("div", {
|
|
13670
|
+
className: b2("right__price")
|
|
13671
|
+
}, /* @__PURE__ */ React__default.createElement(Price, {
|
|
13672
|
+
price
|
|
13673
|
+
}), originTpl || /* @__PURE__ */ React__default.createElement(Price, {
|
|
13674
|
+
className: b2("right__price__origin"),
|
|
13675
|
+
price: vipPrice
|
|
13676
|
+
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
13677
|
+
className: b2("right__other")
|
|
13678
|
+
}, shopTagTpl || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, {
|
|
13679
|
+
type: "danger"
|
|
13680
|
+
}, shopDesc), /* @__PURE__ */ React__default.createElement(Tag, {
|
|
13681
|
+
plain: true
|
|
13682
|
+
}, delivery))), /* @__PURE__ */ React__default.createElement("div", {
|
|
13683
|
+
className: b2("right__shop")
|
|
13684
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
13685
|
+
className: b2("right__shop__name")
|
|
13686
|
+
}, shopName), footerTpl)));
|
|
13687
|
+
};
|
|
13688
|
+
Card.defaultProps = defaultProps;
|
|
13689
|
+
Card.displayName = "NutCard";
|
|
13690
|
+
export { ActionSheet, Address, AnimatingNumbers, Avatar, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, DatePicker, Dialog, Divider, Drag, Elevator, FixedNav, Icon, Infiniteloading, Input, InputNumber, Layout, NavBar, NoticeBar, Notify, Overlay, Pagination, Picker, Popover, Popup, Price, Radio, RadioGroup, Range, Rate, Row, ShortPassword, Signature, Skeleton, Step, Steps, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Tabs, Tag, TextArea, Toast, Uploader };
|