-
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.
Browse files
Browse the repository at this point in the history
fix(textarea): 禁用状态背景色改为G10 (#2637)
- Loading branch information
Showing
5 changed files
with
115 additions
and
57 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/textarea": patch | ||
--- | ||
|
||
fix: 修复禁用状态背景色问题 |
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 | ||
--- | ||
|
||
Textarea fix: 修复禁用状态背景色问题 |
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,47 @@ | ||
import React from 'react' | ||
import TextArea from '../src' | ||
|
||
/** | ||
* @title 禁用状态 | ||
*/ | ||
export const Disabled = () => { | ||
return ( | ||
<> | ||
<h1>Disabled</h1> | ||
<div className="textarea-disabled__wrap"> | ||
<h2>普通</h2> | ||
<div> | ||
<TextArea appearance="line" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea appearance="unset" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea appearance="filled" disabled placeholder="请输入"></TextArea> | ||
</div> | ||
<br /> | ||
<h2>Invalid</h2> | ||
<div> | ||
<TextArea invalid appearance="line" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea invalid appearance="unset" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea invalid appearance="filled" disabled placeholder="请输入"></TextArea> | ||
</div> | ||
<br /> | ||
<h2>有值</h2> | ||
<div> | ||
<TextArea value="输入值" appearance="line" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea value="输入值" appearance="unset" disabled placeholder="请输入"></TextArea> | ||
<br /> | ||
<br /> | ||
<TextArea value="输入值" appearance="filled" disabled placeholder="请输入"></TextArea> | ||
</div> | ||
</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