功能:适配系统配置移动端

This commit is contained in:
Liu 宇阳
2024-11-11 13:59:08 +08:00
parent 061dd7c139
commit 0a5b00f08f
5 changed files with 7 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ const LayoutPage = () => {
<Spin spinning={loading} indicator={<LoadingOutlined style={{ fontSize: 24 }} spin />}> <Spin spinning={loading} indicator={<LoadingOutlined style={{ fontSize: 24 }} spin />}>
<h2 className="text-xl pb-4 pl-10"></h2> <h2 className="text-xl pb-4 pl-10"></h2>
<div className='w-full lg:w-[500px] ml-10'> <div className='w-full lg:w-[500px] md:ml-10'>
<Divider orientation="left"></Divider> <Divider orientation="left"></Divider>
<div className="mb-8"> <div className="mb-8">
<Input <Input

View File

@@ -48,7 +48,7 @@ const UserPage = () => {
size="large" size="large"
layout="vertical" layout="vertical"
onFinish={onSubmit} onFinish={onSubmit}
className="w-full lg:w-[500px] ml-10" className="w-full lg:w-[500px] md:ml-10"
> >
<Form.Item <Form.Item
label="名称" label="名称"

View File

@@ -1,4 +1,3 @@
import { useState, useRef } from 'react';
import { Form, Input, Button, notification, Modal } from 'antd'; import { Form, Input, Button, notification, Modal } from 'antd';
import { useUserStore } from '@/stores'; import { useUserStore } from '@/stores';
import { editAdminPassAPI } from '@/api/User'; import { editAdminPassAPI } from '@/api/User';
@@ -62,7 +61,7 @@ const SystemPage = () => {
size='large' size='large'
layout="vertical" layout="vertical"
onFinish={handleSubmit} onFinish={handleSubmit}
className="w-full lg:w-[500px] ml-10" className="w-full lg:w-[500px] md:ml-10"
> >
<Form.Item <Form.Item
label="管理员账号" label="管理员账号"

View File

@@ -31,7 +31,7 @@ const WebPage = () => {
layout="vertical" layout="vertical"
onFinish={onSubmit} onFinish={onSubmit}
initialValues={web} initialValues={web}
className="w-full lg:w-[500px] ml-10" className="w-full lg:w-[500px] md:ml-10"
> >
<Form.Item <Form.Item
label="网站名称" label="网站名称"

View File

@@ -50,8 +50,8 @@ const SetupPage = () => {
<Title value="项目配置" /> <Title value="项目配置" />
<Card className='mt-2'> <Card className='mt-2'>
<div className="flex"> <div className="flex flex-col md:flex-row">
<ul className="w-[20%] mr-5 border-r border-[#eee] divide-y divide-solid divide-[#F6F6F6]"> <ul className="w-full md:w-[20%] md:mr-5 mb-10 md:mb-0 border-b md:border-r border-[#eee] divide-y divide-solid divide-[#F6F6F6]">
{list.map((item) => ( {list.map((item) => (
<li <li
key={item.key} key={item.key}
@@ -67,7 +67,7 @@ const SetupPage = () => {
))} ))}
</ul> </ul>
<div className='w-[80%] px-8'> <div className='w-full md:w-[80%] px-0 md:px-8'>
{active === "system" && <System />} {active === "system" && <System />}
{active === "web" && <Web />} {active === "web" && <Web />}
{active === "layout" && <Layout />} {active === "layout" && <Layout />}