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

[Textarea] Textarea 组件希望增加前置图标 #2695

Closed
synctimes163 opened this issue Apr 15, 2024 · 3 comments
Closed

[Textarea] Textarea 组件希望增加前置图标 #2695

synctimes163 opened this issue Apr 15, 2024 · 3 comments
Labels
question This is a question, not a bug

Comments

@synctimes163
Copy link

这个功能解决了什么问题

image
开发过程中,遇到这种布局UI需求

你建议的方案是什么

可以解决快速配置退保功能

Copy link
Contributor

👋 @synctimes163,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Apr 15, 2024

@synctimes163 可以考虑先用label插槽实现,外部样式类调整样式细节

<t-textarea
  t-class="external-class"
  t-class-label="external-class-label"
  placeholder="请输入文字"
  disableDefaultPadding="{{true}}"
>
  <t-icon slot="label" name="app" size="36rpx" />
</t-textarea>

.external-class {
  height: 256rpx;
  display: flex !important;
  flex-direction: row !important;
}

.external-class-label {
  margin-right: 16rpx;
}

@anlyyao anlyyao added enhancement New feature or request question This is a question, not a bug and removed enhancement New feature or request labels Apr 15, 2024
@synctimes163
Copy link
Author

textarea placeholder 里面能否自定义图标呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

4 participants