lljj-x / vue-json-schema-form

基于Vue/Vue3,Json Schema 和 ElementUi/antd/iview3/naiveUi 等生成 HTML Form 表单,用于活动编辑器、h5编辑器、cms等数据配置;支持可视化生成表单Schema 。 Generate a form using Vue/Vue3, Json Schema and ElementUi/antdv/iview3/naiveUi
https://form.lljj.me/
Apache License 2.0
2.01k stars 418 forks source link

@lljj/vue3-form-ant 的 TextareaWidget 无法正常显示 #274

Closed varzy closed 1 year ago

varzy commented 1 year ago

vue和ui框架

Vue@3.2.37 + Antdv@3.2.11 + @lljj/vue3-form-ant@1.14.2

问题描述

在 ui:options 中设置 type: textarea,仍然显示为 Input 组件,无法正常展示为 Textarea 组件。

如何复现

intro: {
  'ui:options': {
    type: 'textarea',
    placeholder: '请输入导语',
    autosize: {
      minRows: 2,
      maxRows: 4,
    },
  },
},
image

该问题在官网的 Playground 中亦存在,且只有 Antdv 异常,Element Plus 和 Naive 组件库正常。

image

期望的结果

对于 Antdv 亦可显示为正常 Textarea。

lljj-x commented 1 year ago

参考这个:#110

{
  "ui:widget": "TextAreaWidget"
}
varzy commented 1 year ago

感谢🙏