Skip to content

🧐[问题]ProDescriptions中valueType为textarea时编辑模式的input大小不正确 #9208

@Queensbarry

Description

@Queensbarry

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

ProDescriptionsvalueTypetextarea时编辑模式的input大小不正确,编辑模式下的<TextArea />组件能够正确接受rows参数作,但是当设置width: 100%的时候,由于外层包裹了无长度的div,造成样式无变化。此外,使用renderFormItem进行自定义也是一样的。

💻 示例代码

现有的columns中对应字段的定义

{
  label: '个人简介',
  dataIndex: 'introduction',
  valueType: 'textarea',
  span: 2,
  fieldProps: {
    rows: 10,
    style: {
      minWidth: '100%',
      width: '100%',
    },
  },
}

🚑 其他信息

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⭕️ bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions