@nutui/nutui-react 1.4.5 → 1.4.6

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +36 -9
  2. package/dist/esm/Address.js +7 -7
  3. package/dist/esm/Cascader.js +1 -1
  4. package/dist/esm/Form.js +1 -1
  5. package/dist/esm/FormItem.js +2 -2
  6. package/dist/esm/Icon.js +2 -2
  7. package/dist/esm/Image.js +76 -11
  8. package/dist/esm/NoticeBar.js +0 -2
  9. package/dist/esm/Notify.js +2 -2
  10. package/dist/esm/Picker.js +0 -1
  11. package/dist/esm/Popup.js +4 -4
  12. package/dist/esm/Progress.js +15 -7
  13. package/dist/esm/SearchBar.js +5 -4
  14. package/dist/esm/Sticky.js +7 -1
  15. package/dist/esm/{formitem-5a7034ff.js → formitem-9d18eb24.js} +4 -0
  16. package/dist/esm/{icon-8dc4de10.js → icon-2242973e.js} +15 -7
  17. package/dist/esm/types/src/packages/image/image.d.ts +3 -0
  18. package/dist/locales/base.js +1 -1
  19. package/dist/locales/en-US.js +1 -1
  20. package/dist/locales/id-ID.js +1 -1
  21. package/dist/locales/zh-CN.js +1 -1
  22. package/dist/locales/zh-TW.js +1 -1
  23. package/dist/locales/zh-UG.js +1 -1
  24. package/dist/nutui.react.es.js +158 -75
  25. package/dist/nutui.react.umd.js +158 -75
  26. package/dist/packages/calendar/calendar.scss +19 -1
  27. package/dist/packages/fixednav/fixednav.scss +1 -1
  28. package/dist/packages/image/image.scss +2 -0
  29. package/dist/packages/input/input.scss +3 -18
  30. package/dist/packages/notify/notify.scss +23 -19
  31. package/dist/packages/popup/popup.scss +130 -93
  32. package/dist/packages/searchbar/searchbar.scss +6 -20
  33. package/dist/packages/sticky/sticky.scss +3 -0
  34. package/dist/packages/tag/tag.scss +6 -1
  35. package/dist/style.css +1 -1
  36. package/dist/style.es.js +1 -1
  37. package/dist/styles/variables.scss +1 -3
  38. package/dist/types/index.d.ts +3 -0
  39. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.5 Wed Feb 01 2023 15:10:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.6 Wed Feb 08 2023 16:17:39 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -73,7 +73,7 @@
73
73
  classname.exports = classname_production_min;
74
74
  }
75
75
  const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
76
- const defaultProps$1s = {
76
+ const defaultProps$1t = {
77
77
  name: "",
78
78
  size: "",
79
79
  classPrefix: "nut-icon",
@@ -85,7 +85,13 @@
85
85
  className: ""
86
86
  };
87
87
  function pxCheck$3(value) {
88
- return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
88
+ if (value === "") {
89
+ return value;
90
+ }
91
+ if (Number.isNaN(Number(value))) {
92
+ return String(value);
93
+ }
94
+ return `${value}px`;
89
95
  }
90
96
  function Icon$1(props) {
91
97
  const {
@@ -101,7 +107,7 @@
101
107
  onClick,
102
108
  ...rest
103
109
  } = {
104
- ...defaultProps$1s,
110
+ ...defaultProps$1t,
105
111
  ...props
106
112
  };
107
113
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -117,15 +123,18 @@
117
123
  return { src: name };
118
124
  return {};
119
125
  };
126
+ const styles = {};
127
+ const checkedSize = pxCheck$3(size);
128
+ if (checkedSize) {
129
+ styles.width = styles.height = styles.fontSize = checkedSize;
130
+ }
120
131
  return React__default["default"].createElement(
121
132
  type2,
122
133
  {
123
134
  className: isImage ? `${b("img")} ${className || ""} ` : `${fontClassName} ${b(null)} ${classPrefix}-${name} ${className || ""}`,
124
135
  style: {
125
136
  color,
126
- fontSize: pxCheck$3(size),
127
- width: pxCheck$3(size),
128
- height: pxCheck$3(size),
137
+ ...styles,
129
138
  ...style
130
139
  },
131
140
  ...rest,
@@ -135,13 +144,13 @@
135
144
  children
136
145
  );
137
146
  }
138
- Icon$1.defaultProps = defaultProps$1s;
147
+ Icon$1.defaultProps = defaultProps$1t;
139
148
  Icon$1.displayName = "NutIcon";
140
149
  const ComponentDefaults = {
141
150
  iconClassPrefix: "nut-icon",
142
151
  iconFontClassName: "nutui-iconfont"
143
152
  };
144
- const defaultProps$1r = {
153
+ const defaultProps$1s = {
145
154
  ...ComponentDefaults,
146
155
  className: "",
147
156
  color: "",
@@ -177,7 +186,7 @@
177
186
  iconFontClassName,
178
187
  ...rest
179
188
  } = {
180
- ...defaultProps$1r,
189
+ ...defaultProps$1s,
181
190
  ...props
182
191
  };
183
192
  const getStyle = React.useCallback(() => {
@@ -255,9 +264,9 @@
255
264
  className: icon || loading ? "text" : ""
256
265
  }, children)));
257
266
  };
258
- Button.defaultProps = defaultProps$1r;
267
+ Button.defaultProps = defaultProps$1s;
259
268
  Button.displayName = "NutButton";
260
- const defaultProps$1q = {
269
+ const defaultProps$1r = {
261
270
  ...ComponentDefaults,
262
271
  title: null,
263
272
  subTitle: null,
@@ -299,7 +308,7 @@
299
308
  iconFontClassName,
300
309
  ...rest
301
310
  } = {
302
- ...defaultProps$1q,
311
+ ...defaultProps$1r,
303
312
  ...props
304
313
  };
305
314
  const b = cn("cell");
@@ -349,9 +358,9 @@
349
358
  className: b("link")
350
359
  }) : linkSlot));
351
360
  };
352
- Cell.defaultProps = defaultProps$1q;
361
+ Cell.defaultProps = defaultProps$1r;
353
362
  Cell.displayName = "NutCell";
354
- const defaultProps$1p = {
363
+ const defaultProps$1q = {
355
364
  title: "",
356
365
  desc: "",
357
366
  className: "",
@@ -360,7 +369,7 @@
360
369
  };
361
370
  const CellGroup = (props) => {
362
371
  const { children, className, title, desc, titleSlot, descSlot } = {
363
- ...defaultProps$1p,
372
+ ...defaultProps$1q,
364
373
  ...props
365
374
  };
366
375
  const b = cn("cell-group");
@@ -374,7 +383,7 @@
374
383
  className: b("wrap")
375
384
  }, children));
376
385
  };
377
- CellGroup.defaultProps = defaultProps$1p;
386
+ CellGroup.defaultProps = defaultProps$1q;
378
387
  CellGroup.displayName = "NutCellGroup";
379
388
  var INFINITY = 1 / 0;
380
389
  var symbolTag = "[object Symbol]";
@@ -786,7 +795,7 @@
786
795
  errorCanvasTips: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas"
787
796
  }
788
797
  };
789
- const defaultProps$1o = {
798
+ const defaultProps$1p = {
790
799
  locale: zhCN
791
800
  };
792
801
  const defaultConfigRef = {
@@ -810,7 +819,7 @@
810
819
  return cssVars;
811
820
  }
812
821
  const ConfigProvider = (props) => {
813
- const { children, ...config2 } = { ...defaultProps$1o, ...props };
822
+ const { children, ...config2 } = { ...defaultProps$1p, ...props };
814
823
  const parentConfig = useConfig();
815
824
  const theme = config2.theme || {};
816
825
  const style = React.useMemo(
@@ -826,9 +835,9 @@
826
835
  style
827
836
  }, children));
828
837
  };
829
- ConfigProvider.defaultProps = defaultProps$1o;
838
+ ConfigProvider.defaultProps = defaultProps$1p;
830
839
  ConfigProvider.displayName = "NutConfigProvider";
831
- const defaultProps$1n = {
840
+ const defaultProps$1o = {
832
841
  fit: "fill",
833
842
  position: "center",
834
843
  alt: "",
@@ -836,7 +845,8 @@
836
845
  height: "",
837
846
  round: false,
838
847
  showError: true,
839
- showLoading: true
848
+ showLoading: true,
849
+ isLazy: false
840
850
  };
841
851
  const Image$1 = (props) => {
842
852
  useConfig();
@@ -856,14 +866,19 @@
856
866
  showLoading,
857
867
  slotError,
858
868
  slotLoding,
869
+ isLazy,
870
+ loadingImg,
871
+ errorImg,
859
872
  onClick,
860
873
  onLoad,
861
874
  onError
862
- } = { ...defaultProps$1n, ...props };
875
+ } = { ...defaultProps$1o, ...props };
863
876
  const [loading, setLoading] = React.useState(true);
864
877
  const [isError, setIsError] = React.useState(false);
878
+ const [_src, setSrc] = React.useState("");
865
879
  React.useEffect(() => {
866
880
  if (src) {
881
+ setSrc(src);
867
882
  setIsError(false);
868
883
  setLoading(true);
869
884
  }
@@ -891,6 +906,46 @@
891
906
  objectPosition: position,
892
907
  ...style
893
908
  };
909
+ const observer = React.useRef(null);
910
+ const initObserver = () => {
911
+ const imgs = document.querySelectorAll(".nut-img.lazyload");
912
+ const options2 = {
913
+ threshold: [0],
914
+ rootMargin: "0px"
915
+ };
916
+ observer.current = new IntersectionObserver((entires, self2) => {
917
+ entires.forEach((item) => {
918
+ if (item.isIntersecting) {
919
+ setTimeout(() => {
920
+ const img = item.target;
921
+ if (img.dataset.src) {
922
+ img.src = img.dataset.src;
923
+ img.removeAttribute("data-src");
924
+ }
925
+ observer.current.unobserve(item.target);
926
+ }, 300);
927
+ }
928
+ });
929
+ }, options2);
930
+ imgs.forEach((item) => {
931
+ observer.current.observe(item);
932
+ });
933
+ };
934
+ const resetObserver = () => {
935
+ observer.current.disconnect && observer.current.disconnect();
936
+ };
937
+ React.useEffect(() => {
938
+ isLazy && initObserver();
939
+ return () => {
940
+ isLazy && resetObserver();
941
+ };
942
+ }, [isLazy]);
943
+ const loadingBg = {
944
+ backgroundImage: loadingImg ? `url('${loadingImg}')` : ""
945
+ };
946
+ const errorBg = {
947
+ backgroundImage: errorImg ? `url('${errorImg}')` : ""
948
+ };
894
949
  const imageClick = (event) => {
895
950
  onClick && onClick(event);
896
951
  };
@@ -900,24 +955,34 @@
900
955
  onClick: (e2) => {
901
956
  imageClick(e2);
902
957
  }
903
- }, /* @__PURE__ */ React__default["default"].createElement("img", {
958
+ }, isLazy ? /* @__PURE__ */ React__default["default"].createElement("img", {
959
+ className: "nut-img lazyload",
960
+ style: styles,
961
+ "data-src": _src,
962
+ alt,
963
+ loading: "lazy",
964
+ onLoad: load,
965
+ onError: error
966
+ }) : /* @__PURE__ */ React__default["default"].createElement("img", {
904
967
  className: "nut-img",
905
968
  style: styles,
906
- src,
969
+ src: _src,
907
970
  alt,
908
971
  onLoad: load,
909
972
  onError: error
910
- }), showLoading && loading ? /* @__PURE__ */ React__default["default"].createElement("div", {
911
- className: "nut-img-loading"
912
- }, slotLoding || children || /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
973
+ }), loading && showLoading ? /* @__PURE__ */ React__default["default"].createElement("div", {
974
+ className: "nut-img-loading",
975
+ style: loadingBg
976
+ }, !loadingImg && (slotLoding || children || /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
913
977
  name: "image"
914
- })) : null, showError && isError && !loading ? /* @__PURE__ */ React__default["default"].createElement("div", {
915
- className: "nut-img-error"
916
- }, slotError || children || /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
978
+ }))) : null, isError && showError && !loading ? /* @__PURE__ */ React__default["default"].createElement("div", {
979
+ className: "nut-img-error",
980
+ style: errorBg
981
+ }, !errorImg && (slotError || children || /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
917
982
  name: "image-error"
918
- })) : null);
983
+ }))) : null);
919
984
  };
920
- Image$1.defaultProps = defaultProps$1n;
985
+ Image$1.defaultProps = defaultProps$1o;
921
986
  Image$1.displayName = "NutImage";
922
987
  var classnames = { exports: {} };
923
988
  /*!
@@ -1510,7 +1575,7 @@
1510
1575
  };
1511
1576
  CSSTransition.propTypes = {};
1512
1577
  var CSSTransition$1 = CSSTransition;
1513
- const defaultProps$1m = {
1578
+ const defaultProps$1n = {
1514
1579
  ...ComponentDefaults,
1515
1580
  position: "center",
1516
1581
  transition: "",
@@ -1592,15 +1657,15 @@
1592
1657
  const classes = classNames(
1593
1658
  {
1594
1659
  round,
1595
- [`popup-${position}`]: true,
1660
+ [`nut-popup-${position}`]: true,
1596
1661
  [`${popClass}`]: true,
1597
1662
  [`${className}`]: true
1598
1663
  },
1599
1664
  b("")
1600
1665
  );
1601
1666
  const closeClasses = classNames({
1602
- "nutui-popup__close-icon": true,
1603
- [`nutui-popup__close-icon--${closeIconPosition}`]: true
1667
+ "nut-popup__close-icon": true,
1668
+ [`nut-popup__close-icon--${closeIconPosition}`]: true
1604
1669
  });
1605
1670
  const open = () => {
1606
1671
  if (!innerVisible) {
@@ -1692,14 +1757,14 @@
1692
1757
  !visible && close();
1693
1758
  }, [visible]);
1694
1759
  React.useEffect(() => {
1695
- setTransitionName(transition || `popup-slide-${position}`);
1760
+ setTransitionName(transition || `nut-popup-slide-${position}`);
1696
1761
  }, [position]);
1697
1762
  return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, renderToContainer(teleport, renderNode()));
1698
1763
  };
1699
- Popup.defaultProps = defaultProps$1m;
1764
+ Popup.defaultProps = defaultProps$1n;
1700
1765
  Popup.displayName = "NutPopup";
1701
1766
  const DataContext$2 = React.createContext({});
1702
- const defaultProps$1l = {
1767
+ const defaultProps$1m = {
1703
1768
  span: "24",
1704
1769
  offset: "0",
1705
1770
  gutter: "0"
@@ -1712,7 +1777,7 @@
1712
1777
  offset,
1713
1778
  children,
1714
1779
  onClick
1715
- } = { ...defaultProps$1l, ...props };
1780
+ } = { ...defaultProps$1m, ...props };
1716
1781
  const [colName, setColName] = React.useState("");
1717
1782
  const [colStyle, setColStyle] = React.useState({});
1718
1783
  const { gutter } = React.useContext(DataContext$2);
@@ -1738,9 +1803,9 @@
1738
1803
  }
1739
1804
  }, children);
1740
1805
  };
1741
- Col.defaultProps = defaultProps$1l;
1806
+ Col.defaultProps = defaultProps$1m;
1742
1807
  Col.displayName = "NutCol";
1743
- const defaultProps$1k = {
1808
+ const defaultProps$1l = {
1744
1809
  contentPosition: "center",
1745
1810
  dashed: false,
1746
1811
  hairline: true,
@@ -1757,7 +1822,7 @@
1757
1822
  direction,
1758
1823
  ...rest
1759
1824
  } = {
1760
- ...defaultProps$1k,
1825
+ ...defaultProps$1l,
1761
1826
  ...props
1762
1827
  };
1763
1828
  const dividerBem = cn("divider");
@@ -1778,14 +1843,14 @@
1778
1843
  ...rest
1779
1844
  }, children);
1780
1845
  };
1781
- Divider.defaultProps = defaultProps$1k;
1846
+ Divider.defaultProps = defaultProps$1l;
1782
1847
  Divider.displayName = "NutDivider";
1783
1848
  const gridContext = {
1784
1849
  onClick: (item, index) => {
1785
1850
  }
1786
1851
  };
1787
1852
  var GridContext = React__default["default"].createContext(gridContext);
1788
- const defaultProps$1j = {
1853
+ const defaultProps$1k = {
1789
1854
  columnNum: 4,
1790
1855
  border: true,
1791
1856
  gutter: 0,
@@ -1813,7 +1878,7 @@
1813
1878
  className,
1814
1879
  onClick,
1815
1880
  ...rest
1816
- } = { ...defaultProps$1j, ...props };
1881
+ } = { ...defaultProps$1k, ...props };
1817
1882
  const childrenDom = React__default["default"].Children.toArray(children);
1818
1883
  const pxCheck2 = (value) => {
1819
1884
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -1854,9 +1919,9 @@
1854
1919
  });
1855
1920
  })));
1856
1921
  };
1857
- Grid.defaultProps = defaultProps$1j;
1922
+ Grid.defaultProps = defaultProps$1k;
1858
1923
  Grid.displayName = "NutGrid";
1859
- const defaultProps$1i = {
1924
+ const defaultProps$1j = {
1860
1925
  ...ComponentDefaults,
1861
1926
  text: "",
1862
1927
  fontSize: "",
@@ -1899,7 +1964,7 @@
1899
1964
  onClick,
1900
1965
  ...rest
1901
1966
  } = {
1902
- ...defaultProps$1i,
1967
+ ...defaultProps$1j,
1903
1968
  ...props
1904
1969
  };
1905
1970
  const b = cn("grid-item");
@@ -1970,18 +2035,18 @@
1970
2035
  style: { fontSize, color }
1971
2036
  }, text), children && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, children)));
1972
2037
  };
1973
- GridItem.defaultProps = defaultProps$1i;
2038
+ GridItem.defaultProps = defaultProps$1j;
1974
2039
  GridItem.displayName = "NutGridItem";
1975
- const defaultProps$1h = {};
2040
+ const defaultProps$1i = {};
1976
2041
  const Layout = (props) => {
1977
- ({ ...defaultProps$1h, ...props });
2042
+ ({ ...defaultProps$1i, ...props });
1978
2043
  return /* @__PURE__ */ React__default["default"].createElement("div", {
1979
2044
  className: "nut-layout"
1980
2045
  }, "Layout");
1981
2046
  };
1982
- Layout.defaultProps = defaultProps$1h;
2047
+ Layout.defaultProps = defaultProps$1i;
1983
2048
  Layout.displayName = "NutLayout";
1984
- const defaultProps$1g = {
2049
+ const defaultProps$1h = {
1985
2050
  type: "",
1986
2051
  justify: "start",
1987
2052
  align: "flex-start",
@@ -2000,7 +2065,7 @@
2000
2065
  gutter,
2001
2066
  onClick
2002
2067
  } = {
2003
- ...defaultProps$1g,
2068
+ ...defaultProps$1h,
2004
2069
  ...props
2005
2070
  };
2006
2071
  const prefixCls = "nut-row";
@@ -2035,7 +2100,7 @@
2035
2100
  children
2036
2101
  ));
2037
2102
  };
2038
- Row.defaultProps = defaultProps$1g;
2103
+ Row.defaultProps = defaultProps$1h;
2039
2104
  Row.displayName = "NutRow";
2040
2105
  const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
2041
2106
  const defaultRoot = canUseDom ? window : void 0;
@@ -2110,6 +2175,12 @@
2110
2175
  stop2.current = true;
2111
2176
  };
2112
2177
  }
2178
+ const defaultProps$1g = {
2179
+ position: "top",
2180
+ top: 0,
2181
+ bottom: 0,
2182
+ zIndex: 2e3
2183
+ };
2113
2184
  const Sticky = (props) => {
2114
2185
  const {
2115
2186
  position = "top",
@@ -2248,6 +2319,7 @@
2248
2319
  style: stickyStyle
2249
2320
  }, children));
2250
2321
  };
2322
+ Sticky.defaultProps = defaultProps$1g;
2251
2323
  Sticky.displayName = "NutSticky";
2252
2324
  function clamp$1(v, min, max) {
2253
2325
  return Math.max(min, Math.min(v, max));
@@ -10494,7 +10566,6 @@
10494
10566
  }
10495
10567
  }, [defaultValueData]);
10496
10568
  React.useEffect(() => {
10497
- console.log("\u4FEE\u6539");
10498
10569
  onChange && onChange(columnIndex, chooseValueData, selectedOptions());
10499
10570
  if (isConfirmEvent.current) {
10500
10571
  isConfirmEvent.current = false;
@@ -12149,6 +12220,10 @@
12149
12220
  return {
12150
12221
  value: getFieldValue(name),
12151
12222
  onChange: (event) => {
12223
+ const originOnChange = children.props.onChange;
12224
+ if (originOnChange) {
12225
+ originOnChange(event);
12226
+ }
12152
12227
  let newValue = event;
12153
12228
  switch (type2) {
12154
12229
  case "checkbox":
@@ -14016,7 +14091,7 @@
14016
14091
  return /* @__PURE__ */ React__default["default"].createElement("input", {
14017
14092
  className: `${searchbarBem("input")} ${searchbarBem(alignClass)} ${shape === "round" ? searchbarBem("round") : ""} ${clearable ? searchbarBem("input-clear") : ""}`,
14018
14093
  ref: searchRef,
14019
- style: { ...props.style, background: props.inputBackground },
14094
+ style: { ...props.style },
14020
14095
  value: value || "",
14021
14096
  placeholder: placeholder || locale.placeholder,
14022
14097
  disabled,
@@ -14130,7 +14205,8 @@
14130
14205
  className: `${searchbarBem()} ${disabled ? searchbarBem("disabled") : ""} ${className || ""}`,
14131
14206
  style: { ...props.style, background: props.background }
14132
14207
  }, renderLeftoutIcon(), renderLabel(), /* @__PURE__ */ React__default["default"].createElement("div", {
14133
- className: `${searchbarBem("content")}`
14208
+ className: `${searchbarBem("content")}`,
14209
+ style: { background: props.inputBackground }
14134
14210
  }, renderLeftinIcon(), renderField(), renderRightinIcon(), clearable && value && handleClear()), renderRightoutIcon(), renderRightLabel());
14135
14211
  };
14136
14212
  SearchBar.defaultProps = defaultProps$O;
@@ -14444,7 +14520,13 @@
14444
14520
  className: ""
14445
14521
  };
14446
14522
  function pxCheck(value) {
14447
- return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
14523
+ if (value === "") {
14524
+ return value;
14525
+ }
14526
+ if (Number.isNaN(Number(value))) {
14527
+ return String(value);
14528
+ }
14529
+ return `${value}px`;
14448
14530
  }
14449
14531
  function Icon(props) {
14450
14532
  const {
@@ -14476,15 +14558,18 @@
14476
14558
  return { src: name };
14477
14559
  return {};
14478
14560
  };
14561
+ const styles = {};
14562
+ const checkedSize = pxCheck(size);
14563
+ if (checkedSize) {
14564
+ styles.width = styles.height = styles.fontSize = checkedSize;
14565
+ }
14479
14566
  return React__default["default"].createElement(
14480
14567
  type2,
14481
14568
  {
14482
14569
  className: isImage ? `${b("img")} ${className || ""} ` : `${fontClassName} ${b(null)} ${classPrefix}-${name} ${className || ""}`,
14483
14570
  style: {
14484
14571
  color,
14485
- fontSize: pxCheck(size),
14486
- width: pxCheck(size),
14487
- height: pxCheck(size),
14572
+ ...styles,
14488
14573
  ...style
14489
14574
  },
14490
14575
  ...rest,
@@ -15951,8 +16036,8 @@
15951
16036
  this.state;
15952
16037
  cn("notify");
15953
16038
  const classes = classNames({
15954
- "popup-top": position === "top",
15955
- "popup-bottom": position === "bottom",
16039
+ "nut-notify--popup-top": position === "top",
16040
+ "nut-notify--popup-bottom": position === "bottom",
15956
16041
  "nut-notify": true,
15957
16042
  [`nut-notify--${type2}`]: true
15958
16043
  });
@@ -18747,8 +18832,6 @@
18747
18832
  }
18748
18833
  return () => {
18749
18834
  clearInterval(timer);
18750
- startRoll();
18751
- startRollEasy();
18752
18835
  };
18753
18836
  }, []);
18754
18837
  React.useEffect(() => {
@@ -20287,7 +20370,7 @@
20287
20370
  defaultIcon: "location2",
20288
20371
  selectedIcon: "Check",
20289
20372
  isShowCustomAddress: true,
20290
- customAndExistTitle: "\u9009\u62E9\u5176\u4ED6\u5730\u5740"
20373
+ customAndExistTitle: ""
20291
20374
  };
20292
20375
  const ExistRender = (props) => {
20293
20376
  const { locale } = useConfig();
@@ -20362,7 +20445,7 @@
20362
20445
  onClick: switchModule
20363
20446
  }, /* @__PURE__ */ React__default["default"].createElement("div", {
20364
20447
  className: b("choose-other-btn")
20365
- }, locale.address.chooseAnotherAddress || customAndExistTitle)));
20448
+ }, customAndExistTitle || locale.address.chooseAnotherAddress)));
20366
20449
  };
20367
20450
  const defaultProps$7 = {
20368
20451
  modelValue: [],
@@ -20645,15 +20728,15 @@
20645
20728
  modelValue: false,
20646
20729
  modelSelect: [],
20647
20730
  type: "custom",
20648
- customAddressTitle: "\u8BF7\u9009\u62E9\u6240\u5728\u5730\u533A",
20731
+ customAddressTitle: "",
20649
20732
  province: [],
20650
20733
  city: [],
20651
20734
  country: [],
20652
20735
  town: [],
20653
20736
  isShowCustomAddress: true,
20654
20737
  existAddress: [],
20655
- existAddressTitle: "\u914D\u9001\u81F3",
20656
- customAndExistTitle: "\u9009\u62E9\u5176\u4ED6\u5730\u5740",
20738
+ existAddressTitle: "",
20739
+ customAndExistTitle: "",
20657
20740
  height: "200px",
20658
20741
  defaultIcon: "location2",
20659
20742
  selectedIcon: "Check",
@@ -20794,7 +20877,7 @@
20794
20877
  color: "#cccccc"
20795
20878
  })), /* @__PURE__ */ React__default["default"].createElement("div", {
20796
20879
  className: b("header__title")
20797
- }, privateType === "custom" ? locale.address.selectRegion || customAddressTitle : locale.address.deliveryTo || existAddressTitle), /* @__PURE__ */ React__default["default"].createElement("div", {
20880
+ }, privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo), /* @__PURE__ */ React__default["default"].createElement("div", {
20798
20881
  onClick: () => handClose()
20799
20882
  }, closeBtnIcon && /* @__PURE__ */ React__default["default"].createElement(Icon$1, {
20800
20883
  classPrefix: iconClassPrefix,
@@ -20844,7 +20927,7 @@
20844
20927
  selectedIcon,
20845
20928
  defaultIcon,
20846
20929
  isShowCustomAddress,
20847
- customAndExistTitle: locale.address.chooseAnotherAddress || customAndExistTitle,
20930
+ customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
20848
20931
  onSelected: selectedExist,
20849
20932
  onSwitchModule
20850
20933
  }))));