refactor: 拆分管理端入口并优化构建分包
This commit is contained in:
1 parent
0f6ad8b993
commit
bf4bbf81c7
17 files changed
+455
-353
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { AdminCard } from "./AdminCard.js";
|
||||
import { AdminSkeleton } from "./AdminSkeleton.js";
|
||||
|
||||
export function LoadingStack({ rows = 3 }: { rows?: number }) {
|
||||
return (
|
||||
<div className="admin-loading-stack">
|
||||
<AdminCard>
|
||||
<AdminSkeleton active paragraph={{ rows: 2 }} title={false} />
|
||||
</AdminCard>
|
||||
{Array.from({ length: rows }).map((_, index) => (
|
||||
<AdminCard key={index}>
|
||||
<AdminSkeleton active paragraph={{ rows: 1 }} title={false} />
|
||||
</AdminCard>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user