shaogen1995 2 years ago
parent
commit
c2dcda8064
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/AuthButton/index.tsx

+ 2 - 2
src/components/AuthButton/index.tsx

@@ -9,11 +9,11 @@ type Props = {
   danger?: boolean; //设置危险按钮
   block?: boolean; //将按钮宽度调整为其父宽度的选项
   disabled?: boolean; //设置按钮失效状态
-  ghost?: boolean; //ghost
+  ghost?: boolean; //幽灵属性,使按钮背景透明
   href?: string; //点击跳转的地址,指定此属性 button 的行为和 a 链接一致
   htmlType?: "button" | "submit" | "reset" | undefined; //设置 button 原生的 type 值,可选值请参考 HTML 标准
   icon?: ReactNode; //设置按钮的图标组件
-  loading?: boolean; //设置按钮载入状态
+  loading?: boolean | { delay: number }; //设置按钮载入状态
   shape?: "default" | "circle" | "round"; //设置按钮形状
   size?: "large" | "middle" | "small"; //设置按钮大小
   target?: string; //相当于 a 链接的 target 属性,href 存在时生效