调整布局

This commit is contained in:
Liu 宇阳
2024-11-04 13:57:35 +08:00
parent 5d2e920d57
commit d310afb0ac
3 changed files with 10 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ const CatePage = () => {
const submit = async () => {
form.validateFields().then(async (values: Cate) => {
if (values.type === "cate") values.url = '/'
if (isMethod === "edit") {
await editCateDataAPI({ ...cate, ...values });
message.success('🎉 修改分类成功');
@@ -126,13 +126,11 @@ const CatePage = () => {
return (
<>
<Title value="分类管理" />
<Title value="分类管理">
<Button type="primary" onClick={() => addCateData(0)}></Button>
</Title>
<Card className={`CatePage [&>.ant-card-body]:!p-2 [&>.ant-card-body]:!pb-6 mt-2`}>
<div className='my-2 text-center'>
<Button type="primary" onClick={() => addCateData(0)}></Button>
</div>
<Spin spinning={loading}>
<Tree defaultExpandAll={true} treeData={treeData(list)} />
</Spin>

View File

@@ -152,10 +152,10 @@ const CreatePage = () => {
return (
<>
<Title value="创作">
<div className='flex space-x-4'>
<Dropdown.Button size='large' menu={{ items }}></Dropdown.Button>
<div className='flex items-center space-x-4'>
<Dropdown.Button menu={{ items }}></Dropdown.Button>
<Button size='large' className='w-full flex justify-between' onClick={saveBtn} >
<Button className='w-full flex justify-between' onClick={saveBtn} >
<BiSave className='text-base' />
</Button>

View File

@@ -159,7 +159,9 @@ const FootprintPage = () => {
return (
<>
<Title value="足迹管理" />
<Title value="足迹管理">
<Button type="primary" onClick={addFootprintData}></Button>
</Title>
<Card className='my-2 overflow-scroll'>
<div className='flex'>
@@ -176,8 +178,6 @@ const FootprintPage = () => {
<Button type="primary" htmlType="submit"></Button>
</Form.Item>
</Form>
<Button type="primary" onClick={addFootprintData}></Button>
</div>
</Card>