@flatbiz/pro-layout 5.2.12 → 5.2.13

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/index.d.ts CHANGED
@@ -309,7 +309,7 @@ export type BootstrapOptions = {
309
309
  */
310
310
  accountOperateMenuItems?: MenuProps["items"];
311
311
  /** 面包屑起始标题 */
312
- breadTitle?: string | ReactElement;
312
+ breadTitle?: string | string[] | ReactElement;
313
313
  /** 面包屑位置功能扩展 */
314
314
  breadExtendRender?: ReactElement;
315
315
  /** 隐藏默认设置的面包屑,默认值false */
package/dist/index.js CHANGED
@@ -866,9 +866,14 @@ var Bread = function Bread(props) {
866
866
  var globalData = getGlobalData();
867
867
  var breadRoutes = useBread(ctx.breads || {}, globalData.routeBaseName);
868
868
  var breadcrumbItems = useMemo(function () {
869
- var items = ctx.breadTitle ? [{
869
+ var titleItems = Array.isArray(ctx.breadTitle) ? ctx.breadTitle.map(function (title) {
870
+ return {
871
+ title: title
872
+ };
873
+ }) : ctx.breadTitle ? [{
870
874
  title: ctx.breadTitle
871
875
  }] : [];
876
+ var items = _toConsumableArray(titleItems);
872
877
  var routes = breadRoutes.sort(function (a, b) {
873
878
  return a.path.length - b.path.length;
874
879
  });