-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
chore: Input mini #1137
chore: Input mini #1137
Conversation
Someone is attempting to deploy a commit to the ZhongAnTech Team on Vercel. A member of the Team first needs to authorize it. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #1137 +/- ##
==========================================
- Coverage 86.11% 85.18% -0.93%
==========================================
Files 244 247 +3
Lines 5559 5622 +63
Branches 1315 1342 +27
==========================================
+ Hits 4787 4789 +2
- Misses 766 827 +61
Partials 6 6
☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const { | ||
type, | ||
disabled, | ||
autoFocus, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原生的 autoFocus 属性即将过期,做个映射吧
|
||
export type InputBaseProps = InputTextProps | InputTextareaProps; | ||
|
||
const baseSize = 22; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里能不写死吗?和css变量结合
b8618de
to
6e9fb76
Compare
先看下API 设计,input type 添加一个 textArea,因为小程序不支持rows 属性, 如果用rows 属性判断是否是textArea ,但是rows 不起作用,会有歧义, 另外 input 小程序 没有
ref
的 focus, 因为没有小程序ref 获得不是dom 对象.