Commit f1277649 authored by 陈帅's avatar 陈帅

rm title use layout Title

parent a5be8f5e
......@@ -15,7 +15,7 @@ interface IPageHeaderTabConfig {
interface IPageHeaderWrapperProps extends IPageHeaderTabConfig {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -13,10 +13,7 @@ GGEditor.setTrackable(false);
export default () => {
return (
<PageHeaderWrapper
title="Flowchart Editor"
content="The flow chart is an excellent way to represent the idea of the algorithm."
>
<PageHeaderWrapper content="The flow chart is an excellent way to represent the idea of the algorithm.">
<GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}>
<Col span={24}>
......
......@@ -15,7 +15,7 @@ interface IPageHeaderTabConfig {
interface IPageHeaderWrapperProps extends IPageHeaderTabConfig {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -13,10 +13,7 @@ GGEditor.setTrackable(false);
export default () => {
return (
<PageHeaderWrapper
title="Koni Editor"
content="The topology diagram refers to the network structure diagram composed of network node devices and communication media."
>
<PageHeaderWrapper content="The topology diagram refers to the network structure diagram composed of network node devices and communication media.">
<GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}>
<Col span={24}>
......
......@@ -15,7 +15,7 @@ interface IPageHeaderTabConfig {
interface IPageHeaderWrapperProps extends IPageHeaderTabConfig {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -13,10 +13,7 @@ GGEditor.setTrackable(false);
export default () => {
return (
<PageHeaderWrapper
title="Mind Map Editor"
content="The brain map is an effective graphical thinking tool for expressing divergent thinking. It is simple but effective and is a practical thinking tool."
>
<PageHeaderWrapper content="The brain map is an effective graphical thinking tool for expressing divergent thinking. It is simple but effective and is a practical thinking tool.">
<GGEditor className={styles.editor}>
<Row type="flex" className={styles.editorHd}>
<Col span={24}>
......
......@@ -5,7 +5,7 @@ import styles from './index.less';
interface IPageHeaderWrapperProps {
content: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
}
const PageHeaderWrapper: React.SFC<IPageHeaderWrapperProps> = ({
......
......@@ -71,10 +71,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
};
return (
<PageHeaderWrapper
title={<FormattedMessage id="BLOCK_NAME.basic.title" />}
content={<FormattedMessage id="BLOCK_NAME.basic.description" />}
>
<PageHeaderWrapper content={<FormattedMessage id="BLOCK_NAME.basic.description" />}>
<Card bordered={false}>
<Form onSubmit={this.handleSubmit} hideRequiredMark style={{ marginTop: 8 }}>
<FormItem {...formItemLayout} label={<FormattedMessage id="BLOCK_NAME.title.label" />}>
......
......@@ -6,7 +6,7 @@ import { GridContent } from '@ant-design/pro-layout';
interface IPageHeaderWrapperProps {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -43,10 +43,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
stepComponent = <Step1 />;
}
return (
<PageHeaderWrapper
title="分步表单"
content="将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。"
>
<PageHeaderWrapper content="将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。">
<Card bordered={false}>
<Fragment>
<Steps current={currentStep} className={styles.steps}>
......
......@@ -6,7 +6,7 @@ import { GridContent } from '@ant-design/pro-layout';
interface IPageHeaderWrapperProps {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -88,7 +88,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
);
const nullData = {} as CardListItemDataType;
return (
<PageHeaderWrapper title="卡片列表" content={content} extraContent={extraContent}>
<PageHeaderWrapper content={content} extraContent={extraContent}>
<div className={styles.cardList}>
<List
rowKey="id"
......
......@@ -16,7 +16,7 @@ interface IPageHeaderTabConfig {
interface IPageHeaderWrapperProps extends IPageHeaderTabConfig {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -81,7 +81,6 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<PAGE_NAME_UPPER_CAMEL_CASEPro
return (
<PageHeaderWrapper
title="搜索列表"
content={mainSearch}
tabList={tabList}
tabActiveKey={this.getTabKey()}
......
......@@ -6,7 +6,7 @@ import { GridContent } from '@ant-design/pro-layout';
interface IPageHeaderWrapperProps {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
extraContent?: React.ReactNode;
}
......
......@@ -5,7 +5,7 @@ import styles from './index.less';
interface IPageHeaderWrapperProps {
content?: React.ReactNode;
title: React.ReactNode;
title?: React.ReactNode;
}
const PageHeaderWrapper: React.SFC<IPageHeaderWrapperProps> = ({ children, content, title }) => (
......
......@@ -167,7 +167,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
},
];
return (
<PageHeaderWrapper title="基础详情页">
<PageHeaderWrapper>
<Card bordered={false}>
<DescriptionList size="large" title="退款申请" style={{ marginBottom: 32 }}>
<Description term="取货单号">1000000000</Description>
......
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