|
|
@ -74,19 +74,29 @@ const TemplateList = ({ |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div style={{ flex: 1, overflow: "auto", padding: "0 16px" }}> |
|
|
<div |
|
|
<Table |
|
|
style={{ |
|
|
dataSource={tempListData} |
|
|
flex: 1, |
|
|
columns={tempColumns} |
|
|
minHeight: 0, |
|
|
pagination={false} |
|
|
display: "flex", |
|
|
size="small" |
|
|
flexDirection: "column", |
|
|
style={{ height: "100%" }} |
|
|
padding: "0 16px", |
|
|
showHeader={false} |
|
|
overflow: "hidden", |
|
|
/> |
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<div style={{ flex: 1, minHeight: 0, overflowY: "auto" }}> |
|
|
|
|
|
<Table |
|
|
|
|
|
dataSource={tempListData} |
|
|
|
|
|
columns={tempColumns} |
|
|
|
|
|
pagination={false} |
|
|
|
|
|
size="small" |
|
|
|
|
|
showHeader={false} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
{tempListData.length < 3 && ( |
|
|
{tempListData.length < 3 && ( |
|
|
<Button |
|
|
<Button |
|
|
type="primary" |
|
|
type="primary" |
|
|
style={{ marginTop: "16px", width: "100%" }} |
|
|
style={{ margin: "16px 0", width: "100%", flexShrink: 0 }} |
|
|
onClick={onAddTemplate} |
|
|
onClick={onAddTemplate} |
|
|
> |
|
|
> |
|
|
添加新模板 |
|
|
添加新模板 |
|
|
|