-
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(time-picker): 新增前缀后缀内容扩展(#2903)
* feat(time-picker): 新增前置后置内容扩展(#2903) * chore: 生成变更记录文件 * fix(time-picker): 修改变更记录格式规范(#2903) * fix(time-picker): 修改行内样式为class样式(#2093) * fix(time-picker): 修改前缀样式(#2903) * fix(time-picker): 修改前缀样式(#2903) * fix(time-picker): 修改前缀左间距(#2903) --------- Co-authored-by: yangxuexue <yangxuexue@xiaomi.com>
- Loading branch information
Showing
6 changed files
with
54 additions
and
0 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/time-picker": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@hi-ui/hiui": patch | ||
--- | ||
|
||
feat(time-picker): 新增前缀后缀内容扩展 |
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,27 @@ | ||
import React, { useState } from 'react' | ||
import TimePicker from '../src' | ||
import { AppStoreOutlined } from '@hi-ui/icons' | ||
|
||
/** | ||
* @title 前置后置内容扩展 | ||
*/ | ||
export const Addon = () => { | ||
const [addonValue, setAddonValue] = useState<string | string[]>(['12:00:00']) | ||
|
||
return ( | ||
<> | ||
<h1>Addon</h1> | ||
<div className="time-picker-addon__wrap"> | ||
<TimePicker | ||
placeholder={['请选择时间']} | ||
value={addonValue} | ||
onChange={(e) => { | ||
console.log('basic-default', e) | ||
setAddonValue(e) | ||
}} | ||
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