Commit f1277649 authored by 陈帅's avatar 陈帅

rm title use layout Title

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