一点点优化

This commit is contained in:
sijinhui 2024-04-22 17:49:53 +08:00
parent 9286624ea2
commit ff7ecbf3b9
2 changed files with 19 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import {
Button, Button,
notification, notification,
Popconfirm, Popconfirm,
Checkbox,
} from "antd"; } from "antd";
import type { GetRef, TableColumnsType } from "antd"; import type { GetRef, TableColumnsType } from "antd";
// import { headers } from 'next/headers' // import { headers } from 'next/headers'
@ -187,6 +188,18 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
dataIndex: "updatedAt", dataIndex: "updatedAt",
render: (value) => getCurrentTime(new Date(value)), render: (value) => getCurrentTime(new Date(value)),
}, },
{
title: "allowToLogin",
dataIndex: "allowToLogin",
width: 120,
render: (value) => {
return (
<div>
<Checkbox defaultChecked={value} disabled></Checkbox>
</div>
);
},
},
{ {
title: "Action", title: "Action",
dataIndex: "", dataIndex: "",
@ -195,7 +208,8 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
<Space size="middle"> <Space size="middle">
{contextHolder} {contextHolder}
<Popconfirm <Popconfirm
title="输入新密码" id="user-admin-table-pop_confirm"
title="设置密码"
description={ description={
<> <>
<Input.Password <Input.Password

View File

@ -95,3 +95,7 @@ input {
#login-form input:-webkit-autofill { #login-form input:-webkit-autofill {
transition: background-color 5000s ease-in-out 0s; transition: background-color 5000s ease-in-out 0s;
} }
#user-admin-table-pop_confirm input:-webkit-autofill {
transition: background-color 5000s ease-in-out 0s;
}