Commit 32893082 authored by 卢均锐's avatar 卢均锐

feat: 修改detaillayout

parent 3603796b
......@@ -14,7 +14,7 @@ export type tabLink = {
export interface IProps {
/** 单号 */
no?: string,
no?: string | React.ReactNode,
/** 详情描述 */
detail?: string,
/** 锚点Link */
......@@ -23,6 +23,8 @@ export interface IProps {
effect?: React.ReactNode,
/** 页面的组件 */
components?: React.ReactNode,
/** 隐藏头部分割线 */
hideBreak?: boolean
}
const PeripheralLayout: React.FC<IProps> = (props: any) => {
......@@ -32,6 +34,7 @@ const PeripheralLayout: React.FC<IProps> = (props: any) => {
tabLink,
effect,
components,
hideBreak
} = props;
const dataSource = useContext(Context)
......@@ -71,7 +74,7 @@ const PeripheralLayout: React.FC<IProps> = (props: any) => {
<ArrowLeftOutlined className={style.goBack} onClick={() => history.goBack()} />
<span className={style.titleContext}>
{detail ? detail : dataSource.details}
&nbsp;|&nbsp;
&nbsp;{!hideBreak && '|'}&nbsp;
{no}
</span>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment