@nutui/nutui-react-taro 1.3.14-beta.1 → 1.3.15-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/CHANGELOG.md +21 -12
- package/dist/esm/Animate/style/index.js +2 -0
- package/dist/esm/Animate.js +6 -0
- package/dist/esm/Ellipsis/style/index.js +2 -0
- package/dist/esm/Ellipsis.js +7 -0
- package/dist/esm/animate.taro-b0e83dd5.js +54 -0
- package/dist/esm/ellipsis.taro-5c2eac2a.js +309 -0
- package/dist/esm/nutui-react.es.js +2 -0
- package/dist/esm/types/src/locales/zh-UG.d.ts +3 -0
- package/dist/esm/types/src/packages/animate/__tests__/animate.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/animate/animate.d.ts +11 -0
- package/dist/esm/types/src/packages/animate/animate.taro.d.ts +11 -0
- package/dist/esm/types/src/packages/animate/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/animate/index.d.ts +2 -0
- package/dist/esm/types/src/packages/animate/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/animate/type.d.ts +2 -0
- package/dist/esm/types/src/packages/ellipsis/__test__/ellipsis.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/ellipsis/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +14 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +14 -0
- package/dist/esm/types/src/packages/ellipsis/index.d.ts +2 -0
- package/dist/esm/types/src/packages/ellipsis/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +3 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.d.ts +3 -0
- package/dist/locales/zh-UG.js +132 -0
- package/dist/nutui.react.es.js +532 -251
- package/dist/nutui.react.umd.js +533 -250
- package/dist/packages/animate/animate.scss +284 -0
- package/dist/packages/ellipsis/ellipsis.scss +17 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +2 -0
- package/dist/types/index.d.ts +27 -1
- package/dist/types/nutui.taro.react.build.ts +5 -1
- package/package.json +1 -1
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.3.
|
|
2
|
+
* @nutui/nutui-react-taro v1.3.15-beta.0 Wed Dec 14 2022 17:42:10 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ classname_production_min.cn = e, classname_production_min.withNaming = r;
|
|
|
60
60
|
classname.exports = classname_production_min;
|
|
61
61
|
}
|
|
62
62
|
const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
63
|
-
const defaultProps$
|
|
63
|
+
const defaultProps$1v = {
|
|
64
64
|
name: "",
|
|
65
65
|
size: "",
|
|
66
66
|
classPrefix: "nut-icon",
|
|
@@ -88,7 +88,7 @@ function Icon$1(props) {
|
|
|
88
88
|
onClick,
|
|
89
89
|
...rest
|
|
90
90
|
} = {
|
|
91
|
-
...defaultProps$
|
|
91
|
+
...defaultProps$1v,
|
|
92
92
|
...props
|
|
93
93
|
};
|
|
94
94
|
const isImage = name ? name.indexOf("/") !== -1 : false;
|
|
@@ -122,13 +122,13 @@ function Icon$1(props) {
|
|
|
122
122
|
children
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
Icon$1.defaultProps = defaultProps$
|
|
125
|
+
Icon$1.defaultProps = defaultProps$1v;
|
|
126
126
|
Icon$1.displayName = "NutIcon";
|
|
127
127
|
const ComponentDefaults = {
|
|
128
128
|
iconClassPrefix: "nut-icon",
|
|
129
129
|
iconFontClassName: "nutui-iconfont"
|
|
130
130
|
};
|
|
131
|
-
const defaultProps$
|
|
131
|
+
const defaultProps$1u = {
|
|
132
132
|
...ComponentDefaults,
|
|
133
133
|
className: "",
|
|
134
134
|
color: "",
|
|
@@ -164,7 +164,7 @@ const Button = (props) => {
|
|
|
164
164
|
iconFontClassName,
|
|
165
165
|
...rest
|
|
166
166
|
} = {
|
|
167
|
-
...defaultProps$
|
|
167
|
+
...defaultProps$1u,
|
|
168
168
|
...props
|
|
169
169
|
};
|
|
170
170
|
const getStyle = useCallback(() => {
|
|
@@ -243,9 +243,9 @@ const Button = (props) => {
|
|
|
243
243
|
className: icon || loading ? "text" : ""
|
|
244
244
|
}, children)));
|
|
245
245
|
};
|
|
246
|
-
Button.defaultProps = defaultProps$
|
|
246
|
+
Button.defaultProps = defaultProps$1u;
|
|
247
247
|
Button.displayName = "NutButton";
|
|
248
|
-
const defaultProps$
|
|
248
|
+
const defaultProps$1t = {
|
|
249
249
|
...ComponentDefaults,
|
|
250
250
|
title: null,
|
|
251
251
|
subTitle: null,
|
|
@@ -291,7 +291,7 @@ const Cell = (props) => {
|
|
|
291
291
|
iconFontClassName,
|
|
292
292
|
...rest
|
|
293
293
|
} = {
|
|
294
|
-
...defaultProps$
|
|
294
|
+
...defaultProps$1t,
|
|
295
295
|
...props
|
|
296
296
|
};
|
|
297
297
|
const b2 = cn("cell");
|
|
@@ -342,9 +342,9 @@ const Cell = (props) => {
|
|
|
342
342
|
className: b2("link")
|
|
343
343
|
}) : linkSlot));
|
|
344
344
|
};
|
|
345
|
-
Cell.defaultProps = defaultProps$
|
|
345
|
+
Cell.defaultProps = defaultProps$1t;
|
|
346
346
|
Cell.displayName = "NutCell";
|
|
347
|
-
const defaultProps$
|
|
347
|
+
const defaultProps$1s = {
|
|
348
348
|
title: "",
|
|
349
349
|
desc: "",
|
|
350
350
|
className: "",
|
|
@@ -353,7 +353,7 @@ const defaultProps$1q = {
|
|
|
353
353
|
};
|
|
354
354
|
const CellGroup = (props) => {
|
|
355
355
|
const { children, className, title, desc, titleSlot, descSlot } = {
|
|
356
|
-
...defaultProps$
|
|
356
|
+
...defaultProps$1s,
|
|
357
357
|
...props
|
|
358
358
|
};
|
|
359
359
|
const b2 = cn("cell-group");
|
|
@@ -367,7 +367,7 @@ const CellGroup = (props) => {
|
|
|
367
367
|
className: b2("wrap")
|
|
368
368
|
}, children));
|
|
369
369
|
};
|
|
370
|
-
CellGroup.defaultProps = defaultProps$
|
|
370
|
+
CellGroup.defaultProps = defaultProps$1s;
|
|
371
371
|
CellGroup.displayName = "NutCellGroup";
|
|
372
372
|
var classnames = { exports: {} };
|
|
373
373
|
/*!
|
|
@@ -960,7 +960,7 @@ CSSTransition.defaultProps = {
|
|
|
960
960
|
};
|
|
961
961
|
CSSTransition.propTypes = {};
|
|
962
962
|
var CSSTransition$1 = CSSTransition;
|
|
963
|
-
const defaultProps$
|
|
963
|
+
const defaultProps$1r = {
|
|
964
964
|
...ComponentDefaults,
|
|
965
965
|
position: "center",
|
|
966
966
|
transition: "",
|
|
@@ -1146,7 +1146,7 @@ const Popup = (props) => {
|
|
|
1146
1146
|
}, [position]);
|
|
1147
1147
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(teleport, renderNode()));
|
|
1148
1148
|
};
|
|
1149
|
-
Popup.defaultProps = defaultProps$
|
|
1149
|
+
Popup.defaultProps = defaultProps$1r;
|
|
1150
1150
|
Popup.displayName = "NutPopup";
|
|
1151
1151
|
const zhCN = {
|
|
1152
1152
|
save: "\u4FDD\u5B58",
|
|
@@ -1276,7 +1276,7 @@ const zhCN = {
|
|
|
1276
1276
|
errorCanvasTips: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas"
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
|
-
const defaultProps$
|
|
1279
|
+
const defaultProps$1q = {
|
|
1280
1280
|
locale: zhCN
|
|
1281
1281
|
};
|
|
1282
1282
|
const defaultConfigRef$1 = {
|
|
@@ -1293,7 +1293,7 @@ const useConfig$1 = () => {
|
|
|
1293
1293
|
};
|
|
1294
1294
|
const ConfigContext$1 = createContext(null);
|
|
1295
1295
|
const ConfigProvider = (props) => {
|
|
1296
|
-
const { children, ...config2 } = { ...defaultProps$
|
|
1296
|
+
const { children, ...config2 } = { ...defaultProps$1q, ...props };
|
|
1297
1297
|
const parentConfig = useConfig$1();
|
|
1298
1298
|
return /* @__PURE__ */ React__default.createElement(ConfigContext$1.Provider, {
|
|
1299
1299
|
value: {
|
|
@@ -1302,9 +1302,9 @@ const ConfigProvider = (props) => {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}, children);
|
|
1304
1304
|
};
|
|
1305
|
-
ConfigProvider.defaultProps = defaultProps$
|
|
1305
|
+
ConfigProvider.defaultProps = defaultProps$1q;
|
|
1306
1306
|
ConfigProvider.displayName = "NutConfigProvider";
|
|
1307
|
-
const defaultProps$
|
|
1307
|
+
const defaultProps$1p = {
|
|
1308
1308
|
fit: "fill",
|
|
1309
1309
|
position: "center",
|
|
1310
1310
|
alt: "",
|
|
@@ -1335,7 +1335,7 @@ const Image = (props) => {
|
|
|
1335
1335
|
onClick,
|
|
1336
1336
|
onLoad,
|
|
1337
1337
|
onError
|
|
1338
|
-
} = { ...defaultProps$
|
|
1338
|
+
} = { ...defaultProps$1p, ...props };
|
|
1339
1339
|
const [loading, setLoading] = useState(true);
|
|
1340
1340
|
const [isError, setIsError] = useState(false);
|
|
1341
1341
|
useEffect(() => {
|
|
@@ -1393,19 +1393,19 @@ const Image = (props) => {
|
|
|
1393
1393
|
name: "image-error"
|
|
1394
1394
|
})) : null);
|
|
1395
1395
|
};
|
|
1396
|
-
Image.defaultProps = defaultProps$
|
|
1396
|
+
Image.defaultProps = defaultProps$1p;
|
|
1397
1397
|
Image.displayName = "NutImage";
|
|
1398
|
-
const defaultProps$
|
|
1398
|
+
const defaultProps$1o = {};
|
|
1399
1399
|
const Layout = (props) => {
|
|
1400
|
-
({ ...defaultProps$
|
|
1400
|
+
({ ...defaultProps$1o, ...props });
|
|
1401
1401
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
1402
1402
|
className: "nut-layout"
|
|
1403
1403
|
}, "Layout");
|
|
1404
1404
|
};
|
|
1405
|
-
Layout.defaultProps = defaultProps$
|
|
1405
|
+
Layout.defaultProps = defaultProps$1o;
|
|
1406
1406
|
Layout.displayName = "NutLayout";
|
|
1407
1407
|
const DataContext$2 = createContext({});
|
|
1408
|
-
const defaultProps$
|
|
1408
|
+
const defaultProps$1n = {
|
|
1409
1409
|
span: "24",
|
|
1410
1410
|
offset: "0",
|
|
1411
1411
|
gutter: "0"
|
|
@@ -1419,7 +1419,7 @@ const Col = (props) => {
|
|
|
1419
1419
|
children,
|
|
1420
1420
|
onClick
|
|
1421
1421
|
} = {
|
|
1422
|
-
...defaultProps$
|
|
1422
|
+
...defaultProps$1n,
|
|
1423
1423
|
...props
|
|
1424
1424
|
};
|
|
1425
1425
|
const [colName, setColName] = useState("");
|
|
@@ -1447,9 +1447,9 @@ const Col = (props) => {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}, children);
|
|
1449
1449
|
};
|
|
1450
|
-
Col.defaultProps = defaultProps$
|
|
1450
|
+
Col.defaultProps = defaultProps$1n;
|
|
1451
1451
|
Col.displayName = "NutCol";
|
|
1452
|
-
const defaultProps$
|
|
1452
|
+
const defaultProps$1m = {
|
|
1453
1453
|
type: "",
|
|
1454
1454
|
justify: "start",
|
|
1455
1455
|
align: "flex-start",
|
|
@@ -1468,7 +1468,7 @@ const Row = (props) => {
|
|
|
1468
1468
|
gutter,
|
|
1469
1469
|
onClick
|
|
1470
1470
|
} = {
|
|
1471
|
-
...defaultProps$
|
|
1471
|
+
...defaultProps$1m,
|
|
1472
1472
|
...props
|
|
1473
1473
|
};
|
|
1474
1474
|
const prefixCls = "nut-row";
|
|
@@ -1503,9 +1503,9 @@ const Row = (props) => {
|
|
|
1503
1503
|
children
|
|
1504
1504
|
));
|
|
1505
1505
|
};
|
|
1506
|
-
Row.defaultProps = defaultProps$
|
|
1506
|
+
Row.defaultProps = defaultProps$1m;
|
|
1507
1507
|
Row.displayName = "NutRow";
|
|
1508
|
-
const defaultProps$
|
|
1508
|
+
const defaultProps$1l = {
|
|
1509
1509
|
contentPosition: "center",
|
|
1510
1510
|
dashed: false,
|
|
1511
1511
|
hairline: true,
|
|
@@ -1522,7 +1522,7 @@ const Divider = (props) => {
|
|
|
1522
1522
|
direction,
|
|
1523
1523
|
...rest
|
|
1524
1524
|
} = {
|
|
1525
|
-
...defaultProps$
|
|
1525
|
+
...defaultProps$1l,
|
|
1526
1526
|
...props
|
|
1527
1527
|
};
|
|
1528
1528
|
const dividerBem = cn("divider");
|
|
@@ -1543,14 +1543,14 @@ const Divider = (props) => {
|
|
|
1543
1543
|
...rest
|
|
1544
1544
|
}, children);
|
|
1545
1545
|
};
|
|
1546
|
-
Divider.defaultProps = defaultProps$
|
|
1546
|
+
Divider.defaultProps = defaultProps$1l;
|
|
1547
1547
|
Divider.displayName = "NutDivider";
|
|
1548
1548
|
const gridContext = {
|
|
1549
1549
|
onClick: (item, index) => {
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
1552
|
var GridContext = React__default.createContext(gridContext);
|
|
1553
|
-
const defaultProps$
|
|
1553
|
+
const defaultProps$1k = {
|
|
1554
1554
|
columnNum: 4,
|
|
1555
1555
|
border: true,
|
|
1556
1556
|
gutter: 0,
|
|
@@ -1578,7 +1578,7 @@ const Grid = (props) => {
|
|
|
1578
1578
|
className,
|
|
1579
1579
|
onClick,
|
|
1580
1580
|
...rest
|
|
1581
|
-
} = { ...defaultProps$
|
|
1581
|
+
} = { ...defaultProps$1k, ...props };
|
|
1582
1582
|
const childrenDom = React__default.Children.toArray(children);
|
|
1583
1583
|
const pxCheck2 = (value) => {
|
|
1584
1584
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
@@ -1619,9 +1619,9 @@ const Grid = (props) => {
|
|
|
1619
1619
|
});
|
|
1620
1620
|
})));
|
|
1621
1621
|
};
|
|
1622
|
-
Grid.defaultProps = defaultProps$
|
|
1622
|
+
Grid.defaultProps = defaultProps$1k;
|
|
1623
1623
|
Grid.displayName = "NutGrid";
|
|
1624
|
-
const defaultProps$
|
|
1624
|
+
const defaultProps$1j = {
|
|
1625
1625
|
...ComponentDefaults,
|
|
1626
1626
|
text: "",
|
|
1627
1627
|
icon: "",
|
|
@@ -1660,7 +1660,7 @@ const GridItem = (props) => {
|
|
|
1660
1660
|
onClick,
|
|
1661
1661
|
...rest
|
|
1662
1662
|
} = {
|
|
1663
|
-
...defaultProps$
|
|
1663
|
+
...defaultProps$1j,
|
|
1664
1664
|
...props
|
|
1665
1665
|
};
|
|
1666
1666
|
const b2 = cn("grid-item");
|
|
@@ -1728,7 +1728,7 @@ const GridItem = (props) => {
|
|
|
1728
1728
|
className: "nut-grid-item__text"
|
|
1729
1729
|
}, text), children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children)));
|
|
1730
1730
|
};
|
|
1731
|
-
GridItem.defaultProps = defaultProps$
|
|
1731
|
+
GridItem.defaultProps = defaultProps$1j;
|
|
1732
1732
|
GridItem.displayName = "NutGridItem";
|
|
1733
1733
|
const defaultConfigRef = {
|
|
1734
1734
|
current: {
|
|
@@ -1743,17 +1743,17 @@ const useConfig = () => {
|
|
|
1743
1743
|
return (_a = useContext(ConfigContext)) != null ? _a : getDefaultConfig();
|
|
1744
1744
|
};
|
|
1745
1745
|
const ConfigContext = createContext(null);
|
|
1746
|
-
const defaultProps$
|
|
1746
|
+
const defaultProps$1i = {};
|
|
1747
1747
|
const Sticky = (props) => {
|
|
1748
1748
|
useConfig();
|
|
1749
|
-
({ ...defaultProps$
|
|
1749
|
+
({ ...defaultProps$1i, ...props });
|
|
1750
1750
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
1751
1751
|
className: "nut-sticky"
|
|
1752
1752
|
}, "Sticky");
|
|
1753
1753
|
};
|
|
1754
|
-
Sticky.defaultProps = defaultProps$
|
|
1754
|
+
Sticky.defaultProps = defaultProps$1i;
|
|
1755
1755
|
Sticky.displayName = "NutSticky";
|
|
1756
|
-
const defaultProps$
|
|
1756
|
+
const defaultProps$1h = {
|
|
1757
1757
|
...ComponentDefaults,
|
|
1758
1758
|
title: "",
|
|
1759
1759
|
desc: "",
|
|
@@ -1789,7 +1789,7 @@ const NavBar = (props) => {
|
|
|
1789
1789
|
iconClassPrefix,
|
|
1790
1790
|
iconFontClassName
|
|
1791
1791
|
} = {
|
|
1792
|
-
...defaultProps$
|
|
1792
|
+
...defaultProps$1h,
|
|
1793
1793
|
...props
|
|
1794
1794
|
};
|
|
1795
1795
|
const b2 = cn("navbar");
|
|
@@ -1858,9 +1858,9 @@ const NavBar = (props) => {
|
|
|
1858
1858
|
className: `${b2("")}--placeholder`
|
|
1859
1859
|
}, renderWrapper()) : renderWrapper());
|
|
1860
1860
|
};
|
|
1861
|
-
NavBar.defaultProps = defaultProps$
|
|
1861
|
+
NavBar.defaultProps = defaultProps$1h;
|
|
1862
1862
|
NavBar.displayName = "NutNavBar";
|
|
1863
|
-
const defaultProps$
|
|
1863
|
+
const defaultProps$1g = {
|
|
1864
1864
|
...ComponentDefaults,
|
|
1865
1865
|
fixednavClass: "nut-fixednav",
|
|
1866
1866
|
activeText: "",
|
|
@@ -1890,7 +1890,7 @@ const FixedNav = (props) => {
|
|
|
1890
1890
|
iconFontClassName,
|
|
1891
1891
|
...rest
|
|
1892
1892
|
} = {
|
|
1893
|
-
...defaultProps$
|
|
1893
|
+
...defaultProps$1g,
|
|
1894
1894
|
...props
|
|
1895
1895
|
};
|
|
1896
1896
|
const b2 = cn("fixednav");
|
|
@@ -1945,9 +1945,9 @@ const FixedNav = (props) => {
|
|
|
1945
1945
|
className: "text"
|
|
1946
1946
|
}, visible ? activeText || locale.fixednav.activeText : unActiveText || locale.fixednav.unActiveText))));
|
|
1947
1947
|
};
|
|
1948
|
-
FixedNav.defaultProps = defaultProps$
|
|
1948
|
+
FixedNav.defaultProps = defaultProps$1g;
|
|
1949
1949
|
FixedNav.displayName = "NutFixedNav";
|
|
1950
|
-
const defaultProps$
|
|
1950
|
+
const defaultProps$1f = {
|
|
1951
1951
|
visible: 0,
|
|
1952
1952
|
bottom: false,
|
|
1953
1953
|
size: 20,
|
|
@@ -1975,7 +1975,7 @@ const Tabbar = (props) => {
|
|
|
1975
1975
|
tabSwitch,
|
|
1976
1976
|
onSwitch
|
|
1977
1977
|
} = {
|
|
1978
|
-
...defaultProps$
|
|
1978
|
+
...defaultProps$1f,
|
|
1979
1979
|
...props
|
|
1980
1980
|
};
|
|
1981
1981
|
const b2 = cn("tabbar");
|
|
@@ -2011,9 +2011,9 @@ const Tabbar = (props) => {
|
|
|
2011
2011
|
return React__default.cloneElement(child, childProps);
|
|
2012
2012
|
}));
|
|
2013
2013
|
};
|
|
2014
|
-
Tabbar.defaultProps = defaultProps$
|
|
2014
|
+
Tabbar.defaultProps = defaultProps$1f;
|
|
2015
2015
|
Tabbar.displayName = "NutTabbar";
|
|
2016
|
-
const defaultProps$
|
|
2016
|
+
const defaultProps$1e = {
|
|
2017
2017
|
...ComponentDefaults,
|
|
2018
2018
|
dot: false,
|
|
2019
2019
|
size: "",
|
|
@@ -2049,7 +2049,7 @@ const TabbarItem = (props) => {
|
|
|
2049
2049
|
iconClassPrefix,
|
|
2050
2050
|
iconFontClassName
|
|
2051
2051
|
} = {
|
|
2052
|
-
...defaultProps$
|
|
2052
|
+
...defaultProps$1e,
|
|
2053
2053
|
...props
|
|
2054
2054
|
};
|
|
2055
2055
|
const b2 = cn("tabbar-item");
|
|
@@ -2099,7 +2099,7 @@ var index_cjs$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
2099
2099
|
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(index_cjs$1);
|
|
2100
2100
|
var index_cjs = require$$0;
|
|
2101
2101
|
const elevatorContext = createContext({});
|
|
2102
|
-
const defaultProps$
|
|
2102
|
+
const defaultProps$1d = {
|
|
2103
2103
|
height: "200px",
|
|
2104
2104
|
acceptKey: "title",
|
|
2105
2105
|
indexList: [],
|
|
@@ -2122,7 +2122,7 @@ const Elevator = (props) => {
|
|
|
2122
2122
|
children,
|
|
2123
2123
|
...rest
|
|
2124
2124
|
} = {
|
|
2125
|
-
...defaultProps$
|
|
2125
|
+
...defaultProps$1d,
|
|
2126
2126
|
...props
|
|
2127
2127
|
};
|
|
2128
2128
|
const b2 = cn("elevator");
|
|
@@ -2322,9 +2322,9 @@ const Elevator = (props) => {
|
|
|
2322
2322
|
}, item[acceptKey]);
|
|
2323
2323
|
}))));
|
|
2324
2324
|
};
|
|
2325
|
-
Elevator.defaultProps = defaultProps$
|
|
2325
|
+
Elevator.defaultProps = defaultProps$1d;
|
|
2326
2326
|
Elevator.displayName = "NutElevator";
|
|
2327
|
-
const defaultProps$
|
|
2327
|
+
const defaultProps$1c = {
|
|
2328
2328
|
defaultValue: 1,
|
|
2329
2329
|
mode: "multi",
|
|
2330
2330
|
prevText: "",
|
|
@@ -2341,7 +2341,7 @@ const defaultProps$1a = {
|
|
|
2341
2341
|
};
|
|
2342
2342
|
const Pagination = (props) => {
|
|
2343
2343
|
const { locale } = useConfig$1();
|
|
2344
|
-
({ ...defaultProps$
|
|
2344
|
+
({ ...defaultProps$1c, ...props });
|
|
2345
2345
|
const {
|
|
2346
2346
|
modelValue,
|
|
2347
2347
|
mode,
|
|
@@ -2458,7 +2458,7 @@ const Pagination = (props) => {
|
|
|
2458
2458
|
onClick: (e2) => selectPage(Number(currentPage) + 1, true)
|
|
2459
2459
|
}, nextText || locale.pagination.next));
|
|
2460
2460
|
};
|
|
2461
|
-
Pagination.defaultProps = defaultProps$
|
|
2461
|
+
Pagination.defaultProps = defaultProps$1c;
|
|
2462
2462
|
Pagination.displayName = "NutPagination";
|
|
2463
2463
|
class Title {
|
|
2464
2464
|
constructor() {
|
|
@@ -2468,7 +2468,7 @@ class Title {
|
|
|
2468
2468
|
this.index = 0;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
const defaultProps$
|
|
2471
|
+
const defaultProps$1b = {
|
|
2472
2472
|
...ComponentDefaults,
|
|
2473
2473
|
tabStyle: {},
|
|
2474
2474
|
value: 0,
|
|
@@ -2509,7 +2509,7 @@ const Tabs = (props) => {
|
|
|
2509
2509
|
iconFontClassName,
|
|
2510
2510
|
...rest
|
|
2511
2511
|
} = {
|
|
2512
|
-
...defaultProps$
|
|
2512
|
+
...defaultProps$1b,
|
|
2513
2513
|
...props
|
|
2514
2514
|
};
|
|
2515
2515
|
const [currentItem, setCurrentItem] = useState({ index: 0 });
|
|
@@ -2627,9 +2627,9 @@ const Tabs = (props) => {
|
|
|
2627
2627
|
return React__default.cloneElement(child, childProps);
|
|
2628
2628
|
}))));
|
|
2629
2629
|
};
|
|
2630
|
-
Tabs.defaultProps = defaultProps$
|
|
2630
|
+
Tabs.defaultProps = defaultProps$1b;
|
|
2631
2631
|
Tabs.displayName = "NutTabs";
|
|
2632
|
-
const defaultProps$
|
|
2632
|
+
const defaultProps$1a = {
|
|
2633
2633
|
title: "",
|
|
2634
2634
|
paneKey: "",
|
|
2635
2635
|
activeKey: "",
|
|
@@ -2637,7 +2637,7 @@ const defaultProps$18 = {
|
|
|
2637
2637
|
};
|
|
2638
2638
|
const TabPane = (props) => {
|
|
2639
2639
|
const { children, paneKey, activeKey, autoHeightClassName, className } = {
|
|
2640
|
-
...defaultProps$
|
|
2640
|
+
...defaultProps$1a,
|
|
2641
2641
|
...props
|
|
2642
2642
|
};
|
|
2643
2643
|
const b2 = cn("tabpane");
|
|
@@ -2653,7 +2653,7 @@ const TabPane = (props) => {
|
|
|
2653
2653
|
className: classes
|
|
2654
2654
|
}, children);
|
|
2655
2655
|
};
|
|
2656
|
-
const defaultProps$
|
|
2656
|
+
const defaultProps$19 = {
|
|
2657
2657
|
size: 3,
|
|
2658
2658
|
current: 1,
|
|
2659
2659
|
block: false,
|
|
@@ -2673,7 +2673,7 @@ const Indicator = (props) => {
|
|
|
2673
2673
|
vertical,
|
|
2674
2674
|
...rest
|
|
2675
2675
|
} = {
|
|
2676
|
-
...defaultProps$
|
|
2676
|
+
...defaultProps$19,
|
|
2677
2677
|
...props
|
|
2678
2678
|
};
|
|
2679
2679
|
const b2 = cn("indicator");
|
|
@@ -2707,7 +2707,7 @@ const Indicator = (props) => {
|
|
|
2707
2707
|
...rest
|
|
2708
2708
|
}, renderEles());
|
|
2709
2709
|
};
|
|
2710
|
-
Indicator.defaultProps = defaultProps$
|
|
2710
|
+
Indicator.defaultProps = defaultProps$19;
|
|
2711
2711
|
Indicator.displayName = "NutIndicator";
|
|
2712
2712
|
const handleClick = (e2) => {
|
|
2713
2713
|
e2.stopPropagation();
|
|
@@ -2723,7 +2723,7 @@ const handleClick = (e2) => {
|
|
|
2723
2723
|
}
|
|
2724
2724
|
};
|
|
2725
2725
|
const OffsetContext = createContext(20);
|
|
2726
|
-
const defaultProps$
|
|
2726
|
+
const defaultProps$18 = {
|
|
2727
2727
|
showhead: false,
|
|
2728
2728
|
position: "left",
|
|
2729
2729
|
width: "80%"
|
|
@@ -2741,7 +2741,7 @@ const SideNavBar = (props) => {
|
|
|
2741
2741
|
onClose,
|
|
2742
2742
|
...rest
|
|
2743
2743
|
} = {
|
|
2744
|
-
...defaultProps$
|
|
2744
|
+
...defaultProps$18,
|
|
2745
2745
|
...props
|
|
2746
2746
|
};
|
|
2747
2747
|
const offset = props.offset ? Number(props.offset) : 20;
|
|
@@ -2769,14 +2769,14 @@ const SideNavBar = (props) => {
|
|
|
2769
2769
|
className: "nut-sidenavbar__content"
|
|
2770
2770
|
}, children))))));
|
|
2771
2771
|
};
|
|
2772
|
-
SideNavBar.defaultProps = defaultProps$
|
|
2772
|
+
SideNavBar.defaultProps = defaultProps$18;
|
|
2773
2773
|
SideNavBar.displayName = "NutSideNavBar";
|
|
2774
|
-
const defaultProps$
|
|
2774
|
+
const defaultProps$17 = {
|
|
2775
2775
|
open: true
|
|
2776
2776
|
};
|
|
2777
2777
|
const SubSideNavBar = (props) => {
|
|
2778
2778
|
const { title, ikey, children, onClick, open, ...rest } = {
|
|
2779
|
-
...defaultProps$
|
|
2779
|
+
...defaultProps$17,
|
|
2780
2780
|
...props
|
|
2781
2781
|
};
|
|
2782
2782
|
const offset = useContext(OffsetContext);
|
|
@@ -2847,7 +2847,7 @@ const SideNavBarItem = (props) => {
|
|
|
2847
2847
|
...rest
|
|
2848
2848
|
}, title);
|
|
2849
2849
|
};
|
|
2850
|
-
const defaultProps$
|
|
2850
|
+
const defaultProps$16 = {
|
|
2851
2851
|
...ComponentDefaults,
|
|
2852
2852
|
className: "",
|
|
2853
2853
|
style: {},
|
|
@@ -2870,7 +2870,7 @@ const Menu = (props) => {
|
|
|
2870
2870
|
iconFontClassName,
|
|
2871
2871
|
...rest
|
|
2872
2872
|
} = {
|
|
2873
|
-
...defaultProps$
|
|
2873
|
+
...defaultProps$16,
|
|
2874
2874
|
...props
|
|
2875
2875
|
};
|
|
2876
2876
|
const parentRef = useRef(null);
|
|
@@ -2967,9 +2967,9 @@ const Menu = (props) => {
|
|
|
2967
2967
|
})));
|
|
2968
2968
|
})), cloneChildren()));
|
|
2969
2969
|
};
|
|
2970
|
-
Menu.defaultProps = defaultProps$
|
|
2970
|
+
Menu.defaultProps = defaultProps$16;
|
|
2971
2971
|
Menu.displayName = "NutMenu";
|
|
2972
|
-
const defaultProps$
|
|
2972
|
+
const defaultProps$15 = {
|
|
2973
2973
|
...ComponentDefaults,
|
|
2974
2974
|
className: "",
|
|
2975
2975
|
style: {},
|
|
@@ -2984,7 +2984,7 @@ const defaultProps$13 = {
|
|
|
2984
2984
|
};
|
|
2985
2985
|
const MenuItem = forwardRef((props, ref) => {
|
|
2986
2986
|
useConfig$1();
|
|
2987
|
-
const mergedProps = { ...defaultProps$
|
|
2987
|
+
const mergedProps = { ...defaultProps$15, ...props };
|
|
2988
2988
|
const {
|
|
2989
2989
|
style,
|
|
2990
2990
|
options,
|
|
@@ -3000,7 +3000,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
3000
3000
|
iconClassPrefix,
|
|
3001
3001
|
iconFontClassName
|
|
3002
3002
|
} = {
|
|
3003
|
-
...defaultProps$
|
|
3003
|
+
...defaultProps$15,
|
|
3004
3004
|
...props
|
|
3005
3005
|
};
|
|
3006
3006
|
const { activeColor, showPopup, parent, orderKey } = mergedProps;
|
|
@@ -3121,7 +3121,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
3121
3121
|
}, item.text));
|
|
3122
3122
|
}), children))));
|
|
3123
3123
|
});
|
|
3124
|
-
MenuItem.defaultProps = defaultProps$
|
|
3124
|
+
MenuItem.defaultProps = defaultProps$15;
|
|
3125
3125
|
MenuItem.displayName = "NutMenuItem";
|
|
3126
3126
|
const MIN_DISTANCE = 10;
|
|
3127
3127
|
function getDirection(x, y) {
|
|
@@ -3192,7 +3192,7 @@ const getRectByTaro = async (element) => {
|
|
|
3192
3192
|
const res = await element.getBoundingClientRect();
|
|
3193
3193
|
return res;
|
|
3194
3194
|
};
|
|
3195
|
-
const defaultProps$
|
|
3195
|
+
const defaultProps$14 = {
|
|
3196
3196
|
name: "",
|
|
3197
3197
|
size: "",
|
|
3198
3198
|
classPrefix: "nut-icon",
|
|
@@ -3220,7 +3220,7 @@ function Icon(props) {
|
|
|
3220
3220
|
onClick,
|
|
3221
3221
|
...rest
|
|
3222
3222
|
} = {
|
|
3223
|
-
...defaultProps$
|
|
3223
|
+
...defaultProps$14,
|
|
3224
3224
|
...props
|
|
3225
3225
|
};
|
|
3226
3226
|
const isImage = name ? name.indexOf("/") !== -1 : false;
|
|
@@ -3254,9 +3254,9 @@ function Icon(props) {
|
|
|
3254
3254
|
children
|
|
3255
3255
|
);
|
|
3256
3256
|
}
|
|
3257
|
-
Icon.defaultProps = defaultProps$
|
|
3257
|
+
Icon.defaultProps = defaultProps$14;
|
|
3258
3258
|
Icon.displayName = "NutIcon";
|
|
3259
|
-
const defaultProps$
|
|
3259
|
+
const defaultProps$13 = {
|
|
3260
3260
|
id: "",
|
|
3261
3261
|
style: {},
|
|
3262
3262
|
icon: null,
|
|
@@ -3301,7 +3301,7 @@ const Toast = (props) => {
|
|
|
3301
3301
|
visible,
|
|
3302
3302
|
onClose,
|
|
3303
3303
|
...rest
|
|
3304
|
-
} = { ...defaultProps$
|
|
3304
|
+
} = { ...defaultProps$13, ...props };
|
|
3305
3305
|
let timer;
|
|
3306
3306
|
const [openState, SetOpenState] = useState(false);
|
|
3307
3307
|
useEffect(() => {
|
|
@@ -3390,9 +3390,9 @@ const Toast = (props) => {
|
|
|
3390
3390
|
className: toastBem("text")
|
|
3391
3391
|
}, msg))) : null);
|
|
3392
3392
|
};
|
|
3393
|
-
Toast.defaultProps = defaultProps$
|
|
3393
|
+
Toast.defaultProps = defaultProps$13;
|
|
3394
3394
|
Toast.displayName = "NutToast";
|
|
3395
|
-
const defaultProps$
|
|
3395
|
+
const defaultProps$12 = {
|
|
3396
3396
|
range: false,
|
|
3397
3397
|
hiddenRange: false,
|
|
3398
3398
|
hiddenTag: false,
|
|
@@ -3429,8 +3429,8 @@ const Range = (props) => {
|
|
|
3429
3429
|
minDesc,
|
|
3430
3430
|
maxDesc,
|
|
3431
3431
|
curValueDesc
|
|
3432
|
-
} = { ...defaultProps$
|
|
3433
|
-
let { min, max, step } = { ...defaultProps$
|
|
3432
|
+
} = { ...defaultProps$12, ...props };
|
|
3433
|
+
let { min, max, step } = { ...defaultProps$12, ...props };
|
|
3434
3434
|
min = Number(min);
|
|
3435
3435
|
max = Number(max);
|
|
3436
3436
|
step = Number(step);
|
|
@@ -3781,7 +3781,7 @@ const Range = (props) => {
|
|
|
3781
3781
|
}
|
|
3782
3782
|
}));
|
|
3783
3783
|
};
|
|
3784
|
-
Range.defaultProps = defaultProps$
|
|
3784
|
+
Range.defaultProps = defaultProps$12;
|
|
3785
3785
|
Range.displayName = "NutRange";
|
|
3786
3786
|
const Utils = {
|
|
3787
3787
|
isLeapYear(y) {
|
|
@@ -3875,7 +3875,7 @@ function requestAniFrame() {
|
|
|
3875
3875
|
};
|
|
3876
3876
|
}
|
|
3877
3877
|
var requestAniFrame$1 = requestAniFrame();
|
|
3878
|
-
const defaultProps
|
|
3878
|
+
const defaultProps$11 = {
|
|
3879
3879
|
type: "one",
|
|
3880
3880
|
isAutoBackFill: false,
|
|
3881
3881
|
poppable: true,
|
|
@@ -3904,7 +3904,7 @@ const CalendarItem = (props) => {
|
|
|
3904
3904
|
onChoose,
|
|
3905
3905
|
onUpdate,
|
|
3906
3906
|
onClose
|
|
3907
|
-
} = { ...defaultProps
|
|
3907
|
+
} = { ...defaultProps$11, ...props };
|
|
3908
3908
|
const weeks = locale.calendaritem.weekdays;
|
|
3909
3909
|
const [yearMonthTitle, setYearMonthTitle] = useState("");
|
|
3910
3910
|
const [unLoadPrev, setUnLoadPrev] = useState(false);
|
|
@@ -4328,9 +4328,9 @@ const CalendarItem = (props) => {
|
|
|
4328
4328
|
onClick: confirm
|
|
4329
4329
|
}, locale.confirm)) : ""));
|
|
4330
4330
|
};
|
|
4331
|
-
CalendarItem.defaultProps = defaultProps
|
|
4331
|
+
CalendarItem.defaultProps = defaultProps$11;
|
|
4332
4332
|
CalendarItem.displayName = "NutCalendarItem";
|
|
4333
|
-
const defaultProps$
|
|
4333
|
+
const defaultProps$10 = {
|
|
4334
4334
|
type: "one",
|
|
4335
4335
|
isAutoBackFill: false,
|
|
4336
4336
|
poppable: true,
|
|
@@ -4358,7 +4358,7 @@ const Calendar = (props) => {
|
|
|
4358
4358
|
endDate,
|
|
4359
4359
|
onClose,
|
|
4360
4360
|
onChoose
|
|
4361
|
-
} = { ...defaultProps$
|
|
4361
|
+
} = { ...defaultProps$10, ...props };
|
|
4362
4362
|
const close = () => {
|
|
4363
4363
|
onClose && onClose();
|
|
4364
4364
|
};
|
|
@@ -4404,9 +4404,9 @@ const Calendar = (props) => {
|
|
|
4404
4404
|
onChoose: choose
|
|
4405
4405
|
}));
|
|
4406
4406
|
};
|
|
4407
|
-
Calendar.defaultProps = defaultProps$
|
|
4407
|
+
Calendar.defaultProps = defaultProps$10;
|
|
4408
4408
|
Calendar.displayName = "NutCalendar";
|
|
4409
|
-
const defaultProps
|
|
4409
|
+
const defaultProps$$ = {
|
|
4410
4410
|
disabled: false,
|
|
4411
4411
|
checkedValue: [],
|
|
4412
4412
|
max: void 0,
|
|
@@ -4416,7 +4416,7 @@ const defaultProps$Z = {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
const CheckboxGroup = React__default.forwardRef(
|
|
4418
4418
|
(props, ref) => {
|
|
4419
|
-
const { children } = { ...defaultProps
|
|
4419
|
+
const { children } = { ...defaultProps$$, ...props };
|
|
4420
4420
|
const b2 = cn("checkboxgroup");
|
|
4421
4421
|
const {
|
|
4422
4422
|
className,
|
|
@@ -4523,9 +4523,9 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
4523
4523
|
}, (options == null ? void 0 : options.length) ? renderOptionsChildren() : cloneChildren());
|
|
4524
4524
|
}
|
|
4525
4525
|
);
|
|
4526
|
-
CheckboxGroup.defaultProps = defaultProps
|
|
4526
|
+
CheckboxGroup.defaultProps = defaultProps$$;
|
|
4527
4527
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
4528
|
-
const defaultProps$
|
|
4528
|
+
const defaultProps$_ = {
|
|
4529
4529
|
...ComponentDefaults,
|
|
4530
4530
|
checked: false,
|
|
4531
4531
|
disabled: false,
|
|
@@ -4541,7 +4541,7 @@ const defaultProps$Y = {
|
|
|
4541
4541
|
};
|
|
4542
4542
|
const Checkbox = (props) => {
|
|
4543
4543
|
const { children } = {
|
|
4544
|
-
...defaultProps$
|
|
4544
|
+
...defaultProps$_,
|
|
4545
4545
|
...props
|
|
4546
4546
|
};
|
|
4547
4547
|
const b2 = cn("checkbox");
|
|
@@ -4623,7 +4623,7 @@ const Checkbox = (props) => {
|
|
|
4623
4623
|
onClick: handleClick2
|
|
4624
4624
|
}, renderIcon(), renderLabel());
|
|
4625
4625
|
};
|
|
4626
|
-
Checkbox.defaultProps = defaultProps$
|
|
4626
|
+
Checkbox.defaultProps = defaultProps$_;
|
|
4627
4627
|
Checkbox.displayName = "NutCheckBox";
|
|
4628
4628
|
Checkbox.Group = CheckboxGroup;
|
|
4629
4629
|
const InternalPickerSlot = (props, ref) => {
|
|
@@ -5070,7 +5070,7 @@ const InternalPicker = (props, ref) => {
|
|
|
5070
5070
|
};
|
|
5071
5071
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
5072
5072
|
const currentYear = new Date().getFullYear();
|
|
5073
|
-
const defaultProps$
|
|
5073
|
+
const defaultProps$Z = {
|
|
5074
5074
|
modelValue: null,
|
|
5075
5075
|
visible: false,
|
|
5076
5076
|
title: "",
|
|
@@ -5101,7 +5101,7 @@ const DatePicker = (props) => {
|
|
|
5101
5101
|
style,
|
|
5102
5102
|
...rest
|
|
5103
5103
|
} = {
|
|
5104
|
-
...defaultProps$
|
|
5104
|
+
...defaultProps$Z,
|
|
5105
5105
|
...props
|
|
5106
5106
|
};
|
|
5107
5107
|
const [show, setShow] = useState(false);
|
|
@@ -5366,9 +5366,9 @@ const DatePicker = (props) => {
|
|
|
5366
5366
|
ref: pickerRef
|
|
5367
5367
|
}));
|
|
5368
5368
|
};
|
|
5369
|
-
DatePicker.defaultProps = defaultProps$
|
|
5369
|
+
DatePicker.defaultProps = defaultProps$Z;
|
|
5370
5370
|
DatePicker.displayName = "NutDatePicker";
|
|
5371
|
-
const defaultProps$
|
|
5371
|
+
const defaultProps$Y = {
|
|
5372
5372
|
...ComponentDefaults,
|
|
5373
5373
|
disabled: false,
|
|
5374
5374
|
buttonSize: "",
|
|
@@ -5415,7 +5415,7 @@ const InputNumber = (props) => {
|
|
|
5415
5415
|
iconFontClassName,
|
|
5416
5416
|
...restProps
|
|
5417
5417
|
} = {
|
|
5418
|
-
...defaultProps$
|
|
5418
|
+
...defaultProps$Y,
|
|
5419
5419
|
...props
|
|
5420
5420
|
};
|
|
5421
5421
|
const [inputValue, setInputValue] = useState(modelValue);
|
|
@@ -5551,7 +5551,7 @@ const InputNumber = (props) => {
|
|
|
5551
5551
|
onClick: addNumber
|
|
5552
5552
|
}));
|
|
5553
5553
|
};
|
|
5554
|
-
InputNumber.defaultProps = defaultProps$
|
|
5554
|
+
InputNumber.defaultProps = defaultProps$Y;
|
|
5555
5555
|
InputNumber.displayName = "NutInputNumber";
|
|
5556
5556
|
function trimExtraChar(value, char, regExp) {
|
|
5557
5557
|
const index = value.indexOf(char);
|
|
@@ -5577,7 +5577,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
5577
5577
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
5578
5578
|
return value.replace(regExp, "");
|
|
5579
5579
|
}
|
|
5580
|
-
const defaultProps$
|
|
5580
|
+
const defaultProps$X = {
|
|
5581
5581
|
...ComponentDefaults,
|
|
5582
5582
|
type: "text",
|
|
5583
5583
|
name: "",
|
|
@@ -5674,7 +5674,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
5674
5674
|
iconFontClassName,
|
|
5675
5675
|
...rest
|
|
5676
5676
|
} = {
|
|
5677
|
-
...defaultProps$
|
|
5677
|
+
...defaultProps$X,
|
|
5678
5678
|
...props
|
|
5679
5679
|
};
|
|
5680
5680
|
locale.placeholder = placeholder || locale.placeholder;
|
|
@@ -5905,14 +5905,14 @@ const Input = forwardRef((props, ref) => {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
}, errorMessage) : null)));
|
|
5907
5907
|
});
|
|
5908
|
-
Input.defaultProps = defaultProps$
|
|
5908
|
+
Input.defaultProps = defaultProps$X;
|
|
5909
5909
|
Input.displayName = "NutInput";
|
|
5910
5910
|
const radioContext = {
|
|
5911
5911
|
onChange: (val) => {
|
|
5912
5912
|
}
|
|
5913
5913
|
};
|
|
5914
5914
|
var RadioContext = React__default.createContext(radioContext);
|
|
5915
|
-
const defaultProps$
|
|
5915
|
+
const defaultProps$W = {
|
|
5916
5916
|
value: null,
|
|
5917
5917
|
textPosition: "right",
|
|
5918
5918
|
onChange: (value) => {
|
|
@@ -5922,7 +5922,7 @@ const defaultProps$U = {
|
|
|
5922
5922
|
};
|
|
5923
5923
|
const RadioGroup = React__default.forwardRef(
|
|
5924
5924
|
(props, ref) => {
|
|
5925
|
-
const { children } = { ...defaultProps$
|
|
5925
|
+
const { children } = { ...defaultProps$W, ...props };
|
|
5926
5926
|
cn("RadioGroup");
|
|
5927
5927
|
const {
|
|
5928
5928
|
className,
|
|
@@ -5987,9 +5987,9 @@ const RadioGroup = React__default.forwardRef(
|
|
|
5987
5987
|
}, (options == null ? void 0 : options.length) ? renderOptionsChildren() : cloneChildren()));
|
|
5988
5988
|
}
|
|
5989
5989
|
);
|
|
5990
|
-
RadioGroup.defaultProps = defaultProps$
|
|
5990
|
+
RadioGroup.defaultProps = defaultProps$W;
|
|
5991
5991
|
RadioGroup.displayName = "NutRadioGroup";
|
|
5992
|
-
const defaultProps$
|
|
5992
|
+
const defaultProps$V = {
|
|
5993
5993
|
...ComponentDefaults,
|
|
5994
5994
|
disabled: false,
|
|
5995
5995
|
checked: false,
|
|
@@ -6004,7 +6004,7 @@ const defaultProps$T = {
|
|
|
6004
6004
|
};
|
|
6005
6005
|
const Radio$1 = (props) => {
|
|
6006
6006
|
const { children } = {
|
|
6007
|
-
...defaultProps$
|
|
6007
|
+
...defaultProps$V,
|
|
6008
6008
|
...props
|
|
6009
6009
|
};
|
|
6010
6010
|
const {
|
|
@@ -6084,11 +6084,11 @@ const Radio$1 = (props) => {
|
|
|
6084
6084
|
...rest
|
|
6085
6085
|
}, renderRadioItem());
|
|
6086
6086
|
};
|
|
6087
|
-
Radio$1.defaultProps = defaultProps$
|
|
6087
|
+
Radio$1.defaultProps = defaultProps$V;
|
|
6088
6088
|
Radio$1.displayName = "NutRadio";
|
|
6089
6089
|
Radio$1.RadioGroup = RadioGroup;
|
|
6090
6090
|
var Radio = Radio$1;
|
|
6091
|
-
const defaultProps$
|
|
6091
|
+
const defaultProps$U = {
|
|
6092
6092
|
...ComponentDefaults,
|
|
6093
6093
|
count: 5,
|
|
6094
6094
|
modelValue: 0,
|
|
@@ -6123,7 +6123,7 @@ const Rate = (props) => {
|
|
|
6123
6123
|
iconClassPrefix,
|
|
6124
6124
|
iconFontClassName
|
|
6125
6125
|
} = {
|
|
6126
|
-
...defaultProps$
|
|
6126
|
+
...defaultProps$U,
|
|
6127
6127
|
...props
|
|
6128
6128
|
};
|
|
6129
6129
|
const b2 = cn("rate");
|
|
@@ -6190,9 +6190,9 @@ const Rate = (props) => {
|
|
|
6190
6190
|
}));
|
|
6191
6191
|
}));
|
|
6192
6192
|
};
|
|
6193
|
-
Rate.defaultProps = defaultProps$
|
|
6193
|
+
Rate.defaultProps = defaultProps$U;
|
|
6194
6194
|
Rate.displayName = "NutRate";
|
|
6195
|
-
const defaultProps$
|
|
6195
|
+
const defaultProps$T = {
|
|
6196
6196
|
...ComponentDefaults,
|
|
6197
6197
|
title: "",
|
|
6198
6198
|
desc: "",
|
|
@@ -6360,9 +6360,9 @@ const ShortPassword = (props) => {
|
|
|
6360
6360
|
onClick: () => sure()
|
|
6361
6361
|
}, locale.confirm)) : null)));
|
|
6362
6362
|
};
|
|
6363
|
-
ShortPassword.defaultProps = defaultProps$
|
|
6363
|
+
ShortPassword.defaultProps = defaultProps$T;
|
|
6364
6364
|
ShortPassword.displayName = "NutShortPassword";
|
|
6365
|
-
const defaultProps$
|
|
6365
|
+
const defaultProps$S = {
|
|
6366
6366
|
defaultValue: "",
|
|
6367
6367
|
textAlign: "left",
|
|
6368
6368
|
limitshow: false,
|
|
@@ -6390,7 +6390,7 @@ const TextArea = (props) => {
|
|
|
6390
6390
|
onChange,
|
|
6391
6391
|
onBlur,
|
|
6392
6392
|
onFocus
|
|
6393
|
-
} = { ...defaultProps$
|
|
6393
|
+
} = { ...defaultProps$S, ...props };
|
|
6394
6394
|
const textareaBem = cn("textarea");
|
|
6395
6395
|
const [inputValue, SetInputValue] = useState("");
|
|
6396
6396
|
useEffect(() => {
|
|
@@ -6455,9 +6455,9 @@ const TextArea = (props) => {
|
|
|
6455
6455
|
className: textareaBem("limit")
|
|
6456
6456
|
}, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
|
|
6457
6457
|
};
|
|
6458
|
-
TextArea.defaultProps = defaultProps$
|
|
6458
|
+
TextArea.defaultProps = defaultProps$S;
|
|
6459
6459
|
TextArea.displayName = "NutTextArea";
|
|
6460
|
-
const defaultProps$
|
|
6460
|
+
const defaultProps$R = {
|
|
6461
6461
|
...ComponentDefaults,
|
|
6462
6462
|
className: "",
|
|
6463
6463
|
style: {},
|
|
@@ -6505,7 +6505,7 @@ const Progress = (props) => {
|
|
|
6505
6505
|
iconFontClassName,
|
|
6506
6506
|
...rest
|
|
6507
6507
|
} = {
|
|
6508
|
-
...defaultProps$
|
|
6508
|
+
...defaultProps$R,
|
|
6509
6509
|
...props
|
|
6510
6510
|
};
|
|
6511
6511
|
const b2 = cn("progress");
|
|
@@ -6583,7 +6583,7 @@ const Progress = (props) => {
|
|
|
6583
6583
|
color: iconColor
|
|
6584
6584
|
})));
|
|
6585
6585
|
};
|
|
6586
|
-
Progress.defaultProps = defaultProps$
|
|
6586
|
+
Progress.defaultProps = defaultProps$R;
|
|
6587
6587
|
Progress.displayName = "NutProgress";
|
|
6588
6588
|
class UploadOptions {
|
|
6589
6589
|
constructor() {
|
|
@@ -6681,7 +6681,7 @@ class Upload {
|
|
|
6681
6681
|
}
|
|
6682
6682
|
}
|
|
6683
6683
|
}
|
|
6684
|
-
const defaultProps$
|
|
6684
|
+
const defaultProps$Q = {
|
|
6685
6685
|
...ComponentDefaults,
|
|
6686
6686
|
url: "",
|
|
6687
6687
|
maximum: 9,
|
|
@@ -6753,7 +6753,7 @@ const InternalUploader = (props, ref) => {
|
|
|
6753
6753
|
onBeforeXhrUpload,
|
|
6754
6754
|
onBeforeDelete,
|
|
6755
6755
|
...restProps
|
|
6756
|
-
} = { ...defaultProps$
|
|
6756
|
+
} = { ...defaultProps$Q, ...props };
|
|
6757
6757
|
const [fileList, setFileList] = useState([]);
|
|
6758
6758
|
const [uploadQueue, setUploadQueue] = useState([]);
|
|
6759
6759
|
useEffect(() => {
|
|
@@ -7041,9 +7041,9 @@ const InternalUploader = (props, ref) => {
|
|
|
7041
7041
|
})));
|
|
7042
7042
|
};
|
|
7043
7043
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
7044
|
-
Uploader.defaultProps = defaultProps$
|
|
7044
|
+
Uploader.defaultProps = defaultProps$Q;
|
|
7045
7045
|
Uploader.displayName = "NutUploader";
|
|
7046
|
-
const defaultProps$
|
|
7046
|
+
const defaultProps$P = {
|
|
7047
7047
|
data: {
|
|
7048
7048
|
text: "",
|
|
7049
7049
|
value: "",
|
|
@@ -7059,7 +7059,7 @@ const defaultProps$N = {
|
|
|
7059
7059
|
};
|
|
7060
7060
|
const InternalCascaderItem = (props) => {
|
|
7061
7061
|
const { data, checked, chooseItem, activeColor } = {
|
|
7062
|
-
...defaultProps$
|
|
7062
|
+
...defaultProps$P,
|
|
7063
7063
|
...props
|
|
7064
7064
|
};
|
|
7065
7065
|
const b2 = cn("cascader-item");
|
|
@@ -7096,7 +7096,7 @@ const InternalCascaderItem = (props) => {
|
|
|
7096
7096
|
}));
|
|
7097
7097
|
};
|
|
7098
7098
|
const CascaderItem = React__default.forwardRef(InternalCascaderItem);
|
|
7099
|
-
CascaderItem.defaultProps = defaultProps$
|
|
7099
|
+
CascaderItem.defaultProps = defaultProps$P;
|
|
7100
7100
|
CascaderItem.displayName = "NutCascaderItem";
|
|
7101
7101
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
7102
7102
|
const {
|
|
@@ -7230,7 +7230,7 @@ class Tree {
|
|
|
7230
7230
|
return pathNodes;
|
|
7231
7231
|
}
|
|
7232
7232
|
}
|
|
7233
|
-
const defaultProps$
|
|
7233
|
+
const defaultProps$O = {
|
|
7234
7234
|
className: "",
|
|
7235
7235
|
style: {},
|
|
7236
7236
|
activeColor: "#fa2c19",
|
|
@@ -7280,7 +7280,7 @@ const InternalCascader = (props) => {
|
|
|
7280
7280
|
onClose,
|
|
7281
7281
|
onChange,
|
|
7282
7282
|
onPathChange
|
|
7283
|
-
} = { ...defaultProps$
|
|
7283
|
+
} = { ...defaultProps$O, ...props };
|
|
7284
7284
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
7285
7285
|
const [optiosData, setOptiosData] = useState([]);
|
|
7286
7286
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
|
|
@@ -7540,9 +7540,9 @@ const InternalCascader = (props) => {
|
|
|
7540
7540
|
}, renderItem()) : renderItem());
|
|
7541
7541
|
};
|
|
7542
7542
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
7543
|
-
Cascader.defaultProps = defaultProps$
|
|
7543
|
+
Cascader.defaultProps = defaultProps$O;
|
|
7544
7544
|
Cascader.displayName = "NutCascader";
|
|
7545
|
-
const defaultProps$
|
|
7545
|
+
const defaultProps$N = {
|
|
7546
7546
|
...ComponentDefaults,
|
|
7547
7547
|
placeholder: "",
|
|
7548
7548
|
shape: "square",
|
|
@@ -7593,7 +7593,7 @@ const SearchBar = (props) => {
|
|
|
7593
7593
|
iconClassPrefix,
|
|
7594
7594
|
iconFontClassName
|
|
7595
7595
|
} = {
|
|
7596
|
-
...defaultProps$
|
|
7596
|
+
...defaultProps$N,
|
|
7597
7597
|
...props
|
|
7598
7598
|
};
|
|
7599
7599
|
const alignClass = `${align}`;
|
|
@@ -7747,9 +7747,9 @@ const SearchBar = (props) => {
|
|
|
7747
7747
|
className: "nut-searchbar__input-box"
|
|
7748
7748
|
}, renderField()), renderRightinIcon(), clearable && value && handleClear()), renderRightoutIcon(), renderRightLabel());
|
|
7749
7749
|
};
|
|
7750
|
-
SearchBar.defaultProps = defaultProps$
|
|
7750
|
+
SearchBar.defaultProps = defaultProps$N;
|
|
7751
7751
|
SearchBar.displayName = "NutSearchBar";
|
|
7752
|
-
const defaultProps$
|
|
7752
|
+
const defaultProps$M = {
|
|
7753
7753
|
confirmText: "",
|
|
7754
7754
|
title: "",
|
|
7755
7755
|
visible: false,
|
|
@@ -7947,20 +7947,20 @@ const NumberKeyboard = (props) => {
|
|
|
7947
7947
|
})
|
|
7948
7948
|
}, confirmText || locale.done))) : null))));
|
|
7949
7949
|
};
|
|
7950
|
-
NumberKeyboard.defaultProps = defaultProps$
|
|
7950
|
+
NumberKeyboard.defaultProps = defaultProps$M;
|
|
7951
7951
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
7952
|
-
const defaultProps$
|
|
7952
|
+
const defaultProps$L = {};
|
|
7953
7953
|
const Form = (props) => {
|
|
7954
7954
|
useConfig();
|
|
7955
|
-
({ ...defaultProps$
|
|
7955
|
+
({ ...defaultProps$L, ...props });
|
|
7956
7956
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
7957
7957
|
className: "nut-form"
|
|
7958
7958
|
}, "Form");
|
|
7959
7959
|
};
|
|
7960
|
-
Form.defaultProps = defaultProps$
|
|
7960
|
+
Form.defaultProps = defaultProps$L;
|
|
7961
7961
|
Form.displayName = "NutForm";
|
|
7962
7962
|
const FormItemContext = createContext({});
|
|
7963
|
-
const defaultProps$
|
|
7963
|
+
const defaultProps$K = {
|
|
7964
7964
|
...ComponentDefaults,
|
|
7965
7965
|
name: "",
|
|
7966
7966
|
label: "",
|
|
@@ -8007,7 +8007,7 @@ class FormItem extends React__default.Component {
|
|
|
8007
8007
|
showErrorLine,
|
|
8008
8008
|
showErrorMessage
|
|
8009
8009
|
} = {
|
|
8010
|
-
...defaultProps$
|
|
8010
|
+
...defaultProps$K,
|
|
8011
8011
|
...this.props
|
|
8012
8012
|
};
|
|
8013
8013
|
const item = ((_a = this.context.errList) == null ? void 0 : _a.length) > 0 && ((_b = this.context.errList) == null ? void 0 : _b.filter((item2) => {
|
|
@@ -8056,9 +8056,9 @@ class FormItem extends React__default.Component {
|
|
|
8056
8056
|
return this.renderLayout(returnChildNode);
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
8059
|
-
FormItem.defaultProps = defaultProps$
|
|
8059
|
+
FormItem.defaultProps = defaultProps$K;
|
|
8060
8060
|
FormItem.contextType = FormItemContext;
|
|
8061
|
-
const defaultProps$
|
|
8061
|
+
const defaultProps$J = {
|
|
8062
8062
|
cancelTxt: "",
|
|
8063
8063
|
optionTag: "name",
|
|
8064
8064
|
optionSubTag: "subname",
|
|
@@ -8092,7 +8092,7 @@ const ActionSheet = (props) => {
|
|
|
8092
8092
|
className,
|
|
8093
8093
|
style,
|
|
8094
8094
|
...rest
|
|
8095
|
-
} = { ...defaultProps$
|
|
8095
|
+
} = { ...defaultProps$J, ...props };
|
|
8096
8096
|
const b2 = cn("actionsheet");
|
|
8097
8097
|
const isHighlight = (item) => {
|
|
8098
8098
|
return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "#1a1a1a";
|
|
@@ -8136,9 +8136,9 @@ const ActionSheet = (props) => {
|
|
|
8136
8136
|
onClick: () => cancelActionSheet()
|
|
8137
8137
|
}, cancelTxt)));
|
|
8138
8138
|
};
|
|
8139
|
-
ActionSheet.defaultProps = defaultProps$
|
|
8139
|
+
ActionSheet.defaultProps = defaultProps$J;
|
|
8140
8140
|
ActionSheet.displayName = "NutActionSheet";
|
|
8141
|
-
const defaultProps$
|
|
8141
|
+
const defaultProps$I = {
|
|
8142
8142
|
...ComponentDefaults,
|
|
8143
8143
|
bottom: 20,
|
|
8144
8144
|
right: 10,
|
|
@@ -8164,7 +8164,7 @@ const BackTop = (props) => {
|
|
|
8164
8164
|
iconClassPrefix,
|
|
8165
8165
|
iconFontClassName
|
|
8166
8166
|
} = {
|
|
8167
|
-
...defaultProps$
|
|
8167
|
+
...defaultProps$I,
|
|
8168
8168
|
...props
|
|
8169
8169
|
};
|
|
8170
8170
|
const [backTop, SetBackTop] = useState(false);
|
|
@@ -8198,9 +8198,9 @@ const BackTop = (props) => {
|
|
|
8198
8198
|
name: "top"
|
|
8199
8199
|
})));
|
|
8200
8200
|
};
|
|
8201
|
-
BackTop.defaultProps = defaultProps$
|
|
8201
|
+
BackTop.defaultProps = defaultProps$I;
|
|
8202
8202
|
BackTop.displayName = "NutBackTop";
|
|
8203
|
-
const defaultProps$
|
|
8203
|
+
const defaultProps$H = {
|
|
8204
8204
|
attract: false,
|
|
8205
8205
|
direction: void 0,
|
|
8206
8206
|
boundary: {
|
|
@@ -8213,7 +8213,7 @@ const defaultProps$F = {
|
|
|
8213
8213
|
};
|
|
8214
8214
|
const Drag = (props) => {
|
|
8215
8215
|
const { attract, direction, boundary, children, className, style, ...reset } = {
|
|
8216
|
-
...defaultProps$
|
|
8216
|
+
...defaultProps$H,
|
|
8217
8217
|
...props
|
|
8218
8218
|
};
|
|
8219
8219
|
const b2 = cn("drag");
|
|
@@ -8305,7 +8305,7 @@ const Drag = (props) => {
|
|
|
8305
8305
|
style: currstyle
|
|
8306
8306
|
}, children));
|
|
8307
8307
|
};
|
|
8308
|
-
Drag.defaultProps = defaultProps$
|
|
8308
|
+
Drag.defaultProps = defaultProps$H;
|
|
8309
8309
|
Drag.displayName = "NutDrag";
|
|
8310
8310
|
const Content = (props) => {
|
|
8311
8311
|
const {
|
|
@@ -8404,7 +8404,7 @@ const DialogWrapper = (props) => {
|
|
|
8404
8404
|
}));
|
|
8405
8405
|
};
|
|
8406
8406
|
DialogWrapper.displayName = "NutDialogWrapper";
|
|
8407
|
-
const defaultProps$
|
|
8407
|
+
const defaultProps$G = {
|
|
8408
8408
|
okText: "",
|
|
8409
8409
|
cancelText: "",
|
|
8410
8410
|
mask: true,
|
|
@@ -8483,9 +8483,9 @@ const BaseDialog = (props, ref) => {
|
|
|
8483
8483
|
});
|
|
8484
8484
|
};
|
|
8485
8485
|
const Dialog = forwardRef(BaseDialog);
|
|
8486
|
-
Dialog.defaultProps = defaultProps$
|
|
8486
|
+
Dialog.defaultProps = defaultProps$G;
|
|
8487
8487
|
Dialog.displayName = "NutDialog";
|
|
8488
|
-
const defaultProps$
|
|
8488
|
+
const defaultProps$F = {
|
|
8489
8489
|
...ComponentDefaults,
|
|
8490
8490
|
hasMore: true,
|
|
8491
8491
|
upperThreshold: 40,
|
|
@@ -8517,7 +8517,7 @@ const Infiniteloading = (props) => {
|
|
|
8517
8517
|
iconClassPrefix,
|
|
8518
8518
|
iconFontClassName
|
|
8519
8519
|
} = {
|
|
8520
|
-
...defaultProps$
|
|
8520
|
+
...defaultProps$F,
|
|
8521
8521
|
...props
|
|
8522
8522
|
};
|
|
8523
8523
|
const [isInfiniting, setIsInfiniting] = useState(false);
|
|
@@ -8653,9 +8653,9 @@ const Infiniteloading = (props) => {
|
|
|
8653
8653
|
className: "tips"
|
|
8654
8654
|
}, loadMoreTxt || locale.infiniteloading.loadMoreText)));
|
|
8655
8655
|
};
|
|
8656
|
-
Infiniteloading.defaultProps = defaultProps$
|
|
8656
|
+
Infiniteloading.defaultProps = defaultProps$F;
|
|
8657
8657
|
Infiniteloading.displayName = "NutInfiniteloading";
|
|
8658
|
-
const defaultProps$
|
|
8658
|
+
const defaultProps$E = {
|
|
8659
8659
|
id: "",
|
|
8660
8660
|
msg: "",
|
|
8661
8661
|
color: "",
|
|
@@ -8688,7 +8688,7 @@ const Notify = (props) => {
|
|
|
8688
8688
|
onClosed,
|
|
8689
8689
|
onClick,
|
|
8690
8690
|
...rest
|
|
8691
|
-
} = { ...defaultProps$
|
|
8691
|
+
} = { ...defaultProps$E, ...props };
|
|
8692
8692
|
let timer;
|
|
8693
8693
|
const [showNotify, SetShow] = useState(false);
|
|
8694
8694
|
useEffect(() => {
|
|
@@ -8749,9 +8749,9 @@ const Notify = (props) => {
|
|
|
8749
8749
|
onClick: clickHandle
|
|
8750
8750
|
}, children || msg)));
|
|
8751
8751
|
};
|
|
8752
|
-
Notify.defaultProps = defaultProps$
|
|
8752
|
+
Notify.defaultProps = defaultProps$E;
|
|
8753
8753
|
Notify.displayName = "NutNotify";
|
|
8754
|
-
const defaultProps$
|
|
8754
|
+
const defaultProps$D = {
|
|
8755
8755
|
isAsync: false,
|
|
8756
8756
|
checked: false,
|
|
8757
8757
|
disable: false,
|
|
@@ -8774,7 +8774,7 @@ const Switch = (props) => {
|
|
|
8774
8774
|
className,
|
|
8775
8775
|
style
|
|
8776
8776
|
} = {
|
|
8777
|
-
...defaultProps$
|
|
8777
|
+
...defaultProps$D,
|
|
8778
8778
|
...props
|
|
8779
8779
|
};
|
|
8780
8780
|
const [value, setValue] = useState(false);
|
|
@@ -8814,7 +8814,7 @@ const Switch = (props) => {
|
|
|
8814
8814
|
className: `${b2("label")} close`
|
|
8815
8815
|
}, inactiveText))));
|
|
8816
8816
|
};
|
|
8817
|
-
Switch.defaultProps = defaultProps$
|
|
8817
|
+
Switch.defaultProps = defaultProps$D;
|
|
8818
8818
|
Switch.displayName = "NutSwitch";
|
|
8819
8819
|
function preventDefault(event, isStopPropagation) {
|
|
8820
8820
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -8824,7 +8824,7 @@ function preventDefault(event, isStopPropagation) {
|
|
|
8824
8824
|
event.stopPropagation();
|
|
8825
8825
|
}
|
|
8826
8826
|
}
|
|
8827
|
-
const defaultProps$
|
|
8827
|
+
const defaultProps$C = {
|
|
8828
8828
|
name: "",
|
|
8829
8829
|
leftWidth: 0,
|
|
8830
8830
|
rightWidth: 0
|
|
@@ -8832,7 +8832,7 @@ const defaultProps$A = {
|
|
|
8832
8832
|
const Swipe = forwardRef((props, instanceRef) => {
|
|
8833
8833
|
const swipeBem = cn("swipe");
|
|
8834
8834
|
const touch = useTouch();
|
|
8835
|
-
const { children, className, style } = { ...defaultProps$
|
|
8835
|
+
const { children, className, style } = { ...defaultProps$C, ...props };
|
|
8836
8836
|
const root = useRef();
|
|
8837
8837
|
const opened = useRef(false);
|
|
8838
8838
|
const lockClick = useRef(false);
|
|
@@ -8985,7 +8985,7 @@ const Swipe = forwardRef((props, instanceRef) => {
|
|
|
8985
8985
|
style: wrapperStyle
|
|
8986
8986
|
}, renderActionContent("left"), children, renderActionContent("right")));
|
|
8987
8987
|
});
|
|
8988
|
-
Swipe.defaultProps = defaultProps$
|
|
8988
|
+
Swipe.defaultProps = defaultProps$C;
|
|
8989
8989
|
Swipe.displayName = "NutSwipe";
|
|
8990
8990
|
function clamp(v, min, max) {
|
|
8991
8991
|
return Math.max(min, Math.min(v, max));
|
|
@@ -13512,7 +13512,7 @@ if (canUseDom) {
|
|
|
13512
13512
|
console.log(e2);
|
|
13513
13513
|
}
|
|
13514
13514
|
}
|
|
13515
|
-
const defaultProps$
|
|
13515
|
+
const defaultProps$B = {
|
|
13516
13516
|
pullingText: "",
|
|
13517
13517
|
canReleaseText: "",
|
|
13518
13518
|
refreshingText: "",
|
|
@@ -13527,7 +13527,7 @@ const defaultProps$z = {
|
|
|
13527
13527
|
const PullToRefresh = (p) => {
|
|
13528
13528
|
const { locale } = useConfig$1();
|
|
13529
13529
|
const props = {
|
|
13530
|
-
...defaultProps$
|
|
13530
|
+
...defaultProps$B,
|
|
13531
13531
|
...p,
|
|
13532
13532
|
...{
|
|
13533
13533
|
pullingText: p.pullingText || locale.pullToRefresh.pullingText,
|
|
@@ -13665,10 +13665,10 @@ const PullToRefresh = (p) => {
|
|
|
13665
13665
|
className: "nut-pulltorefresh-content"
|
|
13666
13666
|
}, props.children));
|
|
13667
13667
|
};
|
|
13668
|
-
PullToRefresh.defaultProps = defaultProps$
|
|
13668
|
+
PullToRefresh.defaultProps = defaultProps$B;
|
|
13669
13669
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
13670
13670
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
13671
|
-
const defaultProps$
|
|
13671
|
+
const defaultProps$A = {
|
|
13672
13672
|
strokeWidth: 5,
|
|
13673
13673
|
radius: 50,
|
|
13674
13674
|
strokeLinecap: "round",
|
|
@@ -13690,7 +13690,7 @@ const CircleProgress = (props) => {
|
|
|
13690
13690
|
strokeLinecap,
|
|
13691
13691
|
...restProps
|
|
13692
13692
|
} = {
|
|
13693
|
-
...defaultProps$
|
|
13693
|
+
...defaultProps$A,
|
|
13694
13694
|
...props
|
|
13695
13695
|
};
|
|
13696
13696
|
const [oldValue, setOldValue] = useState(progress);
|
|
@@ -13801,9 +13801,9 @@ const CircleProgress = (props) => {
|
|
|
13801
13801
|
className: "nut-circleprogress-text"
|
|
13802
13802
|
}, children || /* @__PURE__ */ React__default.createElement("div", null, progress, "%")));
|
|
13803
13803
|
};
|
|
13804
|
-
CircleProgress.defaultProps = defaultProps$
|
|
13804
|
+
CircleProgress.defaultProps = defaultProps$A;
|
|
13805
13805
|
CircleProgress.displayName = "NutCircleProgress";
|
|
13806
|
-
const defaultProps$
|
|
13806
|
+
const defaultProps$z = {
|
|
13807
13807
|
...ComponentDefaults,
|
|
13808
13808
|
direction: "across",
|
|
13809
13809
|
list: [],
|
|
@@ -13847,7 +13847,7 @@ const NoticeBar = (props) => {
|
|
|
13847
13847
|
iconClassPrefix,
|
|
13848
13848
|
iconFontClassName
|
|
13849
13849
|
} = {
|
|
13850
|
-
...defaultProps$
|
|
13850
|
+
...defaultProps$z,
|
|
13851
13851
|
...props
|
|
13852
13852
|
};
|
|
13853
13853
|
const wrap = useRef(null);
|
|
@@ -14096,16 +14096,16 @@ const NoticeBar = (props) => {
|
|
|
14096
14096
|
size: "11px"
|
|
14097
14097
|
}) : null))) : null);
|
|
14098
14098
|
};
|
|
14099
|
-
NoticeBar.defaultProps = defaultProps$
|
|
14099
|
+
NoticeBar.defaultProps = defaultProps$z;
|
|
14100
14100
|
NoticeBar.displayName = "NutNoticeBar";
|
|
14101
14101
|
const DataContext$1 = createContext({});
|
|
14102
|
-
const defaultProps$
|
|
14102
|
+
const defaultProps$y = {
|
|
14103
14103
|
current: 0,
|
|
14104
14104
|
direction: "horizontal",
|
|
14105
14105
|
progressDot: false
|
|
14106
14106
|
};
|
|
14107
14107
|
const Steps = (props) => {
|
|
14108
|
-
const propSteps = { ...defaultProps$
|
|
14108
|
+
const propSteps = { ...defaultProps$y, ...props };
|
|
14109
14109
|
const {
|
|
14110
14110
|
children,
|
|
14111
14111
|
current,
|
|
@@ -14139,9 +14139,9 @@ const Steps = (props) => {
|
|
|
14139
14139
|
children
|
|
14140
14140
|
));
|
|
14141
14141
|
};
|
|
14142
|
-
Steps.defaultProps = defaultProps$
|
|
14142
|
+
Steps.defaultProps = defaultProps$y;
|
|
14143
14143
|
Steps.displayName = "NutSteps";
|
|
14144
|
-
const defaultProps$
|
|
14144
|
+
const defaultProps$x = {
|
|
14145
14145
|
...ComponentDefaults,
|
|
14146
14146
|
title: "",
|
|
14147
14147
|
content: "",
|
|
@@ -14165,7 +14165,7 @@ const Step = (props) => {
|
|
|
14165
14165
|
iconFontClassName,
|
|
14166
14166
|
...restProps
|
|
14167
14167
|
} = {
|
|
14168
|
-
...defaultProps$
|
|
14168
|
+
...defaultProps$x,
|
|
14169
14169
|
...props
|
|
14170
14170
|
};
|
|
14171
14171
|
const parent = useContext(DataContext$1);
|
|
@@ -14227,10 +14227,10 @@ const Step = (props) => {
|
|
|
14227
14227
|
className: "nut-step-content"
|
|
14228
14228
|
}, renderContent())));
|
|
14229
14229
|
};
|
|
14230
|
-
Step.defaultProps = defaultProps$
|
|
14230
|
+
Step.defaultProps = defaultProps$x;
|
|
14231
14231
|
Step.displayName = "NutStep";
|
|
14232
14232
|
const DataContext = createContext({});
|
|
14233
|
-
const defaultProps$
|
|
14233
|
+
const defaultProps$w = {
|
|
14234
14234
|
width: typeof window === "object" ? window.innerWidth : 375,
|
|
14235
14235
|
height: 0,
|
|
14236
14236
|
duration: 500,
|
|
@@ -14248,7 +14248,7 @@ const defaultProps$u = {
|
|
|
14248
14248
|
};
|
|
14249
14249
|
const DISTANCE = 5;
|
|
14250
14250
|
const Swiper = React__default.forwardRef((props, ref) => {
|
|
14251
|
-
const propSwiper = { ...defaultProps$
|
|
14251
|
+
const propSwiper = { ...defaultProps$w, ...props };
|
|
14252
14252
|
const {
|
|
14253
14253
|
children,
|
|
14254
14254
|
direction,
|
|
@@ -14669,13 +14669,13 @@ const Swiper = React__default.forwardRef((props, ref) => {
|
|
|
14669
14669
|
});
|
|
14670
14670
|
})) : /* @__PURE__ */ React__default.createElement("div", null, pageContent)));
|
|
14671
14671
|
});
|
|
14672
|
-
Swiper.defaultProps = defaultProps$
|
|
14672
|
+
Swiper.defaultProps = defaultProps$w;
|
|
14673
14673
|
Swiper.displayName = "NutSwiper";
|
|
14674
|
-
const defaultProps$
|
|
14674
|
+
const defaultProps$v = {
|
|
14675
14675
|
direction: "horizontal"
|
|
14676
14676
|
};
|
|
14677
14677
|
const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
14678
|
-
const _props = { ...defaultProps$
|
|
14678
|
+
const _props = { ...defaultProps$v, ...props };
|
|
14679
14679
|
const { className, style, children, direction, size } = _props;
|
|
14680
14680
|
const parent = useContext(DataContext);
|
|
14681
14681
|
const b2 = cn("swiper-item");
|
|
@@ -14694,10 +14694,10 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
|
|
|
14694
14694
|
style: { ...style, ...getStyle() }
|
|
14695
14695
|
}, children);
|
|
14696
14696
|
});
|
|
14697
|
-
SwiperItem.defaultProps = defaultProps$
|
|
14697
|
+
SwiperItem.defaultProps = defaultProps$v;
|
|
14698
14698
|
SwiperItem.displayName = "NutSwiperItem";
|
|
14699
14699
|
const AvatarContext = createContext({});
|
|
14700
|
-
const defaultProps$
|
|
14700
|
+
const defaultProps$u = {
|
|
14701
14701
|
...ComponentDefaults,
|
|
14702
14702
|
size: "",
|
|
14703
14703
|
icon: "",
|
|
@@ -14728,7 +14728,7 @@ const Avatar = (props) => {
|
|
|
14728
14728
|
iconFontClassName,
|
|
14729
14729
|
...rest
|
|
14730
14730
|
} = {
|
|
14731
|
-
...defaultProps$
|
|
14731
|
+
...defaultProps$u,
|
|
14732
14732
|
...props
|
|
14733
14733
|
};
|
|
14734
14734
|
const [maxSum, setMaxSum] = useState(0);
|
|
@@ -14815,9 +14815,9 @@ const Avatar = (props) => {
|
|
|
14815
14815
|
className: "text"
|
|
14816
14816
|
}, ((_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)}`)));
|
|
14817
14817
|
};
|
|
14818
|
-
Avatar.defaultProps = defaultProps$
|
|
14818
|
+
Avatar.defaultProps = defaultProps$u;
|
|
14819
14819
|
Avatar.displayName = "NutAvatar";
|
|
14820
|
-
const defaultProps$
|
|
14820
|
+
const defaultProps$t = {
|
|
14821
14821
|
maxContent: "",
|
|
14822
14822
|
maxCount: "",
|
|
14823
14823
|
maxBgColor: "#eee",
|
|
@@ -14829,7 +14829,7 @@ const defaultProps$r = {
|
|
|
14829
14829
|
};
|
|
14830
14830
|
const AvatarGroup = (props) => {
|
|
14831
14831
|
useConfig();
|
|
14832
|
-
const propAvatarGroup = { ...defaultProps$
|
|
14832
|
+
const propAvatarGroup = { ...defaultProps$t, ...props };
|
|
14833
14833
|
const { className, style, children } = propAvatarGroup;
|
|
14834
14834
|
const avatarGroupRef = useRef(null);
|
|
14835
14835
|
const b2 = cn("avatar-group");
|
|
@@ -14846,9 +14846,9 @@ const AvatarGroup = (props) => {
|
|
|
14846
14846
|
ref: avatarGroupRef
|
|
14847
14847
|
}, children));
|
|
14848
14848
|
};
|
|
14849
|
-
AvatarGroup.defaultProps = defaultProps$
|
|
14849
|
+
AvatarGroup.defaultProps = defaultProps$t;
|
|
14850
14850
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
14851
|
-
const defaultProps$
|
|
14851
|
+
const defaultProps$s = {
|
|
14852
14852
|
price: 0,
|
|
14853
14853
|
needSymbol: true,
|
|
14854
14854
|
symbol: "¥",
|
|
@@ -14870,7 +14870,7 @@ const Price = (props) => {
|
|
|
14870
14870
|
className,
|
|
14871
14871
|
...rest
|
|
14872
14872
|
} = {
|
|
14873
|
-
...defaultProps$
|
|
14873
|
+
...defaultProps$s,
|
|
14874
14874
|
...props
|
|
14875
14875
|
};
|
|
14876
14876
|
const b2 = cn("price");
|
|
@@ -14935,9 +14935,9 @@ const Price = (props) => {
|
|
|
14935
14935
|
className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
|
|
14936
14936
|
}, formatDecimal(price)), needSymbol && position === "after" ? renderSymbol() : null);
|
|
14937
14937
|
};
|
|
14938
|
-
Price.defaultProps = defaultProps$
|
|
14938
|
+
Price.defaultProps = defaultProps$s;
|
|
14939
14939
|
Price.displayName = "NutPrice";
|
|
14940
|
-
const defaultProps$
|
|
14940
|
+
const defaultProps$r = {
|
|
14941
14941
|
...ComponentDefaults,
|
|
14942
14942
|
value: "",
|
|
14943
14943
|
dot: false,
|
|
@@ -14962,7 +14962,7 @@ const Badge = (props) => {
|
|
|
14962
14962
|
iconClassPrefix,
|
|
14963
14963
|
iconFontClassName
|
|
14964
14964
|
} = {
|
|
14965
|
-
...defaultProps$
|
|
14965
|
+
...defaultProps$r,
|
|
14966
14966
|
...props
|
|
14967
14967
|
};
|
|
14968
14968
|
function content() {
|
|
@@ -15000,9 +15000,9 @@ const Badge = (props) => {
|
|
|
15000
15000
|
style: getStyle()
|
|
15001
15001
|
}, content()));
|
|
15002
15002
|
};
|
|
15003
|
-
Badge.defaultProps = defaultProps$
|
|
15003
|
+
Badge.defaultProps = defaultProps$r;
|
|
15004
15004
|
Badge.displayName = "NutBadge";
|
|
15005
|
-
const defaultProps$
|
|
15005
|
+
const defaultProps$q = {
|
|
15006
15006
|
...ComponentDefaults,
|
|
15007
15007
|
type: "default",
|
|
15008
15008
|
color: "",
|
|
@@ -15035,7 +15035,7 @@ const Tag = (props) => {
|
|
|
15035
15035
|
iconClassPrefix,
|
|
15036
15036
|
iconFontClassName
|
|
15037
15037
|
} = {
|
|
15038
|
-
...defaultProps$
|
|
15038
|
+
...defaultProps$q,
|
|
15039
15039
|
...props
|
|
15040
15040
|
};
|
|
15041
15041
|
const [btnName, setBtnName] = useState("");
|
|
@@ -15109,7 +15109,7 @@ const Tag = (props) => {
|
|
|
15109
15109
|
className: "text"
|
|
15110
15110
|
}, children)));
|
|
15111
15111
|
};
|
|
15112
|
-
Tag.defaultProps = defaultProps$
|
|
15112
|
+
Tag.defaultProps = defaultProps$q;
|
|
15113
15113
|
Tag.displayName = "NutTag";
|
|
15114
15114
|
function fillRef(ref, node) {
|
|
15115
15115
|
if (typeof ref === "function") {
|
|
@@ -15153,7 +15153,7 @@ class Trigger extends React__default.Component {
|
|
|
15153
15153
|
return trigger;
|
|
15154
15154
|
}
|
|
15155
15155
|
}
|
|
15156
|
-
const defaultProps$
|
|
15156
|
+
const defaultProps$p = {
|
|
15157
15157
|
...ComponentDefaults,
|
|
15158
15158
|
list: [],
|
|
15159
15159
|
theme: "light",
|
|
@@ -15182,7 +15182,7 @@ const Popover = (props) => {
|
|
|
15182
15182
|
iconFontClassName,
|
|
15183
15183
|
...reset
|
|
15184
15184
|
} = {
|
|
15185
|
-
...defaultProps$
|
|
15185
|
+
...defaultProps$p,
|
|
15186
15186
|
...props
|
|
15187
15187
|
};
|
|
15188
15188
|
const goodItem = useRef(null);
|
|
@@ -15277,9 +15277,9 @@ const Popover = (props) => {
|
|
|
15277
15277
|
style: { background: "transparent" }
|
|
15278
15278
|
}) : "");
|
|
15279
15279
|
};
|
|
15280
|
-
Popover.defaultProps = defaultProps$
|
|
15280
|
+
Popover.defaultProps = defaultProps$p;
|
|
15281
15281
|
Popover.displayName = "NutPopover";
|
|
15282
|
-
const defaultProps$
|
|
15282
|
+
const defaultProps$o = {
|
|
15283
15283
|
width: "100px",
|
|
15284
15284
|
height: "100px",
|
|
15285
15285
|
row: 1,
|
|
@@ -15307,7 +15307,7 @@ const Skeleton = (props) => {
|
|
|
15307
15307
|
avatarShape,
|
|
15308
15308
|
...restProps
|
|
15309
15309
|
} = {
|
|
15310
|
-
...defaultProps$
|
|
15310
|
+
...defaultProps$o,
|
|
15311
15311
|
...props
|
|
15312
15312
|
};
|
|
15313
15313
|
const b2 = cn("skeleton");
|
|
@@ -15362,9 +15362,9 @@ const Skeleton = (props) => {
|
|
|
15362
15362
|
});
|
|
15363
15363
|
})))));
|
|
15364
15364
|
};
|
|
15365
|
-
Skeleton.defaultProps = defaultProps$
|
|
15365
|
+
Skeleton.defaultProps = defaultProps$o;
|
|
15366
15366
|
Skeleton.displayName = "NutSkeleton";
|
|
15367
|
-
const defaultProps$
|
|
15367
|
+
const defaultProps$n = {
|
|
15368
15368
|
paused: false,
|
|
15369
15369
|
startTime: Date.now(),
|
|
15370
15370
|
endTime: Date.now(),
|
|
@@ -15391,7 +15391,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
15391
15391
|
onUpdate,
|
|
15392
15392
|
children,
|
|
15393
15393
|
...rest
|
|
15394
|
-
} = { ...defaultProps$
|
|
15394
|
+
} = { ...defaultProps$n, ...props };
|
|
15395
15395
|
const b2 = cn("countdown");
|
|
15396
15396
|
const [restTimeStamp, setRestTime] = useState(0);
|
|
15397
15397
|
const stateRef = useRef({
|
|
@@ -15587,9 +15587,9 @@ const InternalCountDown = (props, ref) => {
|
|
|
15587
15587
|
}));
|
|
15588
15588
|
};
|
|
15589
15589
|
const CountDown = React__default.forwardRef(InternalCountDown);
|
|
15590
|
-
CountDown.defaultProps = defaultProps$
|
|
15590
|
+
CountDown.defaultProps = defaultProps$n;
|
|
15591
15591
|
CountDown.displayName = "NutCountDown";
|
|
15592
|
-
const defaultProps$
|
|
15592
|
+
const defaultProps$m = {
|
|
15593
15593
|
activeName: ["0"],
|
|
15594
15594
|
accordion: false,
|
|
15595
15595
|
icon: "",
|
|
@@ -15614,7 +15614,7 @@ const Collapse = memo(
|
|
|
15614
15614
|
iconColor,
|
|
15615
15615
|
onChange
|
|
15616
15616
|
} = {
|
|
15617
|
-
...defaultProps$
|
|
15617
|
+
...defaultProps$m,
|
|
15618
15618
|
...props
|
|
15619
15619
|
};
|
|
15620
15620
|
const childrenDom = React__default.Children.toArray(children);
|
|
@@ -15672,9 +15672,9 @@ const Collapse = memo(
|
|
|
15672
15672
|
},
|
|
15673
15673
|
areEqual
|
|
15674
15674
|
);
|
|
15675
|
-
Collapse.defaultProps = defaultProps$
|
|
15675
|
+
Collapse.defaultProps = defaultProps$m;
|
|
15676
15676
|
Collapse.displayName = "NutCollapse";
|
|
15677
|
-
const defaultProps$
|
|
15677
|
+
const defaultProps$l = {
|
|
15678
15678
|
...ComponentDefaults,
|
|
15679
15679
|
title: "",
|
|
15680
15680
|
name: "",
|
|
@@ -15713,7 +15713,7 @@ const CollapseItem = (props) => {
|
|
|
15713
15713
|
iconFontClassName,
|
|
15714
15714
|
...rest
|
|
15715
15715
|
} = {
|
|
15716
|
-
...defaultProps$
|
|
15716
|
+
...defaultProps$l,
|
|
15717
15717
|
...props
|
|
15718
15718
|
};
|
|
15719
15719
|
const [domHeight, setDomHeight] = useState(-1);
|
|
@@ -15797,9 +15797,9 @@ const CollapseItem = (props) => {
|
|
|
15797
15797
|
className: colBem("content-text")
|
|
15798
15798
|
}, children)));
|
|
15799
15799
|
};
|
|
15800
|
-
CollapseItem.defaultProps = defaultProps$
|
|
15800
|
+
CollapseItem.defaultProps = defaultProps$l;
|
|
15801
15801
|
CollapseItem.displayName = "NutCollapseItem";
|
|
15802
|
-
const defaultProps$
|
|
15802
|
+
const defaultProps$k = {
|
|
15803
15803
|
maxLen: 0,
|
|
15804
15804
|
endNumber: "",
|
|
15805
15805
|
delaySpeed: 300,
|
|
@@ -15817,7 +15817,7 @@ const CountUp = (props) => {
|
|
|
15817
15817
|
thousands,
|
|
15818
15818
|
...reset
|
|
15819
15819
|
} = {
|
|
15820
|
-
...defaultProps$
|
|
15820
|
+
...defaultProps$k,
|
|
15821
15821
|
...props
|
|
15822
15822
|
};
|
|
15823
15823
|
const b2 = cn("countup");
|
|
@@ -15894,9 +15894,9 @@ const CountUp = (props) => {
|
|
|
15894
15894
|
}, item));
|
|
15895
15895
|
})));
|
|
15896
15896
|
};
|
|
15897
|
-
CountUp.defaultProps = defaultProps$
|
|
15897
|
+
CountUp.defaultProps = defaultProps$k;
|
|
15898
15898
|
CountUp.displayName = "NutCountUp";
|
|
15899
|
-
const defaultProps$
|
|
15899
|
+
const defaultProps$j = {};
|
|
15900
15900
|
class AnimatingNumbers extends Component {
|
|
15901
15901
|
constructor(props) {
|
|
15902
15902
|
super(props);
|
|
@@ -15908,7 +15908,7 @@ class AnimatingNumbers extends Component {
|
|
|
15908
15908
|
});
|
|
15909
15909
|
}
|
|
15910
15910
|
}
|
|
15911
|
-
AnimatingNumbers.defaultProps = defaultProps$
|
|
15911
|
+
AnimatingNumbers.defaultProps = defaultProps$j;
|
|
15912
15912
|
AnimatingNumbers.displayName = "NutAnimatingNumbers";
|
|
15913
15913
|
AnimatingNumbers.CountUp = CountUp;
|
|
15914
15914
|
const defaultStatus = {
|
|
@@ -15916,7 +15916,7 @@ const defaultStatus = {
|
|
|
15916
15916
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
15917
15917
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
15918
15918
|
};
|
|
15919
|
-
const defaultProps$
|
|
15919
|
+
const defaultProps$i = {
|
|
15920
15920
|
description: "\u65E0\u5185\u5BB9",
|
|
15921
15921
|
image: "empty",
|
|
15922
15922
|
imageSize: "",
|
|
@@ -15924,9 +15924,9 @@ const defaultProps$g = {
|
|
|
15924
15924
|
};
|
|
15925
15925
|
const Empty = (props) => {
|
|
15926
15926
|
const { locale } = useConfig$1();
|
|
15927
|
-
defaultProps$
|
|
15927
|
+
defaultProps$i.description = locale.noData || defaultProps$i.description;
|
|
15928
15928
|
const { image, imageSize, description, children, className, ...rest } = {
|
|
15929
|
-
...defaultProps$
|
|
15929
|
+
...defaultProps$i,
|
|
15930
15930
|
...props
|
|
15931
15931
|
};
|
|
15932
15932
|
const [imgStyle, setImgStyle] = useState({});
|
|
@@ -15968,7 +15968,7 @@ const Empty = (props) => {
|
|
|
15968
15968
|
className: b2("description")
|
|
15969
15969
|
}, description) : { description }, children));
|
|
15970
15970
|
};
|
|
15971
|
-
Empty.defaultProps = defaultProps$
|
|
15971
|
+
Empty.defaultProps = defaultProps$i;
|
|
15972
15972
|
Empty.displayName = "NutEmpty";
|
|
15973
15973
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
15974
15974
|
let index = 0;
|
|
@@ -16081,7 +16081,7 @@ const updateItemSize = (positions, items, sizeKey) => {
|
|
|
16081
16081
|
}
|
|
16082
16082
|
});
|
|
16083
16083
|
};
|
|
16084
|
-
const defaultProps$
|
|
16084
|
+
const defaultProps$h = {};
|
|
16085
16085
|
const VirtualList = (props) => {
|
|
16086
16086
|
const {
|
|
16087
16087
|
sourceData = [],
|
|
@@ -16245,9 +16245,9 @@ const VirtualList = (props) => {
|
|
|
16245
16245
|
}) : data);
|
|
16246
16246
|
}))));
|
|
16247
16247
|
};
|
|
16248
|
-
VirtualList.defaultProps = defaultProps$
|
|
16248
|
+
VirtualList.defaultProps = defaultProps$h;
|
|
16249
16249
|
VirtualList.displayName = "NutVirtualList";
|
|
16250
|
-
const defaultProps$
|
|
16250
|
+
const defaultProps$g = {
|
|
16251
16251
|
...ComponentDefaults,
|
|
16252
16252
|
className: "",
|
|
16253
16253
|
style: {},
|
|
@@ -16259,7 +16259,7 @@ const defaultProps$e = {
|
|
|
16259
16259
|
};
|
|
16260
16260
|
const Table = (props) => {
|
|
16261
16261
|
const { locale } = useConfig$1();
|
|
16262
|
-
defaultProps$
|
|
16262
|
+
defaultProps$g.noData = locale.noData;
|
|
16263
16263
|
const {
|
|
16264
16264
|
children,
|
|
16265
16265
|
className,
|
|
@@ -16275,7 +16275,7 @@ const Table = (props) => {
|
|
|
16275
16275
|
iconFontClassName,
|
|
16276
16276
|
...rest
|
|
16277
16277
|
} = {
|
|
16278
|
-
...defaultProps$
|
|
16278
|
+
...defaultProps$g,
|
|
16279
16279
|
...props
|
|
16280
16280
|
};
|
|
16281
16281
|
const [curData, setCurData] = useState(data);
|
|
@@ -16373,9 +16373,9 @@ const Table = (props) => {
|
|
|
16373
16373
|
className: "nut-table__nodata__text"
|
|
16374
16374
|
}, noData))));
|
|
16375
16375
|
};
|
|
16376
|
-
Table.defaultProps = defaultProps$
|
|
16376
|
+
Table.defaultProps = defaultProps$g;
|
|
16377
16377
|
Table.displayName = "NutTable";
|
|
16378
|
-
const defaultProps$
|
|
16378
|
+
const defaultProps$f = {
|
|
16379
16379
|
source: {
|
|
16380
16380
|
type: {},
|
|
16381
16381
|
src: ""
|
|
@@ -16403,7 +16403,7 @@ const Video = (props) => {
|
|
|
16403
16403
|
onPlayend,
|
|
16404
16404
|
...restProps
|
|
16405
16405
|
} = {
|
|
16406
|
-
...defaultProps$
|
|
16406
|
+
...defaultProps$f,
|
|
16407
16407
|
...props
|
|
16408
16408
|
};
|
|
16409
16409
|
const rootRef = useRef(null);
|
|
@@ -16460,11 +16460,11 @@ const Video = (props) => {
|
|
|
16460
16460
|
kind: "captions"
|
|
16461
16461
|
})));
|
|
16462
16462
|
};
|
|
16463
|
-
Video.defaultProps = defaultProps$
|
|
16463
|
+
Video.defaultProps = defaultProps$f;
|
|
16464
16464
|
Video.displayName = "NutVideo";
|
|
16465
16465
|
const b = cn("audio");
|
|
16466
16466
|
const warn = console.warn;
|
|
16467
|
-
const defaultProps$
|
|
16467
|
+
const defaultProps$e = {
|
|
16468
16468
|
...ComponentDefaults,
|
|
16469
16469
|
className: "",
|
|
16470
16470
|
url: "",
|
|
@@ -16505,7 +16505,7 @@ const Audio = (props) => {
|
|
|
16505
16505
|
iconFontClassName,
|
|
16506
16506
|
...rest
|
|
16507
16507
|
} = {
|
|
16508
|
-
...defaultProps$
|
|
16508
|
+
...defaultProps$e,
|
|
16509
16509
|
...props
|
|
16510
16510
|
};
|
|
16511
16511
|
const [playing, setPlaying] = useState(false);
|
|
@@ -16669,9 +16669,9 @@ const Audio = (props) => {
|
|
|
16669
16669
|
...rest
|
|
16670
16670
|
}, renderAudio());
|
|
16671
16671
|
};
|
|
16672
|
-
Audio.defaultProps = defaultProps$
|
|
16672
|
+
Audio.defaultProps = defaultProps$e;
|
|
16673
16673
|
Audio.displayName = "NutAudio";
|
|
16674
|
-
const defaultProps$
|
|
16674
|
+
const defaultProps$d = {
|
|
16675
16675
|
images: [],
|
|
16676
16676
|
videos: [],
|
|
16677
16677
|
show: false,
|
|
@@ -16854,9 +16854,9 @@ const ImagePreview = (props) => {
|
|
|
16854
16854
|
className: "nut-imagepreview-index"
|
|
16855
16855
|
}, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)));
|
|
16856
16856
|
};
|
|
16857
|
-
ImagePreview.defaultProps = defaultProps$
|
|
16857
|
+
ImagePreview.defaultProps = defaultProps$d;
|
|
16858
16858
|
ImagePreview.displayName = "NutImagePreview";
|
|
16859
|
-
const defaultProps$
|
|
16859
|
+
const defaultProps$c = {
|
|
16860
16860
|
rate: 0,
|
|
16861
16861
|
digits: 2,
|
|
16862
16862
|
showSign: false,
|
|
@@ -16888,7 +16888,7 @@ const TrendArrow = (props) => {
|
|
|
16888
16888
|
className,
|
|
16889
16889
|
children,
|
|
16890
16890
|
...rest
|
|
16891
|
-
} = { ...defaultProps$
|
|
16891
|
+
} = { ...defaultProps$c, ...props };
|
|
16892
16892
|
const b2 = cn("trendarrow");
|
|
16893
16893
|
const handleClick2 = () => {
|
|
16894
16894
|
};
|
|
@@ -16943,9 +16943,9 @@ const TrendArrow = (props) => {
|
|
|
16943
16943
|
color: calcIconProps.color
|
|
16944
16944
|
})), arrowLeft && renderContent(!arrowLeft));
|
|
16945
16945
|
};
|
|
16946
|
-
TrendArrow.defaultProps = defaultProps$
|
|
16946
|
+
TrendArrow.defaultProps = defaultProps$c;
|
|
16947
16947
|
TrendArrow.displayName = "NutTrendArrow";
|
|
16948
|
-
const defaultProps$
|
|
16948
|
+
const defaultProps$b = {
|
|
16949
16949
|
content: "",
|
|
16950
16950
|
fullPage: true,
|
|
16951
16951
|
zIndex: 2e3,
|
|
@@ -16986,7 +16986,7 @@ const WaterMark = (props) => {
|
|
|
16986
16986
|
style,
|
|
16987
16987
|
children
|
|
16988
16988
|
} = {
|
|
16989
|
-
...defaultProps$
|
|
16989
|
+
...defaultProps$b,
|
|
16990
16990
|
...props
|
|
16991
16991
|
};
|
|
16992
16992
|
const [base64Url, setBase64Url] = useState("");
|
|
@@ -17061,8 +17061,289 @@ const WaterMark = (props) => {
|
|
|
17061
17061
|
}
|
|
17062
17062
|
});
|
|
17063
17063
|
};
|
|
17064
|
-
WaterMark.defaultProps = defaultProps$
|
|
17064
|
+
WaterMark.defaultProps = defaultProps$b;
|
|
17065
17065
|
WaterMark.displayName = "NutWaterMark";
|
|
17066
|
+
const defaultProps$a = {
|
|
17067
|
+
type: "shake",
|
|
17068
|
+
action: "initial",
|
|
17069
|
+
loop: false,
|
|
17070
|
+
onClick: (event) => {
|
|
17071
|
+
}
|
|
17072
|
+
};
|
|
17073
|
+
const Animate = (props) => {
|
|
17074
|
+
const { className, type, action, loop: loop2, onClick, children, ...rest } = {
|
|
17075
|
+
...defaultProps$a,
|
|
17076
|
+
...props
|
|
17077
|
+
};
|
|
17078
|
+
const [clicked, setClicked] = useState(false);
|
|
17079
|
+
const b2 = cn("animate");
|
|
17080
|
+
const classes = classNames({
|
|
17081
|
+
"nut-ani-container": true,
|
|
17082
|
+
[`${b2("")}-${type}`]: action === "initial" || clicked ? type : false,
|
|
17083
|
+
loop: loop2
|
|
17084
|
+
});
|
|
17085
|
+
const cls = classNames(classes, className);
|
|
17086
|
+
const handleClick2 = (event) => {
|
|
17087
|
+
setClicked(true);
|
|
17088
|
+
if (!loop2) {
|
|
17089
|
+
setTimeout(() => {
|
|
17090
|
+
setClicked(false);
|
|
17091
|
+
}, 1e3);
|
|
17092
|
+
}
|
|
17093
|
+
onClick && onClick(event);
|
|
17094
|
+
};
|
|
17095
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
17096
|
+
className: "nut-animate"
|
|
17097
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
17098
|
+
className: cls,
|
|
17099
|
+
onClick: handleClick2,
|
|
17100
|
+
...rest
|
|
17101
|
+
}, children));
|
|
17102
|
+
};
|
|
17103
|
+
Animate.defaultProps = defaultProps$a;
|
|
17104
|
+
Animate.displayName = "NutAnimate";
|
|
17105
|
+
const defaultProps$9 = {
|
|
17106
|
+
content: "",
|
|
17107
|
+
direction: "end",
|
|
17108
|
+
rows: 1,
|
|
17109
|
+
expandText: "",
|
|
17110
|
+
collapseText: "",
|
|
17111
|
+
symbol: "...",
|
|
17112
|
+
lineHeight: "20"
|
|
17113
|
+
};
|
|
17114
|
+
const Ellipsis = (props) => {
|
|
17115
|
+
var _a, _b, _c, _d;
|
|
17116
|
+
useConfig$1();
|
|
17117
|
+
const {
|
|
17118
|
+
children,
|
|
17119
|
+
content,
|
|
17120
|
+
direction,
|
|
17121
|
+
rows,
|
|
17122
|
+
expandText,
|
|
17123
|
+
collapseText,
|
|
17124
|
+
symbol,
|
|
17125
|
+
lineHeight,
|
|
17126
|
+
onClick,
|
|
17127
|
+
onChange
|
|
17128
|
+
} = { ...defaultProps$9, ...props };
|
|
17129
|
+
let maxHeight = 0;
|
|
17130
|
+
const [exceeded, setExceeded] = useState(false);
|
|
17131
|
+
const [expanded, setExpanded] = useState(false);
|
|
17132
|
+
const ellipsis = useRef({
|
|
17133
|
+
leading: "",
|
|
17134
|
+
tailing: ""
|
|
17135
|
+
});
|
|
17136
|
+
const root = useRef(null);
|
|
17137
|
+
const rootContain = useRef(null);
|
|
17138
|
+
const symbolContain = useRef(null);
|
|
17139
|
+
const contantCopy = useRef(content);
|
|
17140
|
+
let lineH = 0;
|
|
17141
|
+
let originHeight = 0;
|
|
17142
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
17143
|
+
const widthRef = useRef("auto");
|
|
17144
|
+
let widthBase = [14, 10, 7, 8.4, 10];
|
|
17145
|
+
let symbolTextWidth = widthBase[0] * 0.7921;
|
|
17146
|
+
const chineseReg = /^[\u4e00-\u9fa5]+$/;
|
|
17147
|
+
const digitReg = /^[0-9]+$/;
|
|
17148
|
+
const letterUpperReg = /^[A-Z]+$/;
|
|
17149
|
+
const letterLowerReg = /^[a-z]+$/;
|
|
17150
|
+
useLayoutEffect(() => {
|
|
17151
|
+
setTimeout(() => {
|
|
17152
|
+
getSymbolInfo();
|
|
17153
|
+
getReference();
|
|
17154
|
+
}, 100);
|
|
17155
|
+
}, []);
|
|
17156
|
+
const getSymbolInfo = async () => {
|
|
17157
|
+
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
17158
|
+
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
17159
|
+
};
|
|
17160
|
+
const symbolText = () => {
|
|
17161
|
+
if (direction === "end" || direction === "middle") {
|
|
17162
|
+
return `${symbol}${expandText}`;
|
|
17163
|
+
}
|
|
17164
|
+
return `${symbol}${expandText}${symbol}`;
|
|
17165
|
+
};
|
|
17166
|
+
const getReference = async () => {
|
|
17167
|
+
const element = root.current;
|
|
17168
|
+
const query = Taro.createSelectorQuery();
|
|
17169
|
+
query.select(`#${element.id}`) && query.select(`#${element.id}`).fields(
|
|
17170
|
+
{
|
|
17171
|
+
computedStyle: [
|
|
17172
|
+
"width",
|
|
17173
|
+
"height",
|
|
17174
|
+
"lineHeight",
|
|
17175
|
+
"paddingTop",
|
|
17176
|
+
"paddingBottom",
|
|
17177
|
+
"fontSize"
|
|
17178
|
+
]
|
|
17179
|
+
},
|
|
17180
|
+
(res) => {
|
|
17181
|
+
lineH = pxToNumber(
|
|
17182
|
+
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
17183
|
+
);
|
|
17184
|
+
maxHeight = Math.floor(
|
|
17185
|
+
lineH * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom)
|
|
17186
|
+
);
|
|
17187
|
+
originHeight = pxToNumber(res.height);
|
|
17188
|
+
widthRef.current = res.width;
|
|
17189
|
+
const bsize = pxToNumber(res.fontSize);
|
|
17190
|
+
widthBase = [
|
|
17191
|
+
bsize,
|
|
17192
|
+
bsize * 0.72,
|
|
17193
|
+
bsize * 0.53,
|
|
17194
|
+
bsize * 0.4,
|
|
17195
|
+
bsize * 0.75
|
|
17196
|
+
];
|
|
17197
|
+
calcEllipse();
|
|
17198
|
+
}
|
|
17199
|
+
).exec();
|
|
17200
|
+
};
|
|
17201
|
+
const calcEllipse = async () => {
|
|
17202
|
+
const refe = await getRectByTaro(rootContain.current);
|
|
17203
|
+
if (refe.height <= maxHeight) {
|
|
17204
|
+
setExceeded(false);
|
|
17205
|
+
} else {
|
|
17206
|
+
const rowNum = Math.floor(content.length / (originHeight / lineH - 1));
|
|
17207
|
+
if (direction === "middle") {
|
|
17208
|
+
const end = content.length;
|
|
17209
|
+
ellipsis.current.leading = tailorContent(
|
|
17210
|
+
0,
|
|
17211
|
+
rowNum * (Number(rows) + 0.5),
|
|
17212
|
+
"end"
|
|
17213
|
+
);
|
|
17214
|
+
ellipsis.current.tailing = tailorContent(
|
|
17215
|
+
content.length - rowNum * (Number(rows) + 0.5),
|
|
17216
|
+
end,
|
|
17217
|
+
"start"
|
|
17218
|
+
);
|
|
17219
|
+
} else if (direction === "end") {
|
|
17220
|
+
const end = rowNum * (Number(rows) + 0.5);
|
|
17221
|
+
ellipsis.current.leading = tailorContent(0, end);
|
|
17222
|
+
} else {
|
|
17223
|
+
const start2 = content.length - rowNum * (Number(rows) + 0.5) - 5;
|
|
17224
|
+
ellipsis.current.tailing = tailorContent(start2, content.length);
|
|
17225
|
+
}
|
|
17226
|
+
assignContent();
|
|
17227
|
+
setTimeout(() => {
|
|
17228
|
+
verifyEllipsis();
|
|
17229
|
+
}, 100);
|
|
17230
|
+
}
|
|
17231
|
+
};
|
|
17232
|
+
const verifyEllipsis = async () => {
|
|
17233
|
+
var _a2, _b2, _c2, _d2, _e, _f;
|
|
17234
|
+
const refe = await getRectByTaro(rootContain.current);
|
|
17235
|
+
if (refe && refe.height && refe.height > maxHeight) {
|
|
17236
|
+
if (direction === "end") {
|
|
17237
|
+
ellipsis.current.leading = (_c2 = (_a2 = ellipsis.current) == null ? void 0 : _a2.leading) == null ? void 0 : _c2.slice(
|
|
17238
|
+
0,
|
|
17239
|
+
((_b2 = ellipsis.current) == null ? void 0 : _b2.leading.length) - 1
|
|
17240
|
+
);
|
|
17241
|
+
} else {
|
|
17242
|
+
ellipsis.current.tailing = (_f = (_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) == null ? void 0 : _f.slice(
|
|
17243
|
+
1,
|
|
17244
|
+
(_e = ellipsis.current) == null ? void 0 : _e.tailing.length
|
|
17245
|
+
);
|
|
17246
|
+
}
|
|
17247
|
+
assignContent();
|
|
17248
|
+
setTimeout(() => {
|
|
17249
|
+
verifyEllipsis();
|
|
17250
|
+
}, 100);
|
|
17251
|
+
}
|
|
17252
|
+
};
|
|
17253
|
+
const assignContent = () => {
|
|
17254
|
+
var _a2, _b2, _c2, _d2;
|
|
17255
|
+
contantCopy.current = `${((_a2 = ellipsis.current) == null ? void 0 : _a2.leading) || ""}${((_b2 = ellipsis.current) == null ? void 0 : _b2.leading) ? symbol : ""}${expandText || ""}${((_c2 = ellipsis.current) == null ? void 0 : _c2.tailing) ? symbol : ""}${((_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) || ""}`;
|
|
17256
|
+
};
|
|
17257
|
+
const tailorContent = (left, right, type = "") => {
|
|
17258
|
+
const threeDotWidth = symbolTextWidth;
|
|
17259
|
+
const direc = direction === "middle" && type ? type : direction;
|
|
17260
|
+
setExceeded(true);
|
|
17261
|
+
let widthPart = -1;
|
|
17262
|
+
const start2 = left;
|
|
17263
|
+
const end = right;
|
|
17264
|
+
let cutoff = 0;
|
|
17265
|
+
let marking = 0;
|
|
17266
|
+
if (direc === "end") {
|
|
17267
|
+
marking = start2;
|
|
17268
|
+
cutoff = end;
|
|
17269
|
+
} else {
|
|
17270
|
+
marking = end;
|
|
17271
|
+
cutoff = start2;
|
|
17272
|
+
}
|
|
17273
|
+
const contentWidth = pxToNumber(widthRef.current) * Number(rows) - threeDotWidth;
|
|
17274
|
+
const contentPartWidth = direction === "middle" ? contentWidth / 2 : contentWidth;
|
|
17275
|
+
while (widthPart < contentPartWidth) {
|
|
17276
|
+
const zi = content[marking];
|
|
17277
|
+
if (chineseReg.test(zi)) {
|
|
17278
|
+
widthPart = Number(widthPart + widthBase[0]);
|
|
17279
|
+
} else if (letterUpperReg.test(zi)) {
|
|
17280
|
+
widthPart = Number(widthPart + widthBase[1]);
|
|
17281
|
+
} else if (letterLowerReg.test(zi)) {
|
|
17282
|
+
widthPart = Number(widthPart + widthBase[2]);
|
|
17283
|
+
} else if (digitReg.test(zi)) {
|
|
17284
|
+
widthPart = Number(widthPart + widthBase[3]);
|
|
17285
|
+
} else {
|
|
17286
|
+
widthPart = Number(widthPart + widthBase[4]);
|
|
17287
|
+
}
|
|
17288
|
+
cutoff = marking;
|
|
17289
|
+
direc === "end" ? marking++ : marking--;
|
|
17290
|
+
}
|
|
17291
|
+
if (direc === "end") {
|
|
17292
|
+
return content.slice(0, cutoff);
|
|
17293
|
+
}
|
|
17294
|
+
return content.slice(cutoff, end);
|
|
17295
|
+
};
|
|
17296
|
+
const pxToNumber = (value) => {
|
|
17297
|
+
if (!value)
|
|
17298
|
+
return 0;
|
|
17299
|
+
const match = value.match(/^\d*(\.\d*)?/);
|
|
17300
|
+
return match ? Number(match[0]) : 0;
|
|
17301
|
+
};
|
|
17302
|
+
const clickHandle = (type) => {
|
|
17303
|
+
if (type === 1) {
|
|
17304
|
+
setExpanded(true);
|
|
17305
|
+
onChange && onChange("expand");
|
|
17306
|
+
} else {
|
|
17307
|
+
setExpanded(false);
|
|
17308
|
+
onChange && onChange("collapse");
|
|
17309
|
+
}
|
|
17310
|
+
};
|
|
17311
|
+
const handleClick2 = () => {
|
|
17312
|
+
onClick && onClick();
|
|
17313
|
+
};
|
|
17314
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
17315
|
+
className: "nut-ellipsis",
|
|
17316
|
+
onClick: handleClick2,
|
|
17317
|
+
ref: root,
|
|
17318
|
+
id: `root${refRandomId}`
|
|
17319
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, !exceeded ? /* @__PURE__ */ React__default.createElement("div", {
|
|
17320
|
+
className: "nut-ellipsis-wordbreak"
|
|
17321
|
+
}, content) : null, exceeded && !expanded ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
17322
|
+
className: "nut-ellipsis-wordbreak"
|
|
17323
|
+
}, (_a = ellipsis.current) == null ? void 0 : _a.leading, ((_b = ellipsis.current) == null ? void 0 : _b.leading) && symbol, expandText ? /* @__PURE__ */ React__default.createElement("span", {
|
|
17324
|
+
className: "nut-ellipsis-text",
|
|
17325
|
+
onClick: () => {
|
|
17326
|
+
clickHandle(1);
|
|
17327
|
+
}
|
|
17328
|
+
}, expandText) : null, ((_c = ellipsis.current) == null ? void 0 : _c.tailing) && symbol, (_d = ellipsis.current) == null ? void 0 : _d.tailing)) : null, exceeded && expanded ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, content, expandText ? /* @__PURE__ */ React__default.createElement("span", {
|
|
17329
|
+
className: "nut-ellipsis-text",
|
|
17330
|
+
onClick: () => {
|
|
17331
|
+
clickHandle(2);
|
|
17332
|
+
}
|
|
17333
|
+
}, collapseText) : null) : null)), /* @__PURE__ */ React__default.createElement("div", {
|
|
17334
|
+
className: "nut-ellipsis-copy",
|
|
17335
|
+
ref: rootContain,
|
|
17336
|
+
id: `rootContain${refRandomId}`,
|
|
17337
|
+
style: { width: `${widthRef}` }
|
|
17338
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, contantCopy.current)), /* @__PURE__ */ React__default.createElement("div", {
|
|
17339
|
+
className: "nut-ellipsis-copy",
|
|
17340
|
+
ref: symbolContain,
|
|
17341
|
+
id: `symbolContain${refRandomId}`,
|
|
17342
|
+
style: { display: "inline" }
|
|
17343
|
+
}, symbolText()));
|
|
17344
|
+
};
|
|
17345
|
+
Ellipsis.defaultProps = defaultProps$9;
|
|
17346
|
+
Ellipsis.displayName = "NutEllipsis";
|
|
17066
17347
|
const defaultProps$8 = {
|
|
17067
17348
|
type: "custom",
|
|
17068
17349
|
existAddress: [],
|
|
@@ -18108,4 +18389,4 @@ const TimeSelect = (props) => {
|
|
|
18108
18389
|
};
|
|
18109
18390
|
TimeSelect.defaultProps = defaultProps;
|
|
18110
18391
|
TimeSelect.displayName = "NutTimeSelect";
|
|
18111
|
-
export { ActionSheet, Address, AnimatingNumbers, Audio, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, DatePicker, Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, Grid, GridItem, Icon$1 as Icon, Image, ImagePreview, Indicator, Infiniteloading, Input, InputNumber, Layout, Menu, MenuItem, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, Picker, Popover, Popup, Price, Progress, PullToRefresh, Radio, RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Step, Steps, Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, Toast, TrendArrow, Uploader, Video, VirtualList, WaterMark };
|
|
18392
|
+
export { ActionSheet, Address, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, DatePicker, Dialog, Divider, Drag, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, Grid, GridItem, Icon$1 as Icon, Image, ImagePreview, Indicator, Infiniteloading, Input, InputNumber, Layout, Menu, MenuItem, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, Picker, Popover, Popup, Price, Progress, PullToRefresh, Radio, RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Step, Steps, Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, Toast, TrendArrow, Uploader, Video, VirtualList, WaterMark };
|