@banyan_cloud/roots 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +17 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +17 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +17 -6
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -7478,6 +7478,7 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
|
|
|
7478
7478
|
italic: italic,
|
|
7479
7479
|
className: classes(className, modules_475441e2.root, modules_475441e2["underline-".concat(underline)]),
|
|
7480
7480
|
attrs: _objectSpread2({
|
|
7481
|
+
to: href,
|
|
7481
7482
|
href: href,
|
|
7482
7483
|
target: target
|
|
7483
7484
|
}, attrs),
|
|
@@ -7516,13 +7517,14 @@ var BreadCrumbs = function BreadCrumbs(props) {
|
|
|
7516
7517
|
var CrumbsDOM = crumbs.map(function (crumb, index) {
|
|
7517
7518
|
var title = crumb.title,
|
|
7518
7519
|
path = crumb.path,
|
|
7520
|
+
search = crumb.search,
|
|
7519
7521
|
icon = crumb.icon;
|
|
7520
7522
|
var active = index === crumbs.length - 1;
|
|
7521
7523
|
var showSeperator = index < crumbs.length - 1;
|
|
7522
7524
|
href += "/".concat(path);
|
|
7523
7525
|
return /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
|
|
7524
7526
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Link, {
|
|
7525
|
-
href: !active && href,
|
|
7527
|
+
href: !active && "".concat(href).concat(search !== null && search !== void 0 ? search : ''),
|
|
7526
7528
|
underline: !active ? 'hover' : 'none',
|
|
7527
7529
|
className: classes(modules_651f50a9.crumb, active ? modules_651f50a9.active : ''),
|
|
7528
7530
|
dataAttrs: {
|
|
@@ -44183,16 +44185,25 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
44183
44185
|
total: totalPages
|
|
44184
44186
|
});
|
|
44185
44187
|
var jumpPageRef = React.useRef(null);
|
|
44188
|
+
var mountedRef = React.useRef(false);
|
|
44186
44189
|
var _onChange = function onChange(action) {
|
|
44187
44190
|
paginationDispatch(action);
|
|
44188
44191
|
};
|
|
44189
44192
|
React.useEffect(function () {
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
|
|
44193
|
-
|
|
44194
|
-
|
|
44193
|
+
if (mountedRef.current) {
|
|
44194
|
+
props.onChange({
|
|
44195
|
+
currentPage: currentPage,
|
|
44196
|
+
step: step,
|
|
44197
|
+
totalPages: totalPages
|
|
44198
|
+
});
|
|
44199
|
+
}
|
|
44195
44200
|
}, [currentPage, step]);
|
|
44201
|
+
React.useEffect(function () {
|
|
44202
|
+
mountedRef.current = true;
|
|
44203
|
+
return function () {
|
|
44204
|
+
mountedRef.current = false;
|
|
44205
|
+
};
|
|
44206
|
+
}, []);
|
|
44196
44207
|
if (loading) {
|
|
44197
44208
|
return null;
|
|
44198
44209
|
}
|