feat: refactor select model

This commit is contained in:
butterfly
2024-04-29 16:29:47 +08:00
parent c34b8ab919
commit 8c28c408d8
18 changed files with 501 additions and 239 deletions

View File

@@ -2,7 +2,7 @@ import * as React from "react";
export type ButtonType = "primary" | "danger" | null;
export default function Btn(props: {
export interface BtnProps {
onClick?: () => void;
icon?: JSX.Element;
type?: ButtonType;
@@ -14,7 +14,9 @@ export default function Btn(props: {
disabled?: boolean;
tabIndex?: number;
autoFocus?: boolean;
}) {
}
export default function Btn(props: BtnProps) {
const {
onClick,
icon,