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 ? (