feat(PasswordInput): add password-input-text-color css var (#9304)

This commit is contained in:
neverland 2021-08-22 15:54:36 +08:00 committed by GitHub
parent 152b220d55
commit 5a93179b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - |
| --van-password-input-dot-size | _10px_ | - |
| --van-password-input-dot-color | _var(--van-black)_ | - |
| --van-password-input-text-color | _var(--van-text-color)_ | - |
| --van-password-input-cursor-color | _var(--van-text-color)_ | - |
| --van-password-input-cursor-width | _1px_ | - |
| --van-password-input-cursor-height | _40%_ | - |

View File

@ -174,6 +174,7 @@ export default {
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - |
| --van-password-input-dot-size | _10px_ | - |
| --van-password-input-dot-color | _var(--van-black)_ | - |
| --van-password-input-text-color | _var(--van-text-color)_ | - |
| --van-password-input-cursor-color | _var(--van-text-color)_ | - |
| --van-password-input-cursor-width | _1px_ | - |
| --van-password-input-cursor-height | _40%_ | - |

View File

@ -11,6 +11,7 @@
--van-password-input-error-info-color: @password-input-error-info-color;
--van-password-input-dot-size: @password-input-dot-size;
--van-password-input-dot-color: @password-input-dot-color;
--van-password-input-text-color: @password-input-text-color;
--van-password-input-cursor-color: @password-input-cursor-color;
--van-password-input-cursor-width: @password-input-cursor-width;
--van-password-input-cursor-height: @password-input-cursor-height;
@ -54,6 +55,7 @@
align-items: center;
justify-content: center;
height: 100%;
color: var(--van-password-input-text-color);
font-size: var(--van-password-input-font-size);
line-height: 1.2;
background-color: var(--van-password-input-background-color);

View File

@ -10,6 +10,7 @@
@password-input-error-info-color: var(--van-danger-color);
@password-input-dot-size: 10px;
@password-input-dot-color: var(--van-black);
@password-input-text-color: var(--van-text-color);
@password-input-cursor-color: var(--van-text-color);
@password-input-cursor-width: 1px;
@password-input-cursor-height: 40%;