-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(number-input): 新增前缀后缀内容扩展(#2906)
* feat(number-input): 新增前缀后缀内容扩展(#2906) * chore: 生成变更记录文件 * fix(number-input): 修改前缀样式(#2906) * fix(number-input): 修改前缀左边距(#2906) --------- Co-authored-by: yangxuexue <[email protected]>
- Loading branch information
Showing
6 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@hi-ui/hiui": patch | ||
--- | ||
|
||
feat(number-input): 新增前缀后缀内容扩展 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@hi-ui/number-input": minor | ||
--- | ||
|
||
feat: 新增前缀后缀内容扩展 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react' | ||
import NumberInput from '../src' | ||
import { AppStoreOutlined } from '@hi-ui/icons' | ||
|
||
/** | ||
* @title 前缀后缀内容扩展 | ||
*/ | ||
export const Addon = () => { | ||
return ( | ||
<> | ||
<h1>NumberInput</h1> | ||
<div className="NumberInput-addon__wrap"> | ||
<NumberInput | ||
autoFocus | ||
defaultValue={5} | ||
min={1} | ||
placeholder="请输入数字" | ||
onChange={(v) => console.log('onChange', v)} | ||
prefix={<AppStoreOutlined />} | ||
/> | ||
</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters