mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
feat: App多页应用支持面包屑开关 (#4722)
This commit is contained in:
parent
7f6dbf3f2b
commit
3b2372202e
@ -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<AppProps, object> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const {className, size, classnames: cx, store, render} = this.props;
|
||||
const {className, size, classnames: cx, store, render, showBreadcrumb = true} = this.props;
|
||||
|
||||
return (
|
||||
<Layout
|
||||
@ -368,7 +372,7 @@ export default class App extends React.Component<AppProps, object> {
|
||||
>
|
||||
{store.activePage && store.schema ? (
|
||||
<>
|
||||
{store.bcn.length ? (
|
||||
{showBreadcrumb && store.bcn.length ? (
|
||||
<ul className={cx('AppBcn')}>
|
||||
{store.bcn.map((item: any, index: number) => {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user