@hi-ui/input 4.0.0-beta.14 → 4.0.0-beta.15

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { HiBaseAppearanceEnum, HiBaseHTMLFieldProps } from '@hi-ui/core';
2
+ import { HiBaseHTMLFieldProps } from '@hi-ui/core';
3
+ import { InputAppearanceEnum } from './types';
3
4
  /**
4
5
  * 输入框
5
6
  *
@@ -76,7 +77,7 @@ export interface InputProps extends HiBaseHTMLFieldProps<'input'> {
76
77
  * 设置展现形式
77
78
  * 其中 `underline` 内部使用,不对外提供支持(风格去线型化:由线性过渡到面性)
78
79
  */
79
- appearance?: HiBaseAppearanceEnum | 'underline';
80
+ appearance?: InputAppearanceEnum;
80
81
  /**
81
82
  * 设置尺寸
82
83
  */
@@ -0,0 +1,2 @@
1
+ import { HiBaseAppearanceEnum } from '@hi-ui/core';
2
+ export declare type InputAppearanceEnum = HiBaseAppearanceEnum | 'underline';
@@ -47,7 +47,7 @@ export interface UseInputProps {
47
47
  */
48
48
  maxLength?: number;
49
49
  /**
50
- * 再失焦时触发对值的 trim onChange 给用户
50
+ * 在失焦时触发对值的 trim 并触发 onChange 回调
51
51
  */
52
52
  trimValueOnBlur?: boolean;
53
53
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/input",
3
- "version": "4.0.0-beta.14",
3
+ "version": "4.0.0-beta.15",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HIUI <mi-hiui@xiaomi.com>",
@@ -62,5 +62,5 @@
62
62
  "react": "^17.0.1",
63
63
  "react-dom": "^17.0.1"
64
64
  },
65
- "gitHead": "7f47840510e6dfce429eeed1591c154e321cd14f"
65
+ "gitHead": "64cc3305632f0d88f852f4a95cba7c27ff388a2d"
66
66
  }