@@ -11,9 +11,9 @@ import Flex from "@pages/components/Flex"
1111import Immigration from "@service/components/immigration"
1212import { exportJson } from "@util/file"
1313import { formatTime } from "@util/time"
14- import { ElAlert , ElButton , ElCard } from "element-plus"
14+ import { ElButton , ElCard } from "element-plus"
1515import { type FunctionalComponent , type StyleValue } from "vue"
16- import { alertProps } from " ../common"
16+ import DataManageAlert from ' ../DataManageAlert'
1717import ImportButton from "./ImportButton"
1818import ImportOtherButton from "./ImportOtherButton"
1919
@@ -26,15 +26,10 @@ async function handleExport() {
2626}
2727
2828const Migration : FunctionalComponent = ( ) => (
29- < ElCard
30- style = { { width : '100%' } satisfies StyleValue }
31- bodyStyle = { { height : '100%' , boxSizing : 'border-box' } as StyleValue }
32- >
33- < Flex justify = "center" height = "100%" align = "center" >
34- < Flex column gap = { 20 } height = "100%" maxWidth = { 190 } flex = { 3 } >
35- < ElAlert style = { { flex : 1 } } { ...alertProps } >
36- { t ( msg => msg . dataManage . migrationAlert ) }
37- </ ElAlert >
29+ < ElCard style = { { width : '100%' } satisfies StyleValue } >
30+ < Flex column gap = { 20 } justify = "center" height = "100%" align = "center" >
31+ < DataManageAlert text = { msg => msg . dataManage . migrationAlert } />
32+ < Flex column gap = { 20 } maxWidth = { 350 } flex = { 1 } >
3833 < ElButton
3934 size = "large"
4035 type = "success"
0 commit comments