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(input): adds inside-label prop #4086

Closed

Conversation

tiny-dust
Copy link
Contributor

@tiny-dust tiny-dust commented Nov 24, 2022

改动原因

看到苹果或者小米这类的官网,登录的输入框效果和其他的不太一样,所以尝试新增一个属性来实现

改动说明:

  • 新增属性inside-label,类型为string
  • 输入框聚焦时,label文本会上移到左上方
  • 可以支持清除
  • 不支持前缀插槽

如果能过,后续可能会补充到form中去。

修改后效果如下
image
7178e9b8d62d46d7c4bea534baa93c5f_0_1669285324 (1)

@vercel
Copy link

vercel bot commented Nov 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
naive-ui ✅ Ready (Inspect) Visit Preview Nov 29, 2022 at 9:58AM (UTC)

@tiny-dust tiny-dust changed the title feat(input): adds count-graphemes prop. feat(input): adds inside-label prop Nov 24, 2022
@tiny-dust tiny-dust temporarily deployed to test November 24, 2022 10:51 Inactive
@tiny-dust tiny-dust temporarily deployed to test November 24, 2022 10:51 Inactive
@tiny-dust tiny-dust temporarily deployed to test November 29, 2022 09:46 Inactive
@tiny-dust tiny-dust temporarily deployed to test November 29, 2022 09:46 Inactive
@tiny-dust tiny-dust temporarily deployed to test November 29, 2022 09:47 Inactive
@tiny-dust tiny-dust temporarily deployed to test November 29, 2022 09:47 Inactive
@07akioni
Copy link
Collaborator

这个场景有点太特化了,暂时不考虑

@tiny-dust
Copy link
Contributor Author

这个场景有点太特化了,暂时不考虑

好滴

@tiny-dust tiny-dust closed this Dec 12, 2022
@tiny-dust tiny-dust deleted the feat-input-add-inside-label branch December 12, 2022 06:42
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.

None yet

2 participants