Merge pull request #284 from 2betop/master

错题提示样式问题修复
This commit is contained in:
liaoxuezhi 2019-10-15 16:02:58 +08:00 committed by GitHub
commit 84d5b09794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})` : ''}`;