Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form-input 组件怎么设置只读模式 #1127

Closed
lff2018 opened this issue Mar 29, 2024 · 1 comment
Closed

form-input 组件怎么设置只读模式 #1127

lff2018 opened this issue Mar 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lff2018
Copy link

lff2018 commented Mar 29, 2024

  1. form-input 组件怎么设置只读模式
  2. 如果添加disabled禁用 css怎么设置默认样式呢

期望

可以设置只读模式 或者 设置disabled的默认样式

思路

修改了disabled的默认样式,但是没生效
.ant-input-disabled {
opacity: 1;
color: #2B2B2B;
}

@lff2018 lff2018 added the enhancement New feature or request label Mar 29, 2024
@rayhomie
Copy link
Collaborator

rayhomie commented Apr 7, 2024

我在demo中通过样式覆盖是可以实现对应的效果的

image

@rayhomie rayhomie closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants