fix: 清理后台开发态 React 警告

This commit is contained in:
que01 committed 2026-10-23 14:25:56 +08:00
1 parent 3af5611da5
commit 34504c0b44
8 files changed
+42 -9

No files matched your search

@@ -27,7 +27,21 @@ const element = (tag) =>
export const View = element("div");
export const Text = element("span");
export const Button = element("button");
export const Button = React.forwardRef(
({ children, className, style, onClick, loading, ...props }, ref) =>
React.createElement(
"button",
{
...props,
ref,
className,
style,
onClick,
...(loading ? { "aria-busy": "true" } : {}),
},
children,
),
);
export const Input = React.forwardRef(({ onInput, ...props }, ref) =>
React.createElement("input", {
...props,