Skip to content

[Textarea ] 自动增高问题 #3512

@wanhuihan

Description

@wanhuihan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis is a question, not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions