feat: 表单新增name属性。 配置name后,可以解决同一个页面有多个表单且存在相同字段时, 生成的组件字段的id相同的问题
This commit is contained in:
parent
28078d4263
commit
a343b49014
|
|
@ -49,6 +49,7 @@ export type RegisterFn = (formInstance: FormActionType) => void;
|
||||||
export type UseFormReturnType = [RegisterFn, FormActionType];
|
export type UseFormReturnType = [RegisterFn, FormActionType];
|
||||||
|
|
||||||
export interface FormProps {
|
export interface FormProps {
|
||||||
|
name?: string;
|
||||||
layout?: 'vertical' | 'inline' | 'horizontal';
|
layout?: 'vertical' | 'inline' | 'horizontal';
|
||||||
// Form value
|
// Form value
|
||||||
model?: Recordable;
|
model?: Recordable;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue