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

feat(component): search input support text wrap #169

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

mortalYoung
Copy link
Collaborator

简介

  • 搜索框支持文字换行

主要变更

  • 用原生的 textarea 组件代替 input 组件,并优化其样式,使得样式上 mock input
  • 监听 onChange 事件,判断输入框的高度是否能够展示全部的值,如果无法展示,则动态改变输入框的高度,实现 text wrap
  • 同时优化 scorllbar 的样式,不过目前只用 css 的方式简单的处理掉 scrollbar,如果想要一劳永逸的话,考虑 mock scorllbar

@wewoor wewoor merged commit 0052f52 into main Jun 7, 2021
@wewoor wewoor deleted the feat/search branch June 7, 2021 07:20
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

Successfully merging this pull request may close these issues.

2 participants