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

[DatePicker]datepicker.rangepicker支持定制placeholder #1610

Closed
csr632 opened this issue Feb 27, 2020 · 2 comments
Closed

[DatePicker]datepicker.rangepicker支持定制placeholder #1610

csr632 opened this issue Feb 27, 2020 · 2 comments
Assignees

Comments

@csr632
Copy link
Member

csr632 commented Feb 27, 2020

Component

DatePicker

Steps to reproduce

其他picker都支持placeholder,唯独rangepicker不支持,可能因为rangepicker里面有2个picker。

希望rangepicker能支持2个定制placeholder。或者透传props给子picker。

@csr632
Copy link
Member Author

csr632 commented Feb 27, 2020

目前只能通过locale来控制这个文案。

@youluna
Copy link
Member

youluna commented Feb 27, 2020

placeholder={locale.startPlaceholder}

需要定下rangepicker的placeholder规则,因为有两个输入框是个数组

@youluna youluna closed this as completed in 1f7f8eb Mar 2, 2020
youluna added a commit that referenced this issue Mar 2, 2020
fix(DatePicker): support placeholder prop for range-picker fix #1610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants