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 ] 自动增高问题 #3512

Open
wanhuihan opened this issue Mar 5, 2025 · 2 comments
Open

[Textarea ] 自动增高问题 #3512

wanhuihan opened this issue Mar 5, 2025 · 2 comments
Labels
question This is a question, not a bug

Comments

@wanhuihan
Copy link

tdesign-miniprogram 版本

1.8.0

重现链接

No response

重现步骤

autosize如果是对象的话,限定最小高度和最大宽度的时候,js报错

Bad attr `autosize` with message: error at token `:`.
  115 | 
  116 |     <view slot="content">
> 117 |         <t-textarea t-class="external-class" placeholder="请输入文字" disableDefaultPadding="{{true}}" style="padding: 0" autosize="{{minHeight: 300, maxHeight: 600}}" />
      |                                                                                                                                        ^
  118 |     </view>
  119 | </t-dialog>

也检查了该属性传入的值,始终报错,等我有时间会慢慢给看看并且修复,目前暂时没有时间,先记录下来

期望结果

autosize传入指定的最小高度和最大高度的时候不仅不报错,而且还要生效

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Mar 5, 2025

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

@betavs
Copy link
Collaborator

betavs commented Mar 5, 2025

<t-textarea
  t-class="external-class"
  placeholder="请输入文字"
  disableDefaultPadding="{{true}}"
  style="padding: 0"
  autosize="{{ {minHeight: 300, maxHeight: 600} }}"
/>

@betavs betavs added the question This is a question, not a bug label Mar 5, 2025
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

2 participants