alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.32k stars 1.48k forks source link

next input addonAfer属性在detail场景下渲染错误 #783

Closed fengxs269 closed 4 years ago

fengxs269 commented 4 years ago

Help us to manage our issues by answering the following:

  1. How would you tag this issue?

    • Bug
  2. Describe your issue:

image image

description的maxTipsNum对于react-node无效

  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on CodeSandbox
fengxs269 commented 4 years ago

@alife/ascp-design: 7.0.23

import React from 'react'
import Form from '@uform/next'

const { FormCard, FormSlot, FormItemGrid, FormTextBox,  FormButtonGroup  , FormLayout, Submit, Reset, Field } = Form

export default (props)=>{

    const defaultValues = {
itemSetId: 'xxxx'
    } 

    const ItemSetUrl =  <a href={`https://gdatacenter.cbbs.tmall.com/h/gitemset/choiceItemsetDetail?id=1111`} >去看看</a>
    return<Form
      labelCol={7}
      wrapperCol={12}
      maxTipsNum={200}
      editable={false}
      defaultValue={defaultValues}
    >
          <Field type="string" title="圈品集ID"  required name="itemSetId" x-props={{placeholder: '输入圈品集ID', addonAfter: ItemSetUrl}} />
    </Form>
}
fengxs269 commented 4 years ago

https://codesandbox.io/s/suspicious-sea-pgnug?file=/src/App.js

janryWang commented 4 years ago

排查下来是使用的uform0.x,针对uform0.x可以考虑升级uform1.x