调整布局
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user