From 0958b9ee12ab9cae387eb595ca0aa30c591c97db Mon Sep 17 00:00:00 2001 From: lyf <1910527151@qq.com> Date: Thu, 8 Aug 2024 13:08:56 +0800 Subject: [PATCH] tsxiugai --- app/components/ui-lib.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index 88b68d72f..fd78f9c47 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -265,16 +265,9 @@ export function Input(props: InputProps) { ); } -// 定义一个接口 AriaProps,包含一个可选的 aria 属性 -interface AriaProps { - aria?: string; -} - -// 定义一个接口 PasswordInputProps,继承自 HTMLProps 和 AriaProps -// 用于描述密码输入框组件的属性 -interface PasswordInputProps extends HTMLProps, AriaProps {} - -export function PasswordInput(props: PasswordInputProps) { +export function PasswordInput( + props: HTMLProps & { aria?: string }, +) { const [visible, setVisible] = useState(false); function changeVisibility() { setVisible(!visible);