feat: into

This commit is contained in:
2025-09-15 13:50:04 +08:00
parent a84d634949
commit 042f8c31a2
11 changed files with 294 additions and 36 deletions

View File

@@ -10,6 +10,7 @@ import archivesBottomPng from "@/assets/translate/archives-bottom.png";
import archivesCardPng from "@/assets/translate/archives-card.png";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { Outlet } from "react-router-dom"; // 添加这行
import { Image, Space } from "antd-mobile";
import { ListView, More, AddOne, AlignHorizontalCenterTwo } from "@icon-park/react";
@@ -24,7 +25,7 @@ function Index() {
};
const right = (
<div style={{ fontSize: 24 }}>
<div style={{ fontSize: 16 }}>
<Space style={{ "--gap": "16px" }}>
{listShow ? (
<AlignHorizontalCenterTwo onClick={() => setListShow(false)} fill="#333" />
@@ -32,7 +33,7 @@ function Index() {
<ListView onClick={() => setListShow(true)} fill="#333" />
)}
<AddOne onClick={() => onLink("/translate/archives/add")} fill="#333" />
<AddOne onClick={() => onLink("/translate/addArchives?flag=add")} fill="#333" />
<More fill="#333" />
</Space>
</div>
@@ -54,7 +55,11 @@ function Index() {
</div>
<div className={styles.archives}>
<Image src={archivesPicturePng}></Image>
<Image className={styles.img} src={archivesDataPng}></Image>
<Image
onClick={() => onLink("/translate/addArchives?flag=edit")}
className={styles.img}
src={archivesDataPng}
></Image>
<Image className={styles.img} src={archivesEquipmentPng}></Image>
<Image className={styles.img} src={archivesSwPng}></Image>
<Image className={styles.img} src={archivesFunctionPng}></Image>
@@ -62,6 +67,7 @@ function Index() {
</div>
</>
)}
<Outlet /> {/* 添加这行 */}
</MainLayout>
);
}