Skip to content

Commit

Permalink
Add hideBreadcrumb option to Form config
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Jan 31, 2024
1 parent fd4b21b commit 7278097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/xgen/components/base/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ const Index = (props: Component.FormComponent) => {
<Page className={clsx([styles._local, 'w_100'])} title={title} full={x.setting?.config?.full}>
<div className='flex relative'>
<div className='w_100 flex flex_column'>
<Breadcrumb {...props_breadcrumb}></Breadcrumb>
{!x.setting?.config?.hideBreadcrumb && (
<Breadcrumb {...props_breadcrumb}></Breadcrumb>
)}
<div
className={clsx([is_fullscreen && styles.fullscreen, 'w_100'])}
ref={ref_container}
Expand Down
1 change: 1 addition & 0 deletions packages/xgen/types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export declare namespace FormType {
form: Common.EditFields
}
config?: Common.Config & {
hideBreadcrumb?: boolean
showAnchor?: boolean
viewTitle?: string
editTitle?: string
Expand Down

0 comments on commit 7278097

Please sign in to comment.