From 3b2372202e64abd715009eb10d5368770433a281 Mon Sep 17 00:00:00 2001 From: qianxiaofendou Date: Tue, 28 Jun 2022 18:28:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20App=E5=A4=9A=E9=A1=B5=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=9D=A2=E5=8C=85=E5=B1=91=E5=BC=80=E5=85=B3?= =?UTF-8?q?=20(#4722)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/App.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/amis/src/renderers/App.tsx b/packages/amis/src/renderers/App.tsx index a6c06bbce..c02398598 100644 --- a/packages/amis/src/renderers/App.tsx +++ b/packages/amis/src/renderers/App.tsx @@ -131,6 +131,10 @@ export interface AppSchema extends BaseSchema { * css 类名。 */ className?: SchemaClassName; + /** + * 显示面包屑路径。 + */ + showBreadcrumb?: boolean; } export interface AppProps @@ -356,7 +360,7 @@ export default class App extends React.Component { } render() { - const {className, size, classnames: cx, store, render} = this.props; + const {className, size, classnames: cx, store, render, showBreadcrumb = true} = this.props; return ( { > {store.activePage && store.schema ? ( <> - {store.bcn.length ? ( + {showBreadcrumb && store.bcn.length ? (
    {store.bcn.map((item: any, index: number) => { return (