refactor(Input): 调整 InputProps 接口定义
- 移除了 InputProps 接口中不必要的 JSX.HTMLAttributes<HTMLInputElement> 继承 - 这个改动可以简化接口定义,提高代码可读性
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user