@sheinx/base 3.8.7-beta.2 → 3.8.7-beta.4
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/cjs/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb-item.js +9 -1
- package/cjs/breadcrumb/breadcrumb.js +1 -1
- package/esm/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb-item.js +9 -1
- package/esm/breadcrumb/breadcrumb.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAqB,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG9F,UAAU,mBAAmB,CAAC,IAAI,GAAG,kBAAkB;IACrD,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,cAAc,qGAAmG,
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAqB,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG9F,UAAU,mBAAmB,CAAC,IAAI,GAAG,kBAAkB;IACrD,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,cAAc,qGAAmG,SAsDtH,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -68,7 +68,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
if (renderItem) {
|
|
71
|
-
|
|
71
|
+
if (max !== undefined) {
|
|
72
|
+
item = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
73
|
+
className: contentClass,
|
|
74
|
+
ref: contentRef,
|
|
75
|
+
children: renderItem(dataItem)
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
return renderItem(dataItem);
|
|
79
|
+
}
|
|
72
80
|
}
|
|
73
81
|
if (isOverflow && d.title && max !== undefined) {
|
|
74
82
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.default, {
|
|
@@ -88,7 +88,7 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
88
88
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
89
89
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_breadcrumbItem.default, {
|
|
90
90
|
dataItem: d,
|
|
91
|
-
renderItem: renderItem,
|
|
91
|
+
renderItem: props.renderItem,
|
|
92
92
|
jssStyle: props.jssStyle,
|
|
93
93
|
max: maxCount
|
|
94
94
|
}), !isLastItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAqB,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG9F,UAAU,mBAAmB,CAAC,IAAI,GAAG,kBAAkB;IACrD,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,cAAc,qGAAmG,
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAqB,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG9F,UAAU,mBAAmB,CAAC,IAAI,GAAG,kBAAkB;IACrD,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,cAAc,qGAAmG,SAsDtH,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -61,7 +61,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (renderItem) {
|
|
64
|
-
|
|
64
|
+
if (max !== undefined) {
|
|
65
|
+
item = /*#__PURE__*/_jsx("span", {
|
|
66
|
+
className: contentClass,
|
|
67
|
+
ref: contentRef,
|
|
68
|
+
children: renderItem(dataItem)
|
|
69
|
+
});
|
|
70
|
+
} else {
|
|
71
|
+
return renderItem(dataItem);
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
if (isOverflow && d.title && max !== undefined) {
|
|
67
75
|
return /*#__PURE__*/_jsx(Tooltip, {
|
|
@@ -82,7 +82,7 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
82
82
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
83
83
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/_jsx(BreadcrumbItem, {
|
|
84
84
|
dataItem: d,
|
|
85
|
-
renderItem: renderItem,
|
|
85
|
+
renderItem: props.renderItem,
|
|
86
86
|
jssStyle: props.jssStyle,
|
|
87
87
|
max: maxCount
|
|
88
88
|
}), !isLastItem && /*#__PURE__*/_jsx("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.8.7-beta.
|
|
3
|
+
"version": "3.8.7-beta.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.8.7-beta.
|
|
13
|
+
"@sheinx/hooks": "3.8.7-beta.4",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|