mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 20:39:07 +08:00
commit
84d5b09794
@ -420,7 +420,7 @@ export class FormItemWrap extends React.Component<FormControlProps, FormControlS
|
||||
: null}
|
||||
|
||||
{model && !model.valid ? (
|
||||
<ul className={cx(`Form-value`)}>
|
||||
<ul className={cx(`Form-feedback`)}>
|
||||
{model.errors.map((msg: string, key: number) => (
|
||||
<li key={key}>{msg}</li>
|
||||
))}
|
||||
@ -588,7 +588,7 @@ export function registerFormItem(config: FormItemConfig): RendererConfig {
|
||||
'onChange',
|
||||
'setPrinstineValue',
|
||||
'readOnly',
|
||||
...(Control as any).propsList || []
|
||||
...((Control as any).propsList || [])
|
||||
];
|
||||
|
||||
static displayName = `FormItem${config.type ? `(${config.type})` : ''}`;
|
||||
|
Loading…
Reference in New Issue
Block a user