@easyv/react-components 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Input/interface.d.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InputProps } from '@arco-design/web-react';
|
|
2
|
+
import type { InputSearchProps, RefInputType, RefTextAreaType, TextAreaProps } from '@arco-design/web-react/es/Input';
|
|
3
|
+
interface BaseInputProps {
|
|
4
|
+
/** 显示边框 */
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
/** 是否失去焦点时,触发 onChange 事件 */
|
|
7
|
+
changeOnBlur?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface XInputProps extends InputProps, BaseInputProps {
|
|
10
|
+
/** 是否允许文本为空 */
|
|
11
|
+
enableEmpty?: boolean;
|
|
12
|
+
/** 是否聚焦后自动选中输入框的文本 */
|
|
13
|
+
autoSelect?: boolean;
|
|
14
|
+
onChange?: (value: string, e: any) => void;
|
|
15
|
+
}
|
|
16
|
+
interface XInputSearchProps extends InputSearchProps, BaseInputProps {
|
|
17
|
+
}
|
|
18
|
+
interface XTextAreaProps extends TextAreaProps, BaseInputProps {
|
|
19
|
+
}
|
|
20
|
+
export type { XInputProps as InputProps, XInputSearchProps as InputSearchProps, RefInputType, RefTextAreaType, XTextAreaProps as TextAreaProps, };
|