Skip to content

Commit

Permalink
feat(package):删除了antd库
Browse files Browse the repository at this point in the history
  • Loading branch information
Lackiii committed Apr 3, 2024
1 parent 783bbdf commit 4b0aa82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@trpc/react-query": "next",
"@trpc/server": "next",
"@unocss/reset": "^0.58.7",
"antd": "^5.16.0",
"drizzle-orm": "^0.29.4",
"next": "^14.1.3",
"postgres": "^3.4.3",
Expand Down
14 changes: 0 additions & 14 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";
import React, { useState } from "react";
import { Modal, Button } from "antd"; // 从 Ant Design 中导入 Modal 和 Button 组件
import Image from "next/image";

const Login = () => {
Expand Down Expand Up @@ -58,19 +57,6 @@ const Login = () => {
</div>
</div>

{/* Ant Design 的 Modal */}
<Modal
title="微信登录" // 模态框标题
visible={modalVisible} // 控制模态框的可见性
onCancel={handleCancel} // 处理取消/关闭的函数
footer={[ // 底部按钮
<Button key="cancel" onClick={handleCancel}>取消</Button>, // 取消按钮
<Button key="submit" type="primary" onClick={handleCancel}>确定</Button>, // 确定按钮
]}
>
{/* 模态框内容 */}
<p>这是微信登录的模态框内容。</p>
</Modal>
</div>
);
}
Expand Down

0 comments on commit 4b0aa82

Please sign in to comment.