@nutui/nutui-react 1.1.4 → 1.1.5-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.
@@ -34,7 +34,7 @@ var __publicField = (obj, key, value) => {
34
34
  return value;
35
35
  };
36
36
  /*!
37
- * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:27 GMT+0800 (China Standard Time)
37
+ * @nutui/nutui-react v1.1.5-beta.0 Thu Jun 16 2022 10:01:41 GMT+0800 (China Standard Time)
38
38
  * (c) 2022 @jdf2e.
39
39
  * Released under the MIT License.
40
40
  */
@@ -80,7 +80,7 @@ classname_production_min.cn = e$1, classname_production_min.withNaming = r$1;
80
80
  classname.exports = classname_production_min;
81
81
  }
82
82
  const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
83
- const defaultProps$Z = {
83
+ const defaultProps$_ = {
84
84
  name: "",
85
85
  size: "",
86
86
  classPrefix: "nutui-iconfont",
@@ -94,7 +94,7 @@ function pxCheck$2(value) {
94
94
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
95
95
  }
96
96
  const Icon = (props) => {
97
- const _a = __spreadValues(__spreadValues({}, defaultProps$Z), props), { name, size, classPrefix, color, tag, children, className, style, click } = _a, rest = __objRest(_a, ["name", "size", "classPrefix", "color", "tag", "children", "className", "style", "click"]);
97
+ const _a = __spreadValues(__spreadValues({}, defaultProps$_), props), { name, size, classPrefix, color, tag, children, className, style, click } = _a, rest = __objRest(_a, ["name", "size", "classPrefix", "color", "tag", "children", "className", "style", "click"]);
98
98
  const isImage = name ? name.indexOf("/") !== -1 : false;
99
99
  const type = isImage ? "img" : tag;
100
100
  const b2 = cn("icon");
@@ -120,9 +120,9 @@ const Icon = (props) => {
120
120
  onClick: handleClick
121
121
  }), hasSrc()), children);
122
122
  };
123
- Icon.defaultProps = defaultProps$Z;
123
+ Icon.defaultProps = defaultProps$_;
124
124
  Icon.displayName = "NutIcon";
125
- const defaultProps$Y = {
125
+ const defaultProps$Z = {
126
126
  className: "",
127
127
  color: "",
128
128
  shape: "round",
@@ -139,7 +139,7 @@ const defaultProps$Y = {
139
139
  }
140
140
  };
141
141
  const Button = (props) => {
142
- const _a = __spreadValues(__spreadValues({}, defaultProps$Y), props), {
142
+ const _a = __spreadValues(__spreadValues({}, defaultProps$Z), props), {
143
143
  color,
144
144
  shape,
145
145
  plain,
@@ -233,7 +233,7 @@ const Button = (props) => {
233
233
  name: icon
234
234
  }) : "", children));
235
235
  };
236
- Button.defaultProps = defaultProps$Y;
236
+ Button.defaultProps = defaultProps$Z;
237
237
  Button.displayName = "NutButton";
238
238
  function _setPrototypeOf(o, p2) {
239
239
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p3) {
@@ -1442,7 +1442,7 @@ var useContext = React__default.useContext;
1442
1442
  function useHistory() {
1443
1443
  return useContext(historyContext);
1444
1444
  }
1445
- const defaultProps$X = {
1445
+ const defaultProps$Y = {
1446
1446
  title: "",
1447
1447
  subTitle: "",
1448
1448
  desc: "",
@@ -1458,7 +1458,7 @@ const defaultProps$X = {
1458
1458
  }
1459
1459
  };
1460
1460
  const Cell = (props) => {
1461
- const _a = __spreadValues(__spreadValues({}, defaultProps$X), props), {
1461
+ const _a = __spreadValues(__spreadValues({}, defaultProps$Y), props), {
1462
1462
  children,
1463
1463
  click,
1464
1464
  isLink,
@@ -1521,11 +1521,11 @@ const Cell = (props) => {
1521
1521
  className: b2("link")
1522
1522
  }) : null);
1523
1523
  };
1524
- Cell.defaultProps = defaultProps$X;
1524
+ Cell.defaultProps = defaultProps$Y;
1525
1525
  Cell.displayName = "NutCell";
1526
- const defaultProps$W = { title: "", classPrefix: "nutui-cell-group" };
1526
+ const defaultProps$X = { title: "", classPrefix: "nutui-cell-group" };
1527
1527
  const CellGroup = (props) => {
1528
- const { children, classPrefix, title } = __spreadValues(__spreadValues({}, defaultProps$W), props);
1528
+ const { children, classPrefix, title } = __spreadValues(__spreadValues({}, defaultProps$X), props);
1529
1529
  const b2 = cn("cell-group");
1530
1530
  return /* @__PURE__ */ React__default.createElement("div", {
1531
1531
  className: b2(null, [classPrefix])
@@ -1535,7 +1535,7 @@ const CellGroup = (props) => {
1535
1535
  className: b2("wrap")
1536
1536
  }, children));
1537
1537
  };
1538
- CellGroup.defaultProps = defaultProps$W;
1538
+ CellGroup.defaultProps = defaultProps$X;
1539
1539
  CellGroup.displayName = "NutCellGroup";
1540
1540
  var classnames = { exports: {} };
1541
1541
  /*!
@@ -2079,7 +2079,7 @@ CSSTransition.defaultProps = {
2079
2079
  };
2080
2080
  CSSTransition.propTypes = {};
2081
2081
  var CSSTransition$1 = CSSTransition;
2082
- const defaultProps$V = __spreadValues({
2082
+ const defaultProps$W = __spreadValues({
2083
2083
  position: "center",
2084
2084
  transition: "",
2085
2085
  style: {},
@@ -2228,25 +2228,25 @@ const Popup = (props) => {
2228
2228
  size: "12px"
2229
2229
  })) : "")));
2230
2230
  };
2231
- Popup.defaultProps = defaultProps$V;
2231
+ Popup.defaultProps = defaultProps$W;
2232
2232
  Popup.displayName = "NutPopup";
2233
- const defaultProps$U = {};
2233
+ const defaultProps$V = {};
2234
2234
  const Layout = (props) => {
2235
- __spreadValues(__spreadValues({}, defaultProps$U), props);
2235
+ __spreadValues(__spreadValues({}, defaultProps$V), props);
2236
2236
  return /* @__PURE__ */ React__default.createElement("div", {
2237
2237
  className: "nut-layout"
2238
2238
  }, "Layout");
2239
2239
  };
2240
- Layout.defaultProps = defaultProps$U;
2240
+ Layout.defaultProps = defaultProps$V;
2241
2241
  Layout.displayName = "NutLayout";
2242
2242
  const DataContext$2 = createContext({});
2243
- const defaultProps$T = {
2243
+ const defaultProps$U = {
2244
2244
  span: "24",
2245
2245
  offset: "0",
2246
2246
  gutter: "0"
2247
2247
  };
2248
2248
  const Col = (props) => {
2249
- const { span, offset, children } = __spreadValues(__spreadValues({}, defaultProps$T), props);
2249
+ const { span, offset, children } = __spreadValues(__spreadValues({}, defaultProps$U), props);
2250
2250
  const [colName, setColName] = useState("");
2251
2251
  const [colStyle, setColStyle] = useState({});
2252
2252
  const { gutter } = useContext$1(DataContext$2);
@@ -2269,9 +2269,9 @@ const Col = (props) => {
2269
2269
  style: __spreadValues({}, colStyle)
2270
2270
  }, children);
2271
2271
  };
2272
- Col.defaultProps = defaultProps$T;
2272
+ Col.defaultProps = defaultProps$U;
2273
2273
  Col.displayName = "NutCol";
2274
- const defaultProps$S = {
2274
+ const defaultProps$T = {
2275
2275
  type: "",
2276
2276
  justify: "start",
2277
2277
  align: "flex-start",
@@ -2279,7 +2279,7 @@ const defaultProps$S = {
2279
2279
  gutter: "0"
2280
2280
  };
2281
2281
  const Row = (props) => {
2282
- const { children, type, justify, align, wrap, gutter } = __spreadValues(__spreadValues({}, defaultProps$S), props);
2282
+ const { children, type, justify, align, wrap, gutter } = __spreadValues(__spreadValues({}, defaultProps$T), props);
2283
2283
  const prefixCls = "nut-row";
2284
2284
  const getClass = (prefix2, type2) => {
2285
2285
  return prefix2 ? type2 ? `nut-row-${prefix2}-${type2}` : "" : `nut-row-${type2}`;
@@ -2302,15 +2302,15 @@ const Row = (props) => {
2302
2302
  className: getClasses()
2303
2303
  }, children));
2304
2304
  };
2305
- Row.defaultProps = defaultProps$S;
2305
+ Row.defaultProps = defaultProps$T;
2306
2306
  Row.displayName = "NutRow";
2307
- const defaultProps$R = {
2307
+ const defaultProps$S = {
2308
2308
  contentPosition: "center",
2309
2309
  dashed: false,
2310
2310
  hairline: true
2311
2311
  };
2312
2312
  const Divider = (props) => {
2313
- const { children, contentPosition, dashed, hairline, styles, className } = __spreadValues(__spreadValues({}, defaultProps$R), props);
2313
+ const { children, contentPosition, dashed, hairline, styles, className } = __spreadValues(__spreadValues({}, defaultProps$S), props);
2314
2314
  const dividerBem = cn("divider");
2315
2315
  const classes = classNames({
2316
2316
  [dividerBem()]: true,
@@ -2325,9 +2325,9 @@ const Divider = (props) => {
2325
2325
  style: styles
2326
2326
  }, children);
2327
2327
  };
2328
- Divider.defaultProps = defaultProps$R;
2328
+ Divider.defaultProps = defaultProps$S;
2329
2329
  Divider.displayName = "NutDivider";
2330
- const defaultProps$Q = {
2330
+ const defaultProps$R = {
2331
2331
  title: "",
2332
2332
  desc: "",
2333
2333
  leftShow: false,
@@ -2348,7 +2348,7 @@ const NavBar = (props) => {
2348
2348
  onClickIcon,
2349
2349
  onClickBack,
2350
2350
  onClickClear
2351
- } = __spreadValues(__spreadValues({}, defaultProps$Q), props);
2351
+ } = __spreadValues(__spreadValues({}, defaultProps$R), props);
2352
2352
  const b2 = cn("navbar");
2353
2353
  return /* @__PURE__ */ React__default.createElement("div", {
2354
2354
  className: `nut-navbar ${className}`,
@@ -2371,7 +2371,7 @@ const NavBar = (props) => {
2371
2371
  name: icon
2372
2372
  })));
2373
2373
  };
2374
- NavBar.defaultProps = defaultProps$Q;
2374
+ NavBar.defaultProps = defaultProps$R;
2375
2375
  NavBar.displayName = "NutNavBar";
2376
2376
  const zhCN = {
2377
2377
  save: "\u4FDD\u5B58",
@@ -2420,9 +2420,10 @@ const zhCN = {
2420
2420
  ready: "\u51C6\u5907\u5B8C\u6210",
2421
2421
  readyUpload: "\u51C6\u5907\u4E0A\u4F20",
2422
2422
  waitingUpload: "\u7B49\u5F85\u4E0A\u4F20",
2423
- uploading: "\u4E0A\u4F20\u4E2D",
2423
+ uploading: "\u4E0A\u4F20\u4E2D...",
2424
2424
  success: "\u4E0A\u4F20\u6210\u529F",
2425
- error: "\u4E0A\u4F20\u5931\u8D25"
2425
+ error: "\u4E0A\u4F20\u5931\u8D25",
2426
+ deleteWord: "\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01"
2426
2427
  },
2427
2428
  countdown: {
2428
2429
  day: "\u5929",
@@ -2464,7 +2465,7 @@ const zhCN = {
2464
2465
  additionalImages: (length) => `${length}\u5F20\u8FFD\u8BC4\u56FE\u7247`
2465
2466
  }
2466
2467
  };
2467
- const defaultProps$P = {
2468
+ const defaultProps$Q = {
2468
2469
  locale: zhCN
2469
2470
  };
2470
2471
  const defaultConfigRef = {
@@ -2481,15 +2482,15 @@ const useConfig = () => {
2481
2482
  };
2482
2483
  const ConfigContext = createContext(null);
2483
2484
  const ConfigProvider = (props) => {
2484
- const _a = __spreadValues(__spreadValues({}, defaultProps$P), props), { children } = _a, config2 = __objRest(_a, ["children"]);
2485
+ const _a = __spreadValues(__spreadValues({}, defaultProps$Q), props), { children } = _a, config2 = __objRest(_a, ["children"]);
2485
2486
  const parentConfig = useConfig();
2486
2487
  return /* @__PURE__ */ React__default.createElement(ConfigContext.Provider, {
2487
2488
  value: __spreadValues(__spreadValues({}, parentConfig), config2)
2488
2489
  }, children);
2489
2490
  };
2490
- ConfigProvider.defaultProps = defaultProps$P;
2491
+ ConfigProvider.defaultProps = defaultProps$Q;
2491
2492
  ConfigProvider.displayName = "NutConfigProvider";
2492
- const defaultProps$O = {
2493
+ const defaultProps$P = {
2493
2494
  fixednavClass: "nut-fixednav",
2494
2495
  activeText: "\u6536\u8D77\u5BFC\u822A",
2495
2496
  unActiveText: "\u5FEB\u901F\u5BFC\u822A",
@@ -2501,7 +2502,7 @@ const defaultProps$O = {
2501
2502
  };
2502
2503
  const FixedNav = (props) => {
2503
2504
  const { locale } = useConfig();
2504
- const _a = __spreadValues(__spreadValues({}, defaultProps$O), props), {
2505
+ const _a = __spreadValues(__spreadValues({}, defaultProps$P), props), {
2505
2506
  fixednavClass,
2506
2507
  overlay,
2507
2508
  visible,
@@ -2571,9 +2572,9 @@ const FixedNav = (props) => {
2571
2572
  className: "text"
2572
2573
  }, visible ? locale.fixednav.activeText || activeText : locale.fixednav.unActiveText || unActiveText))));
2573
2574
  };
2574
- FixedNav.defaultProps = defaultProps$O;
2575
+ FixedNav.defaultProps = defaultProps$P;
2575
2576
  FixedNav.displayName = "NutFixedNav";
2576
- const defaultProps$N = {
2577
+ const defaultProps$O = {
2577
2578
  visible: 0,
2578
2579
  bottom: false,
2579
2580
  type: "",
@@ -2586,7 +2587,7 @@ const defaultProps$N = {
2586
2587
  }
2587
2588
  };
2588
2589
  const Tabbar = (props) => {
2589
- const { children, visible, bottom, activeColor, unactiveColor, className, style, tabSwitch } = __spreadValues(__spreadValues({}, defaultProps$N), props);
2590
+ const { children, visible, bottom, activeColor, unactiveColor, className, style, tabSwitch } = __spreadValues(__spreadValues({}, defaultProps$O), props);
2590
2591
  const b2 = cn("tabbar");
2591
2592
  const [selectIndex, setSelectIndex] = useState(visible);
2592
2593
  const handleClick = (idx) => {
@@ -2612,9 +2613,9 @@ const Tabbar = (props) => {
2612
2613
  return React__default.cloneElement(child, childProps);
2613
2614
  }));
2614
2615
  };
2615
- Tabbar.defaultProps = defaultProps$N;
2616
+ Tabbar.defaultProps = defaultProps$O;
2616
2617
  Tabbar.displayName = "NutTabbar";
2617
- const defaultProps$M = {
2618
+ const defaultProps$N = {
2618
2619
  tabTitle: "",
2619
2620
  icon: "",
2620
2621
  href: "",
@@ -2628,7 +2629,7 @@ const defaultProps$M = {
2628
2629
  }
2629
2630
  };
2630
2631
  const TabbarItem = (props) => {
2631
- const { tabTitle, icon, href, to: to2, num, active, activeColor, unactiveColor, index: index2, handleClick } = __spreadValues(__spreadValues({}, defaultProps$M), props);
2632
+ const { tabTitle, icon, href, to: to2, num, active, activeColor, unactiveColor, index: index2, handleClick } = __spreadValues(__spreadValues({}, defaultProps$N), props);
2632
2633
  const b2 = cn("tabbar-item");
2633
2634
  const bIcon = cn("tabbar-item__icon-box");
2634
2635
  const history = useHistory();
@@ -2662,14 +2663,14 @@ const TabbarItem = (props) => {
2662
2663
  className: bIcon({ "nav-word": true }, [bIcon({ "big-word": !icon })])
2663
2664
  }, tabTitle)));
2664
2665
  };
2665
- const defaultProps$L = {
2666
+ const defaultProps$M = {
2666
2667
  height: "200px",
2667
2668
  acceptKey: "title",
2668
2669
  indexList: [],
2669
2670
  className: ""
2670
2671
  };
2671
2672
  const Elevator = (props) => {
2672
- const _a = __spreadValues(__spreadValues({}, defaultProps$L), props), { height, acceptKey, indexList, className, clickItem, clickIndex } = _a, rest = __objRest(_a, ["height", "acceptKey", "indexList", "className", "clickItem", "clickIndex"]);
2673
+ const _a = __spreadValues(__spreadValues({}, defaultProps$M), props), { height, acceptKey, indexList, className, clickItem, clickIndex } = _a, rest = __objRest(_a, ["height", "acceptKey", "indexList", "className", "clickItem", "clickIndex"]);
2673
2674
  const b2 = cn("elevator");
2674
2675
  const spaceHeight = 23;
2675
2676
  const listview = useRef(null);
@@ -2803,9 +2804,9 @@ const Elevator = (props) => {
2803
2804
  }, item[acceptKey]);
2804
2805
  }))));
2805
2806
  };
2806
- Elevator.defaultProps = defaultProps$L;
2807
+ Elevator.defaultProps = defaultProps$M;
2807
2808
  Elevator.displayName = "NutElevator";
2808
- const defaultProps$K = {
2809
+ const defaultProps$L = {
2809
2810
  defaultValue: 1,
2810
2811
  mode: "multi",
2811
2812
  prevText: "\u4E0A\u4E00\u9875",
@@ -2822,7 +2823,7 @@ const defaultProps$K = {
2822
2823
  };
2823
2824
  const Pagination = (props) => {
2824
2825
  const { locale } = useConfig();
2825
- __spreadValues(__spreadValues({}, defaultProps$K), props);
2826
+ __spreadValues(__spreadValues({}, defaultProps$L), props);
2826
2827
  const _a = props, {
2827
2828
  modelValue,
2828
2829
  mode,
@@ -2952,7 +2953,7 @@ const Pagination = (props) => {
2952
2953
  onClick: (e2) => selectPage(Number(currentPage) + 1, true)
2953
2954
  }, locale.pagination.next || nextText));
2954
2955
  };
2955
- Pagination.defaultProps = defaultProps$K;
2956
+ Pagination.defaultProps = defaultProps$L;
2956
2957
  Pagination.displayName = "NutPagination";
2957
2958
  class Title {
2958
2959
  constructor() {
@@ -2962,7 +2963,7 @@ class Title {
2962
2963
  __publicField(this, "index", 0);
2963
2964
  }
2964
2965
  }
2965
- const defaultProps$J = {
2966
+ const defaultProps$K = {
2966
2967
  value: 0,
2967
2968
  color: "",
2968
2969
  background: "",
@@ -2978,7 +2979,7 @@ const pxCheck$1 = (value) => {
2978
2979
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
2979
2980
  };
2980
2981
  const Tabs = (props) => {
2981
- const _a = __spreadValues(__spreadValues({}, defaultProps$J), props), {
2982
+ const _a = __spreadValues(__spreadValues({}, defaultProps$K), props), {
2982
2983
  value,
2983
2984
  color,
2984
2985
  background,
@@ -3099,16 +3100,16 @@ const Tabs = (props) => {
3099
3100
  return React__default.cloneElement(child, childProps);
3100
3101
  })));
3101
3102
  };
3102
- Tabs.defaultProps = defaultProps$J;
3103
+ Tabs.defaultProps = defaultProps$K;
3103
3104
  Tabs.displayName = "NutTabs";
3104
- const defaultProps$I = {
3105
+ const defaultProps$J = {
3105
3106
  title: "",
3106
3107
  paneKey: "",
3107
3108
  activeKey: "",
3108
3109
  disabled: false
3109
3110
  };
3110
3111
  const TabPane = (props) => {
3111
- const { children, paneKey, activeKey } = __spreadValues(__spreadValues({}, defaultProps$I), props);
3112
+ const { children, paneKey, activeKey } = __spreadValues(__spreadValues({}, defaultProps$J), props);
3112
3113
  const b2 = cn("tabpane");
3113
3114
  const classes = classNames({
3114
3115
  active: paneKey === activeKey
@@ -3394,7 +3395,7 @@ var Toast = {
3394
3395
  }
3395
3396
  }
3396
3397
  };
3397
- const defaultProps$H = {
3398
+ const defaultProps$I = {
3398
3399
  range: false,
3399
3400
  hiddenRange: false,
3400
3401
  hiddenTag: false,
@@ -3424,7 +3425,7 @@ const Range = (props) => {
3424
3425
  change,
3425
3426
  dragStart,
3426
3427
  dragEnd
3427
- } = __spreadValues(__spreadValues({}, defaultProps$H), props);
3428
+ } = __spreadValues(__spreadValues({}, defaultProps$I), props);
3428
3429
  const [buttonIndex, SetButtonIndex] = useState(0);
3429
3430
  const [initValue, SetInitValue] = useState();
3430
3431
  const [dragStatus, SetDragStatus] = useState("start");
@@ -3633,7 +3634,7 @@ const Range = (props) => {
3633
3634
  className: "max"
3634
3635
  }, +max) : null);
3635
3636
  };
3636
- Range.defaultProps = defaultProps$H;
3637
+ Range.defaultProps = defaultProps$I;
3637
3638
  Range.displayName = "NutRange";
3638
3639
  const Utils = {
3639
3640
  isLeapYear(y2) {
@@ -3719,7 +3720,7 @@ function requestAniFrame() {
3719
3720
  };
3720
3721
  }
3721
3722
  var requestAniFrame$1 = requestAniFrame();
3722
- const defaultProps$G = {
3723
+ const defaultProps$H = {
3723
3724
  type: "one",
3724
3725
  isAutoBackFill: false,
3725
3726
  poppable: true,
@@ -3748,7 +3749,7 @@ const CalendarItem = (props) => {
3748
3749
  onChoose,
3749
3750
  onUpdate,
3750
3751
  onClose
3751
- } = __spreadValues(__spreadValues({}, defaultProps$G), props);
3752
+ } = __spreadValues(__spreadValues({}, defaultProps$H), props);
3752
3753
  const weeks = locale.calendaritem.weekdays;
3753
3754
  const [yearMonthTitle, setYearMonthTitle] = useState("");
3754
3755
  const [unLoadPrev, setUnLoadPrev] = useState(false);
@@ -4134,9 +4135,9 @@ const CalendarItem = (props) => {
4134
4135
  onClick: confirm2
4135
4136
  }, locale.confirm)) : ""));
4136
4137
  };
4137
- CalendarItem.defaultProps = defaultProps$G;
4138
+ CalendarItem.defaultProps = defaultProps$H;
4138
4139
  CalendarItem.displayName = "NutCalendarItem";
4139
- const defaultProps$F = {
4140
+ const defaultProps$G = {
4140
4141
  type: "one",
4141
4142
  isAutoBackFill: false,
4142
4143
  poppable: true,
@@ -4164,7 +4165,7 @@ const Calendar = (props) => {
4164
4165
  endDate,
4165
4166
  onClose,
4166
4167
  onChoose
4167
- } = __spreadValues(__spreadValues({}, defaultProps$F), props);
4168
+ } = __spreadValues(__spreadValues({}, defaultProps$G), props);
4168
4169
  const close = () => {
4169
4170
  onClose && onClose();
4170
4171
  };
@@ -4207,16 +4208,16 @@ const Calendar = (props) => {
4207
4208
  onChoose: choose
4208
4209
  }));
4209
4210
  };
4210
- Calendar.defaultProps = defaultProps$F;
4211
+ Calendar.defaultProps = defaultProps$G;
4211
4212
  Calendar.displayName = "NutCalendar";
4212
- const defaultProps$E = {
4213
+ const defaultProps$F = {
4213
4214
  disabled: false,
4214
4215
  checkedValue: [],
4215
4216
  onChange: (value) => {
4216
4217
  }
4217
4218
  };
4218
4219
  const CheckboxGroup = React__default.forwardRef((props, ref) => {
4219
- const { children } = __spreadValues(__spreadValues({}, defaultProps$E), props);
4220
+ const { children } = __spreadValues(__spreadValues({}, defaultProps$F), props);
4220
4221
  const b2 = cn("checkboxgroup");
4221
4222
  const _a = props, { className, disabled, onChange, checkedValue } = _a, rest = __objRest(_a, ["className", "disabled", "onChange", "checkedValue"]);
4222
4223
  const [innerDisabled, setInnerDisabled] = useState(disabled);
@@ -4275,9 +4276,9 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
4275
4276
  className: `${b2()} ${className || ""}`
4276
4277
  }, rest), cloneChildren());
4277
4278
  });
4278
- CheckboxGroup.defaultProps = defaultProps$E;
4279
+ CheckboxGroup.defaultProps = defaultProps$F;
4279
4280
  CheckboxGroup.displayName = "NutCheckboxGroup";
4280
- const defaultProps$D = {
4281
+ const defaultProps$E = {
4281
4282
  checked: false,
4282
4283
  disabled: false,
4283
4284
  textPosition: "right",
@@ -4288,7 +4289,7 @@ const defaultProps$D = {
4288
4289
  }
4289
4290
  };
4290
4291
  const Checkbox = (props) => {
4291
- const { children } = __spreadValues(__spreadValues({}, defaultProps$D), props);
4292
+ const { children } = __spreadValues(__spreadValues({}, defaultProps$E), props);
4292
4293
  const b2 = cn("checkbox");
4293
4294
  const _a = props, {
4294
4295
  iconName,
@@ -4344,7 +4345,7 @@ const Checkbox = (props) => {
4344
4345
  onClick: handleClick
4345
4346
  }), renderIcon(), renderLabel());
4346
4347
  };
4347
- Checkbox.defaultProps = defaultProps$D;
4348
+ Checkbox.defaultProps = defaultProps$E;
4348
4349
  Checkbox.displayName = "NutCheckBox";
4349
4350
  Checkbox.Group = CheckboxGroup;
4350
4351
  const InternalPickerSlot = (props, ref) => {
@@ -4660,7 +4661,7 @@ const InternalPicker = (props, ref) => {
4660
4661
  };
4661
4662
  const Picker = React__default.forwardRef(InternalPicker);
4662
4663
  const currentYear = new Date().getFullYear();
4663
- const defaultProps$C = {
4664
+ const defaultProps$D = {
4664
4665
  modelValue: new Date(),
4665
4666
  visible: false,
4666
4667
  title: "",
@@ -4672,7 +4673,7 @@ const defaultProps$C = {
4672
4673
  onCloseDatePicker: () => void 0
4673
4674
  };
4674
4675
  const DatePicker = (props) => {
4675
- const _a = __spreadValues(__spreadValues({}, defaultProps$C), props), {
4676
+ const _a = __spreadValues(__spreadValues({}, defaultProps$D), props), {
4676
4677
  minDate,
4677
4678
  maxDate,
4678
4679
  type,
@@ -4926,9 +4927,9 @@ const DatePicker = (props) => {
4926
4927
  ref: pickerRef
4927
4928
  }));
4928
4929
  };
4929
- DatePicker.defaultProps = defaultProps$C;
4930
+ DatePicker.defaultProps = defaultProps$D;
4930
4931
  DatePicker.displayName = "NutDatePicker";
4931
- const defaultProps$B = {
4932
+ const defaultProps$C = {
4932
4933
  disabled: false,
4933
4934
  buttonSize: "",
4934
4935
  min: 1,
@@ -4944,7 +4945,7 @@ function pxCheck(value) {
4944
4945
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
4945
4946
  }
4946
4947
  const InputNumber = (props) => {
4947
- const _a = __spreadValues(__spreadValues({}, defaultProps$B), props), {
4948
+ const _a = __spreadValues(__spreadValues({}, defaultProps$C), props), {
4948
4949
  children,
4949
4950
  disabled,
4950
4951
  buttonSize,
@@ -5101,7 +5102,7 @@ const InputNumber = (props) => {
5101
5102
  click: addNumber
5102
5103
  }));
5103
5104
  };
5104
- InputNumber.defaultProps = defaultProps$B;
5105
+ InputNumber.defaultProps = defaultProps$C;
5105
5106
  InputNumber.displayName = "NutInputNumber";
5106
5107
  function trimExtraChar(value, char, regExp) {
5107
5108
  const index2 = value.indexOf(char);
@@ -5127,7 +5128,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
5127
5128
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
5128
5129
  return value.replace(regExp, "");
5129
5130
  }
5130
- const defaultProps$A = {
5131
+ const defaultProps$B = {
5131
5132
  type: "text",
5132
5133
  defaultValue: "",
5133
5134
  placeholder: "\u8BF7\u8F93\u5165\u4FE1\u606F",
@@ -5140,7 +5141,7 @@ const defaultProps$A = {
5140
5141
  clearable: true
5141
5142
  };
5142
5143
  const Input = (props) => {
5143
- const { locale } = useConfig();
5144
+ useConfig();
5144
5145
  const {
5145
5146
  type,
5146
5147
  defaultValue,
@@ -5158,7 +5159,7 @@ const Input = (props) => {
5158
5159
  blur,
5159
5160
  focus,
5160
5161
  clear
5161
- } = __spreadValues(__spreadValues({}, defaultProps$A), props);
5162
+ } = __spreadValues(__spreadValues({}, defaultProps$B), props);
5162
5163
  const inputBem = cn("input");
5163
5164
  const [inputValue, SetInputValue] = useState("");
5164
5165
  const [active, SetActive] = useState(false);
@@ -5217,7 +5218,7 @@ const Input = (props) => {
5217
5218
  }, label) : null), /* @__PURE__ */ React__default.createElement("input", {
5218
5219
  className: "input-text",
5219
5220
  type,
5220
- placeholder: locale.placeholder || placeholder,
5221
+ placeholder,
5221
5222
  disabled,
5222
5223
  readOnly: readonly,
5223
5224
  value: inputValue,
@@ -5242,14 +5243,14 @@ const Input = (props) => {
5242
5243
  size: "12px"
5243
5244
  }) : null) : null);
5244
5245
  };
5245
- Input.defaultProps = defaultProps$A;
5246
+ Input.defaultProps = defaultProps$B;
5246
5247
  Input.displayName = "NutInput";
5247
5248
  const radioContext = {
5248
5249
  onChange: (val) => {
5249
5250
  }
5250
5251
  };
5251
5252
  var RadioContext = React__default.createContext(radioContext);
5252
- const defaultProps$z = {
5253
+ const defaultProps$A = {
5253
5254
  value: null,
5254
5255
  textPosition: "right",
5255
5256
  onChange: (value) => {
@@ -5257,7 +5258,7 @@ const defaultProps$z = {
5257
5258
  direction: "vertical"
5258
5259
  };
5259
5260
  const RadioGroup = React__default.forwardRef((props, ref) => {
5260
- const { children } = __spreadValues(__spreadValues({}, defaultProps$z), props);
5261
+ const { children } = __spreadValues(__spreadValues({}, defaultProps$A), props);
5261
5262
  cn("RadioGroup");
5262
5263
  const _a = props, { className, value, onChange, textPosition, direction } = _a, rest = __objRest(_a, ["className", "value", "onChange", "textPosition", "direction"]);
5263
5264
  const [val2State, setVal2State] = useState(value);
@@ -5292,9 +5293,9 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
5292
5293
  className: `nut-radiogroup nut-radiogroup--${props.direction}`
5293
5294
  }, rest), cloneChildren()));
5294
5295
  });
5295
- RadioGroup.defaultProps = defaultProps$z;
5296
+ RadioGroup.defaultProps = defaultProps$A;
5296
5297
  RadioGroup.displayName = "NutRadioGroup";
5297
- const defaultProps$y = {
5298
+ const defaultProps$z = {
5298
5299
  disabled: false,
5299
5300
  checked: false,
5300
5301
  shape: "round",
@@ -5307,7 +5308,7 @@ const defaultProps$y = {
5307
5308
  }
5308
5309
  };
5309
5310
  const Radio = (props) => {
5310
- const { children } = __spreadValues(__spreadValues({}, defaultProps$y), props);
5311
+ const { children } = __spreadValues(__spreadValues({}, defaultProps$z), props);
5311
5312
  const _a = props, {
5312
5313
  className,
5313
5314
  disabled,
@@ -5375,10 +5376,10 @@ const Radio = (props) => {
5375
5376
  onClick: handleClick
5376
5377
  }, rest), props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]);
5377
5378
  };
5378
- Radio.defaultProps = defaultProps$y;
5379
+ Radio.defaultProps = defaultProps$z;
5379
5380
  Radio.displayName = "NutRadio";
5380
5381
  Radio.RadioGroup = RadioGroup;
5381
- const defaultProps$x = {
5382
+ const defaultProps$y = {
5382
5383
  count: 5,
5383
5384
  modelValue: 0,
5384
5385
  iconSize: 18,
@@ -5405,7 +5406,7 @@ const Rate = (props) => {
5405
5406
  allowHalf,
5406
5407
  spacing,
5407
5408
  change
5408
- } = __spreadValues(__spreadValues({}, defaultProps$x), props);
5409
+ } = __spreadValues(__spreadValues({}, defaultProps$y), props);
5409
5410
  const b2 = cn("rate");
5410
5411
  const bi = cn("rate-item");
5411
5412
  const [countArray, setCountArray] = useState([1, 2, 3, 4, 5]);
@@ -5468,9 +5469,9 @@ const Rate = (props) => {
5468
5469
  }));
5469
5470
  }));
5470
5471
  };
5471
- Rate.defaultProps = defaultProps$x;
5472
+ Rate.defaultProps = defaultProps$y;
5472
5473
  Rate.displayName = "NutRate";
5473
- const defaultProps$w = {
5474
+ const defaultProps$x = {
5474
5475
  title: "\u8BF7\u8F93\u5165\u5BC6\u7801",
5475
5476
  desc: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",
5476
5477
  tips: "\u5FD8\u8BB0\u5BC6\u7801",
@@ -5646,9 +5647,9 @@ const ShortPassword = (props) => {
5646
5647
  onClick: () => sure()
5647
5648
  }, locale.confirm)) : null)));
5648
5649
  };
5649
- ShortPassword.defaultProps = defaultProps$w;
5650
+ ShortPassword.defaultProps = defaultProps$x;
5650
5651
  ShortPassword.displayName = "NutShortPassword";
5651
- const defaultProps$v = {
5652
+ const defaultProps$w = {
5652
5653
  defaultValue: "",
5653
5654
  textAlign: "left",
5654
5655
  limitshow: false,
@@ -5676,7 +5677,7 @@ const TextArea = (props) => {
5676
5677
  change,
5677
5678
  blur,
5678
5679
  focus
5679
- } = __spreadValues(__spreadValues({}, defaultProps$v), props);
5680
+ } = __spreadValues(__spreadValues({}, defaultProps$w), props);
5680
5681
  const textareaBem = cn("textarea");
5681
5682
  const [inputValue, SetInputValue] = useState("");
5682
5683
  useEffect(() => {
@@ -5747,7 +5748,7 @@ const TextArea = (props) => {
5747
5748
  className: textareaBem("limit")
5748
5749
  }, inputValue.length, "/", maxlength < 0 ? 0 : maxlength) : null);
5749
5750
  };
5750
- TextArea.defaultProps = defaultProps$v;
5751
+ TextArea.defaultProps = defaultProps$w;
5751
5752
  TextArea.displayName = "NutTextArea";
5752
5753
  class UploadOptions {
5753
5754
  constructor() {
@@ -5803,7 +5804,7 @@ class Upload {
5803
5804
  }
5804
5805
  }
5805
5806
  }
5806
- const defaultProps$u = {
5807
+ const defaultProps$v = {
5807
5808
  url: "",
5808
5809
  maximum: 1,
5809
5810
  uploadIcon: "photograph",
@@ -5842,7 +5843,8 @@ class FileItem {
5842
5843
  }
5843
5844
  }
5844
5845
  const InternalUploader = (props, ref) => {
5845
- const _a = __spreadValues(__spreadValues({}, defaultProps$u), props), {
5846
+ const { locale } = useConfig();
5847
+ const _a = __spreadValues(__spreadValues({}, defaultProps$v), props), {
5846
5848
  children,
5847
5849
  uploadIcon,
5848
5850
  uploadIconSize,
@@ -5920,6 +5922,7 @@ const InternalUploader = (props, ref) => {
5920
5922
  const [fileList, setFileList] = useState([]);
5921
5923
  const [uploadQueue, setUploadQueue] = useState([]);
5922
5924
  useEffect(() => {
5925
+ console.log("defaultFileList", defaultFileList);
5923
5926
  if (defaultFileList) {
5924
5927
  setFileList(defaultFileList);
5925
5928
  }
@@ -5962,7 +5965,7 @@ const InternalUploader = (props, ref) => {
5962
5965
  fileList2.map((item) => {
5963
5966
  if (item.uid === fileItem.uid) {
5964
5967
  item.status = "ready";
5965
- item.message = "\u51C6\u5907\u4E0A\u4F20";
5968
+ item.message = locale.uploader.readyUpload;
5966
5969
  }
5967
5970
  });
5968
5971
  return [...fileList2];
@@ -5974,7 +5977,7 @@ const InternalUploader = (props, ref) => {
5974
5977
  fileList2.map((item) => {
5975
5978
  if (item.uid === fileItem.uid) {
5976
5979
  item.status = "uploading";
5977
- item.message = "\u4E0A\u4F20\u4E2D...";
5980
+ item.message = locale.uploader.uploading;
5978
5981
  }
5979
5982
  });
5980
5983
  return [...fileList2];
@@ -5987,7 +5990,7 @@ const InternalUploader = (props, ref) => {
5987
5990
  fileList2.map((item) => {
5988
5991
  if (item.uid === fileItem.uid) {
5989
5992
  item.status = "success";
5990
- item.message = "\u4E0A\u4F20\u6210\u529F";
5993
+ item.message = locale.uploader.success;
5991
5994
  }
5992
5995
  });
5993
5996
  return [...fileList2];
@@ -6002,7 +6005,7 @@ const InternalUploader = (props, ref) => {
6002
6005
  fileList2.map((item) => {
6003
6006
  if (item.uid === fileItem.uid) {
6004
6007
  item.status = "error";
6005
- item.message = "\u4E0A\u4F20\u5931\u8D25";
6008
+ item.message = locale.uploader.error;
6006
6009
  }
6007
6010
  });
6008
6011
  return [...fileList2];
@@ -6032,7 +6035,7 @@ const InternalUploader = (props, ref) => {
6032
6035
  fileItem.type = file.type;
6033
6036
  fileItem.formData = formData;
6034
6037
  fileItem.uid = file.lastModified + fileItem.uid;
6035
- fileItem.message = "\u51C6\u5907\u4E0A\u4F20";
6038
+ fileItem.message = locale.uploader.readyUpload;
6036
6039
  executeUpload(fileItem, index2);
6037
6040
  if (isPreview && file.type.includes("image")) {
6038
6041
  const reader = new FileReader();
@@ -6077,7 +6080,7 @@ const InternalUploader = (props, ref) => {
6077
6080
  removeImage && removeImage(file, fileList);
6078
6081
  setFileList([...fileList]);
6079
6082
  } else {
6080
- console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
6083
+ console.log(locale.uploader.deleteWord);
6081
6084
  }
6082
6085
  };
6083
6086
  const fileChange = (event) => {
@@ -6203,9 +6206,9 @@ const InternalUploader = (props, ref) => {
6203
6206
  })));
6204
6207
  };
6205
6208
  const Uploader = React__default.forwardRef(InternalUploader);
6206
- Uploader.defaultProps = defaultProps$u;
6209
+ Uploader.defaultProps = defaultProps$v;
6207
6210
  Uploader.displayName = "NutUploader";
6208
- const defaultProps$t = {
6211
+ const defaultProps$u = {
6209
6212
  cancelTxt: "",
6210
6213
  optionTag: "name",
6211
6214
  optionSubTag: "subname",
@@ -6223,7 +6226,7 @@ const defaultProps$t = {
6223
6226
  style: {}
6224
6227
  };
6225
6228
  const ActionSheet = (props) => {
6226
- const _a = __spreadValues(__spreadValues({}, defaultProps$t), props), {
6229
+ const _a = __spreadValues(__spreadValues({}, defaultProps$u), props), {
6227
6230
  cancelTxt,
6228
6231
  optionTag,
6229
6232
  optionSubTag,
@@ -6294,9 +6297,9 @@ const ActionSheet = (props) => {
6294
6297
  onClick: () => cancelActionSheet()
6295
6298
  }, cancelTxt)));
6296
6299
  };
6297
- ActionSheet.defaultProps = defaultProps$t;
6300
+ ActionSheet.defaultProps = defaultProps$u;
6298
6301
  ActionSheet.displayName = "NutActionSheet";
6299
- const defaultProps$s = {
6302
+ const defaultProps$t = {
6300
6303
  bottom: 20,
6301
6304
  right: 10,
6302
6305
  elId: "",
@@ -6318,7 +6321,7 @@ const BackTop = (props) => {
6318
6321
  duration,
6319
6322
  style,
6320
6323
  backTopClick
6321
- } = __spreadValues(__spreadValues({}, defaultProps$s), props);
6324
+ } = __spreadValues(__spreadValues({}, defaultProps$t), props);
6322
6325
  const [backTop, SetBackTop] = useState(false);
6323
6326
  const [scrollTop, SetScrollTop] = useState(0);
6324
6327
  let startTime = 0;
@@ -6403,7 +6406,7 @@ const BackTop = (props) => {
6403
6406
  name: "top"
6404
6407
  }));
6405
6408
  };
6406
- BackTop.defaultProps = defaultProps$s;
6409
+ BackTop.defaultProps = defaultProps$t;
6407
6410
  BackTop.displayName = "NutBackTop";
6408
6411
  function clamp(v2, min, max) {
6409
6412
  return Math.max(min, Math.min(v2, max));
@@ -10805,7 +10808,7 @@ const host = createHost(primitives, {
10805
10808
  }
10806
10809
  });
10807
10810
  const animated = host.animated;
10808
- const defaultProps$r = {
10811
+ const defaultProps$s = {
10809
10812
  attract: false,
10810
10813
  direction: void 0,
10811
10814
  boundary: {
@@ -10817,7 +10820,7 @@ const defaultProps$r = {
10817
10820
  className: ""
10818
10821
  };
10819
10822
  const Drag = (props) => {
10820
- const _a = __spreadValues(__spreadValues({}, defaultProps$r), props), { attract, direction, boundary, children, className, style } = _a, reset = __objRest(_a, ["attract", "direction", "boundary", "children", "className", "style"]);
10823
+ const _a = __spreadValues(__spreadValues({}, defaultProps$s), props), { attract, direction, boundary, children, className, style } = _a, reset = __objRest(_a, ["attract", "direction", "boundary", "children", "className", "style"]);
10821
10824
  const b2 = cn("drag");
10822
10825
  const [boundaryState, setBoundaryState] = useState(boundary);
10823
10826
  const myDrag = useRef(null);
@@ -10873,7 +10876,7 @@ const Drag = (props) => {
10873
10876
  style: currstyle
10874
10877
  }, bind()), children));
10875
10878
  };
10876
- Drag.defaultProps = defaultProps$r;
10879
+ Drag.defaultProps = defaultProps$s;
10877
10880
  Drag.displayName = "NutDrag";
10878
10881
  const Content = (props) => {
10879
10882
  const { visible, title, footer, textAlign, footerDirection, children } = props;
@@ -11032,7 +11035,7 @@ function confirm(config2, renderFunc) {
11032
11035
  update: update2
11033
11036
  };
11034
11037
  }
11035
- const defaultProps$q = {
11038
+ const defaultProps$r = {
11036
11039
  okText: "\u786E\u5B9A",
11037
11040
  cancelText: "\u53D6\u6D88",
11038
11041
  mask: true,
@@ -11129,9 +11132,9 @@ Dialog.confirm = (props) => {
11129
11132
  }));
11130
11133
  };
11131
11134
  });
11132
- Dialog.defaultProps = defaultProps$q;
11135
+ Dialog.defaultProps = defaultProps$r;
11133
11136
  Dialog.displayName = "NutDialog";
11134
- const defaultProps$p = {
11137
+ const defaultProps$q = {
11135
11138
  hasMore: true,
11136
11139
  threshold: 200,
11137
11140
  containerId: "",
@@ -11146,7 +11149,7 @@ const defaultProps$p = {
11146
11149
  };
11147
11150
  const Infiniteloading = (props) => {
11148
11151
  const { locale } = useConfig();
11149
- const _a = __spreadValues(__spreadValues({}, defaultProps$p), props), {
11152
+ const _a = __spreadValues(__spreadValues({}, defaultProps$q), props), {
11150
11153
  children,
11151
11154
  hasMore,
11152
11155
  threshold,
@@ -11334,7 +11337,7 @@ const Infiniteloading = (props) => {
11334
11337
  className: "tips"
11335
11338
  }, locale.infiniteloading.loadMoreText || loadMoreTxt)));
11336
11339
  };
11337
- Infiniteloading.defaultProps = defaultProps$p;
11340
+ Infiniteloading.defaultProps = defaultProps$q;
11338
11341
  Infiniteloading.displayName = "NutInfiniteloading";
11339
11342
  class Notification extends React.PureComponent {
11340
11343
  constructor(props) {
@@ -11491,7 +11494,7 @@ var Notify = {
11491
11494
  }
11492
11495
  }
11493
11496
  };
11494
- const defaultProps$o = {
11497
+ const defaultProps$p = {
11495
11498
  isAsync: false,
11496
11499
  checked: false,
11497
11500
  disable: false,
@@ -11513,7 +11516,7 @@ const Switch = (props) => {
11513
11516
  change,
11514
11517
  className,
11515
11518
  style
11516
- } = __spreadValues(__spreadValues({}, defaultProps$o), props);
11519
+ } = __spreadValues(__spreadValues({}, defaultProps$p), props);
11517
11520
  const [value, setValue] = useState(false);
11518
11521
  const b2 = cn("switch");
11519
11522
  useEffect(() => {
@@ -11550,10 +11553,10 @@ const Switch = (props) => {
11550
11553
  className: `${b2("label")} close`
11551
11554
  }, inactiveText))));
11552
11555
  };
11553
- Switch.defaultProps = defaultProps$o;
11556
+ Switch.defaultProps = defaultProps$p;
11554
11557
  Switch.displayName = "NutSwitch";
11555
11558
  const isObject = (val) => val !== null && typeof val === "object";
11556
- const defaultProps$n = {
11559
+ const defaultProps$o = {
11557
11560
  strokeWidth: 5,
11558
11561
  radius: 50,
11559
11562
  strokeLinecap: "round",
@@ -11563,7 +11566,7 @@ const defaultProps$n = {
11563
11566
  };
11564
11567
  const CircleProgress = (props) => {
11565
11568
  var _b;
11566
- const _a = __spreadValues(__spreadValues({}, defaultProps$n), props), {
11569
+ const _a = __spreadValues(__spreadValues({}, defaultProps$o), props), {
11567
11570
  children,
11568
11571
  progress,
11569
11572
  className,
@@ -11665,9 +11668,9 @@ const CircleProgress = (props) => {
11665
11668
  className: "nut-circleprogress-text"
11666
11669
  }, children ? children : /* @__PURE__ */ React__default.createElement("div", null, progress, "%")));
11667
11670
  };
11668
- CircleProgress.defaultProps = defaultProps$n;
11671
+ CircleProgress.defaultProps = defaultProps$o;
11669
11672
  CircleProgress.displayName = "NutCircleProgress";
11670
- const defaultProps$m = {
11673
+ const defaultProps$n = {
11671
11674
  direction: "across",
11672
11675
  list: [],
11673
11676
  standTime: 1e3,
@@ -11705,7 +11708,7 @@ const NoticeBar = (props) => {
11705
11708
  rightIcon,
11706
11709
  close,
11707
11710
  click
11708
- } = __spreadValues(__spreadValues({}, defaultProps$m), props);
11711
+ } = __spreadValues(__spreadValues({}, defaultProps$n), props);
11709
11712
  const wrap = useRef(null);
11710
11713
  const content = useRef(null);
11711
11714
  const [showNoticeBar, SetShowNoticeBar] = useState(true);
@@ -11918,16 +11921,16 @@ const NoticeBar = (props) => {
11918
11921
  size: "11px"
11919
11922
  }) : null))) : null);
11920
11923
  };
11921
- NoticeBar.defaultProps = defaultProps$m;
11924
+ NoticeBar.defaultProps = defaultProps$n;
11922
11925
  NoticeBar.displayName = "NutNoticeBar";
11923
11926
  const DataContext$1 = createContext({});
11924
- const defaultProps$l = {
11927
+ const defaultProps$m = {
11925
11928
  current: 0,
11926
11929
  direction: "horizontal",
11927
11930
  progressDot: false
11928
11931
  };
11929
11932
  const Steps = (props) => {
11930
- const propSteps = __spreadValues(__spreadValues({}, defaultProps$l), props);
11933
+ const propSteps = __spreadValues(__spreadValues({}, defaultProps$m), props);
11931
11934
  const _a = propSteps, { children, current, direction, className, progressDot, clickStep } = _a, restProps = __objRest(_a, ["children", "current", "direction", "className", "progressDot", "clickStep"]);
11932
11935
  const parentSteps = {
11933
11936
  propSteps
@@ -11943,9 +11946,9 @@ const Steps = (props) => {
11943
11946
  className: classes
11944
11947
  }, restProps), children));
11945
11948
  };
11946
- Steps.defaultProps = defaultProps$l;
11949
+ Steps.defaultProps = defaultProps$m;
11947
11950
  Steps.displayName = "NutSteps";
11948
- const defaultProps$k = {
11951
+ const defaultProps$l = {
11949
11952
  title: "",
11950
11953
  content: "",
11951
11954
  activeIndex: 0,
@@ -11954,7 +11957,7 @@ const defaultProps$k = {
11954
11957
  size: "12px"
11955
11958
  };
11956
11959
  const Step = (props) => {
11957
- const _a = __spreadValues(__spreadValues({}, defaultProps$k), props), {
11960
+ const _a = __spreadValues(__spreadValues({}, defaultProps$l), props), {
11958
11961
  children,
11959
11962
  title,
11960
11963
  content,
@@ -12018,10 +12021,10 @@ const Step = (props) => {
12018
12021
  className: "nut-step-content"
12019
12022
  }, renderContent())));
12020
12023
  };
12021
- Step.defaultProps = defaultProps$k;
12024
+ Step.defaultProps = defaultProps$l;
12022
12025
  Step.displayName = "NutStep";
12023
12026
  const DataContext = createContext({});
12024
- const defaultProps$j = {
12027
+ const defaultProps$k = {
12025
12028
  width: typeof window === "object" ? window.innerWidth : 375,
12026
12029
  height: 0,
12027
12030
  duration: 500,
@@ -12038,7 +12041,7 @@ const defaultProps$j = {
12038
12041
  };
12039
12042
  const DISTANCE = 5;
12040
12043
  const Swiper = React__default.forwardRef((props, ref) => {
12041
- const propSwiper = __spreadValues(__spreadValues({}, defaultProps$j), props);
12044
+ const propSwiper = __spreadValues(__spreadValues({}, defaultProps$k), props);
12042
12045
  const _a = propSwiper, {
12043
12046
  children,
12044
12047
  direction,
@@ -12414,13 +12417,13 @@ const Swiper = React__default.forwardRef((props, ref) => {
12414
12417
  });
12415
12418
  })) : /* @__PURE__ */ React__default.createElement("div", null, pageContent)));
12416
12419
  });
12417
- Swiper.defaultProps = defaultProps$j;
12420
+ Swiper.defaultProps = defaultProps$k;
12418
12421
  Swiper.displayName = "NutSwiper";
12419
- const defaultProps$i = {
12422
+ const defaultProps$j = {
12420
12423
  direction: "horizontal"
12421
12424
  };
12422
12425
  const SwiperItem = React__default.forwardRef((props, ref) => {
12423
- const _props = __spreadValues(__spreadValues({}, defaultProps$i), props);
12426
+ const _props = __spreadValues(__spreadValues({}, defaultProps$j), props);
12424
12427
  const { children, direction, size } = _props;
12425
12428
  const parent = useContext$1(DataContext);
12426
12429
  const [offset, setOffset] = useState(0);
@@ -12448,10 +12451,10 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
12448
12451
  style: style()
12449
12452
  }, children);
12450
12453
  });
12451
- SwiperItem.defaultProps = defaultProps$i;
12454
+ SwiperItem.defaultProps = defaultProps$j;
12452
12455
  SwiperItem.displayName = "NutSwiperItem";
12453
12456
  const AvatarContext = createContext({});
12454
- const defaultProps$h = {
12457
+ const defaultProps$i = {
12455
12458
  size: "",
12456
12459
  icon: "",
12457
12460
  bgColor: "#eee",
@@ -12462,7 +12465,7 @@ const defaultProps$h = {
12462
12465
  };
12463
12466
  const Avatar = (props) => {
12464
12467
  var _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
12465
- const _a = __spreadValues(__spreadValues({}, defaultProps$h), props), {
12468
+ const _a = __spreadValues(__spreadValues({}, defaultProps$i), props), {
12466
12469
  children,
12467
12470
  prefixCls,
12468
12471
  size,
@@ -12567,9 +12570,9 @@ const Avatar = (props) => {
12567
12570
  className: "text"
12568
12571
  }, ((_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent) ? (_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.maxContent : `+ ${avatarIndex - ((_o = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _o.maxCount)}`)));
12569
12572
  };
12570
- Avatar.defaultProps = defaultProps$h;
12573
+ Avatar.defaultProps = defaultProps$i;
12571
12574
  Avatar.displayName = "NutAvatar";
12572
- const defaultProps$g = {
12575
+ const defaultProps$h = {
12573
12576
  maxContent: "",
12574
12577
  maxCount: "",
12575
12578
  maxBgColor: "#eee",
@@ -12581,7 +12584,7 @@ const defaultProps$g = {
12581
12584
  };
12582
12585
  const AvatarGroup = (props) => {
12583
12586
  useConfig();
12584
- const propAvatarGroup = __spreadValues(__spreadValues({}, defaultProps$g), props);
12587
+ const propAvatarGroup = __spreadValues(__spreadValues({}, defaultProps$h), props);
12585
12588
  const { className, style, children } = propAvatarGroup;
12586
12589
  const avatarGroupRef = useRef(null);
12587
12590
  const b2 = cn("avatar-group");
@@ -12598,9 +12601,9 @@ const AvatarGroup = (props) => {
12598
12601
  ref: avatarGroupRef
12599
12602
  }, children));
12600
12603
  };
12601
- AvatarGroup.defaultProps = defaultProps$g;
12604
+ AvatarGroup.defaultProps = defaultProps$h;
12602
12605
  AvatarGroup.displayName = "NutAvatarGroup";
12603
- const defaultProps$f = {
12606
+ const defaultProps$g = {
12604
12607
  price: 0,
12605
12608
  needSymbol: true,
12606
12609
  symbol: "&yen;",
@@ -12609,7 +12612,7 @@ const defaultProps$f = {
12609
12612
  className: ""
12610
12613
  };
12611
12614
  const Price = (props) => {
12612
- const _a = __spreadValues(__spreadValues({}, defaultProps$f), props), { price, needSymbol, symbol, decimalDigits, thousands, className } = _a, rest = __objRest(_a, ["price", "needSymbol", "symbol", "decimalDigits", "thousands", "className"]);
12615
+ const _a = __spreadValues(__spreadValues({}, defaultProps$g), props), { price, needSymbol, symbol, decimalDigits, thousands, className } = _a, rest = __objRest(_a, ["price", "needSymbol", "symbol", "decimalDigits", "thousands", "className"]);
12613
12616
  const b2 = cn("price");
12614
12617
  const showSymbol = () => {
12615
12618
  return { __html: (needSymbol ? symbol : "") || "" };
@@ -12659,9 +12662,9 @@ const Price = (props) => {
12659
12662
  className: `${b2("small")}`
12660
12663
  }, formatDecimal(price)));
12661
12664
  };
12662
- Price.defaultProps = defaultProps$f;
12665
+ Price.defaultProps = defaultProps$g;
12663
12666
  Price.displayName = "NutPrice";
12664
- const defaultProps$e = {
12667
+ const defaultProps$f = {
12665
12668
  value: "",
12666
12669
  dot: false,
12667
12670
  max: 1e4,
@@ -12672,7 +12675,7 @@ const defaultProps$e = {
12672
12675
  icons: ""
12673
12676
  };
12674
12677
  const Badge = (props) => {
12675
- const { children, dot, top, right, zIndex, color, icons } = __spreadValues(__spreadValues({}, defaultProps$e), props);
12678
+ const { children, dot, top, right, zIndex, color, icons } = __spreadValues(__spreadValues({}, defaultProps$f), props);
12676
12679
  const content = () => {
12677
12680
  if (dot)
12678
12681
  return;
@@ -12705,9 +12708,9 @@ const Badge = (props) => {
12705
12708
  style: getStyle()
12706
12709
  }, content()));
12707
12710
  };
12708
- Badge.defaultProps = defaultProps$e;
12711
+ Badge.defaultProps = defaultProps$f;
12709
12712
  Badge.displayName = "NutBadge";
12710
- const defaultProps$d = {
12713
+ const defaultProps$e = {
12711
12714
  type: "default",
12712
12715
  color: "",
12713
12716
  textColor: "",
@@ -12733,7 +12736,7 @@ const Tag = (props) => {
12733
12736
  textColor,
12734
12737
  isShow,
12735
12738
  onClick
12736
- } = __spreadValues(__spreadValues({}, defaultProps$d), props);
12739
+ } = __spreadValues(__spreadValues({}, defaultProps$e), props);
12737
12740
  const [btnName, setBtnName] = useState("");
12738
12741
  useEffect(() => {
12739
12742
  setBtnName(classes());
@@ -12786,7 +12789,7 @@ const Tag = (props) => {
12786
12789
  className: "text"
12787
12790
  }, children)));
12788
12791
  };
12789
- Tag.defaultProps = defaultProps$d;
12792
+ Tag.defaultProps = defaultProps$e;
12790
12793
  Tag.displayName = "NutTag";
12791
12794
  function fillRef(ref, node) {
12792
12795
  if (typeof ref === "function") {
@@ -12843,7 +12846,7 @@ const getEleAttr = (ele) => {
12843
12846
  }
12844
12847
  return null;
12845
12848
  };
12846
- const defaultProps$c = {
12849
+ const defaultProps$d = {
12847
12850
  list: [],
12848
12851
  theme: "light",
12849
12852
  location: "bottom",
@@ -12853,7 +12856,7 @@ const defaultProps$c = {
12853
12856
  }
12854
12857
  };
12855
12858
  const Popover = (props) => {
12856
- const _a = __spreadValues(__spreadValues({}, defaultProps$c), props), { children, list, theme, location: location2, visible, className, style, onClick } = _a, reset = __objRest(_a, ["children", "list", "theme", "location", "visible", "className", "style", "onClick"]);
12859
+ const _a = __spreadValues(__spreadValues({}, defaultProps$d), props), { children, list, theme, location: location2, visible, className, style, onClick } = _a, reset = __objRest(_a, ["children", "list", "theme", "location", "visible", "className", "style", "onClick"]);
12857
12860
  const goodItem = useRef(null);
12858
12861
  const aa = goodItem.current && findDOMNode(goodItem.current);
12859
12862
  setTimeout(() => {
@@ -12959,9 +12962,9 @@ const Popover = (props) => {
12959
12962
  }, item.name));
12960
12963
  })) : null)));
12961
12964
  };
12962
- Popover.defaultProps = defaultProps$c;
12965
+ Popover.defaultProps = defaultProps$d;
12963
12966
  Popover.displayName = "NutPopover";
12964
- const defaultProps$b = {
12967
+ const defaultProps$c = {
12965
12968
  width: "100px",
12966
12969
  height: "100px",
12967
12970
  row: 1,
@@ -12974,7 +12977,7 @@ const defaultProps$b = {
12974
12977
  avatarShape: "round"
12975
12978
  };
12976
12979
  const Skeleton = (props) => {
12977
- const _a = __spreadValues(__spreadValues({}, defaultProps$b), props), {
12980
+ const _a = __spreadValues(__spreadValues({}, defaultProps$c), props), {
12978
12981
  className,
12979
12982
  width,
12980
12983
  height,
@@ -13052,9 +13055,9 @@ const Skeleton = (props) => {
13052
13055
  });
13053
13056
  })))));
13054
13057
  };
13055
- Skeleton.defaultProps = defaultProps$b;
13058
+ Skeleton.defaultProps = defaultProps$c;
13056
13059
  Skeleton.displayName = "NutSkeleton";
13057
- const defaultProps$a = {
13060
+ const defaultProps$b = {
13058
13061
  showPlainText: false,
13059
13062
  showDays: false,
13060
13063
  paused: false,
@@ -13063,7 +13066,7 @@ const defaultProps$a = {
13063
13066
  };
13064
13067
  const CountDown = (props) => {
13065
13068
  const { locale } = useConfig();
13066
- const _a = __spreadValues(__spreadValues({}, defaultProps$a), props), {
13069
+ const _a = __spreadValues(__spreadValues({}, defaultProps$b), props), {
13067
13070
  showPlainText,
13068
13071
  showDays,
13069
13072
  paused,
@@ -13235,9 +13238,9 @@ const CountDown = (props) => {
13235
13238
  className: b2("block")
13236
13239
  }, resttime.s))));
13237
13240
  };
13238
- CountDown.defaultProps = defaultProps$a;
13241
+ CountDown.defaultProps = defaultProps$b;
13239
13242
  CountDown.displayName = "NutCountDown";
13240
- const defaultProps$9 = {
13243
+ const defaultProps$a = {
13241
13244
  activeName: ["0"],
13242
13245
  accordion: false,
13243
13246
  icon: "",
@@ -13249,7 +13252,7 @@ function areEqual(prevProps, nextProps) {
13249
13252
  return JSON.stringify(prevProps.activeName) === JSON.stringify(nextProps.activeName);
13250
13253
  }
13251
13254
  const Collapse = memo((props) => {
13252
- const { children, activeName, accordion, icon, rotate, iconSize, iconColor, change } = __spreadValues(__spreadValues({}, defaultProps$9), props);
13255
+ const { children, activeName, accordion, icon, rotate, iconSize, iconColor, change } = __spreadValues(__spreadValues({}, defaultProps$a), props);
13253
13256
  const childrenDom = React__default.Children.toArray(children);
13254
13257
  const [defaultOpenIndex, setDefaultOpenIndex] = useState([]);
13255
13258
  const handleActiveName = () => {
@@ -13302,9 +13305,9 @@ const Collapse = memo((props) => {
13302
13305
  });
13303
13306
  }));
13304
13307
  }, areEqual);
13305
- Collapse.defaultProps = defaultProps$9;
13308
+ Collapse.defaultProps = defaultProps$a;
13306
13309
  Collapse.displayName = "NutCollapse";
13307
- const defaultProps$8 = {
13310
+ const defaultProps$9 = {
13308
13311
  title: "",
13309
13312
  name: "",
13310
13313
  isOpen: false,
@@ -13336,7 +13339,7 @@ const CollapseItem = (props) => {
13336
13339
  titleIconSize,
13337
13340
  iconSize,
13338
13341
  iconColor
13339
- } = __spreadValues(__spreadValues({}, defaultProps$8), props);
13342
+ } = __spreadValues(__spreadValues({}, defaultProps$9), props);
13340
13343
  const [domHeight, setDomHeight] = useState(-1);
13341
13344
  const [currHeight, setCurrHeight] = useState("auto");
13342
13345
  const [update2, setUpdate] = useState(false);
@@ -13402,9 +13405,9 @@ const CollapseItem = (props) => {
13402
13405
  className: colBem("content-text")
13403
13406
  }, children)));
13404
13407
  };
13405
- CollapseItem.defaultProps = defaultProps$8;
13408
+ CollapseItem.defaultProps = defaultProps$9;
13406
13409
  CollapseItem.displayName = "NutCollapseItem";
13407
- const defaultProps$7 = {
13410
+ const defaultProps$8 = {
13408
13411
  maxLen: 0,
13409
13412
  endNumber: "",
13410
13413
  delaySpeed: 300,
@@ -13413,7 +13416,7 @@ const defaultProps$7 = {
13413
13416
  className: ""
13414
13417
  };
13415
13418
  const CountUp = (props) => {
13416
- const _a = __spreadValues(__spreadValues({}, defaultProps$7), props), { maxLen, endNumber, delaySpeed, easeSpeed, className, thousands } = _a, reset = __objRest(_a, ["maxLen", "endNumber", "delaySpeed", "easeSpeed", "className", "thousands"]);
13419
+ const _a = __spreadValues(__spreadValues({}, defaultProps$8), props), { maxLen, endNumber, delaySpeed, easeSpeed, className, thousands } = _a, reset = __objRest(_a, ["maxLen", "endNumber", "delaySpeed", "easeSpeed", "className", "thousands"]);
13417
13420
  const b2 = cn("countup");
13418
13421
  const countupRef = useRef(null);
13419
13422
  const timerRef = useRef(0);
@@ -13477,9 +13480,9 @@ const CountUp = (props) => {
13477
13480
  }, item));
13478
13481
  })));
13479
13482
  };
13480
- CountUp.defaultProps = defaultProps$7;
13483
+ CountUp.defaultProps = defaultProps$8;
13481
13484
  CountUp.displayName = "NutCountUp";
13482
- const defaultProps$6 = {};
13485
+ const defaultProps$7 = {};
13483
13486
  class AnimatingNumbers extends Component {
13484
13487
  constructor(props) {
13485
13488
  super(props);
@@ -13491,10 +13494,63 @@ class AnimatingNumbers extends Component {
13491
13494
  });
13492
13495
  }
13493
13496
  }
13494
- __publicField(AnimatingNumbers, "defaultProps", defaultProps$6);
13497
+ __publicField(AnimatingNumbers, "defaultProps", defaultProps$7);
13495
13498
  __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
13496
13499
  __publicField(AnimatingNumbers, "CountUp", CountUp);
13497
13500
  AnimatingNumbers.CountUp = CountUp;
13501
+ const defaultStatus = {
13502
+ empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
13503
+ error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
13504
+ network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
13505
+ };
13506
+ const defaultProps$6 = {
13507
+ description: "\u65E0\u5185\u5BB9",
13508
+ image: "empty",
13509
+ imageSize: "",
13510
+ className: ""
13511
+ };
13512
+ const Empty = (props) => {
13513
+ const _a = __spreadValues(__spreadValues({}, defaultProps$6), props), { image, imageSize, description, children, className } = _a, rest = __objRest(_a, ["image", "imageSize", "description", "children", "className"]);
13514
+ const [imgStyle, setImgStyle] = useState({});
13515
+ const b2 = cn("empty");
13516
+ let imageNode = image;
13517
+ if (typeof image === "string") {
13518
+ const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
13519
+ const imageUrl = isHttpUrl ? image : defaultStatus[image];
13520
+ imageNode = /* @__PURE__ */ React__default.createElement("img", {
13521
+ className: "img",
13522
+ src: imageUrl,
13523
+ alt: "empty"
13524
+ });
13525
+ }
13526
+ useEffect(() => {
13527
+ setImgStyle(() => {
13528
+ if (!imageSize) {
13529
+ return {};
13530
+ }
13531
+ if (typeof imageSize === "number") {
13532
+ return {
13533
+ width: `${imageSize}px`,
13534
+ height: `${imageSize}px`
13535
+ };
13536
+ }
13537
+ return {
13538
+ width: imageSize,
13539
+ height: imageSize
13540
+ };
13541
+ });
13542
+ }, [imageSize]);
13543
+ return /* @__PURE__ */ React__default.createElement("div", __spreadValues({
13544
+ className: `${b2()} ${className}`
13545
+ }, rest), /* @__PURE__ */ React__default.createElement("div", {
13546
+ className: b2("image"),
13547
+ style: imgStyle
13548
+ }, imageNode), typeof description === "string" ? /* @__PURE__ */ React__default.createElement("div", {
13549
+ className: b2("description")
13550
+ }, description) : { description }, children);
13551
+ };
13552
+ Empty.defaultProps = defaultProps$6;
13553
+ Empty.displayName = "NutEmpty";
13498
13554
  const defaultProps$5 = {
13499
13555
  type: "custom",
13500
13556
  existAddress: [],
@@ -14024,7 +14080,7 @@ const InternalBarrage = (props, ref) => {
14024
14080
  return () => {
14025
14081
  clearInterval(timer.current);
14026
14082
  };
14027
- }, []);
14083
+ }, [barrageList]);
14028
14084
  const run = () => {
14029
14085
  clearInterval(timer.current);
14030
14086
  timer.current = setInterval(() => {
@@ -14245,4 +14301,4 @@ const Card = (props) => {
14245
14301
  };
14246
14302
  Card.defaultProps = defaultProps;
14247
14303
  Card.displayName = "NutCard";
14248
- export { ActionSheet, Address, AnimatingNumbers, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, 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 };
14304
+ export { ActionSheet, Address, AnimatingNumbers, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, DatePicker, Dialog, Divider, Drag, Elevator, Empty, 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 };