refactor(Input): 调整 InputProps 接口定义

- 移除了 InputProps 接口中不必要的 JSX.HTMLAttributes<HTMLInputElement> 继承
- 这个改动可以简化接口定义,提高代码可读性
This commit is contained in:
Vixalie
2025-08-22 10:12:28 +08:00
parent 4b394f8143
commit dd4d9b67ee

View File

@@ -2,7 +2,7 @@ import cx from 'clsx';
import { isNotNil } from 'es-toolkit'; import { isNotNil } from 'es-toolkit';
import { Component, createEffect, createSignal, JSX, mergeProps, onMount, Show } from 'solid-js'; import { Component, createEffect, createSignal, JSX, mergeProps, onMount, Show } from 'solid-js';
interface InputProps extends JSX.HTMLAttributes<HTMLInputElement> { interface InputProps {
name?: string; name?: string;
variant?: 'normal' | 'underlined' | 'immersive'; variant?: 'normal' | 'underlined' | 'immersive';
left?: JSX.Element; left?: JSX.Element;