Commit a343b49014adc1a0502349fba9bec82c9d6726be
1 parent
28078d42
feat: 表单新增name属性。 配置name后,可以解决同一个页面有多个表单且存在相同字段时, 生成的组件字段的id相同的问题
Showing
1 changed file
with
1 additions
and
0 deletions
src/components/Form/src/types/form.ts
... | ... | @@ -49,6 +49,7 @@ export type RegisterFn = (formInstance: FormActionType) => void; |
49 | 49 | export type UseFormReturnType = [RegisterFn, FormActionType]; |
50 | 50 | |
51 | 51 | export interface FormProps { |
52 | + name?: string; | |
52 | 53 | layout?: 'vertical' | 'inline' | 'horizontal'; |
53 | 54 | // Form value |
54 | 55 | model?: Recordable; |
... | ... |