Commit 473e56e4e07ea641b47730b62196ab5caa11cd17

Authored by Lowell
Committed by GitHub
1 parent eac2fb4a

form的label属性实际上可以使用VNode (#1252)

src/components/Form/src/types/form.ts
... ... @@ -129,7 +129,7 @@ export interface FormSchema {
129 129 // Variable name bound to v-model Default value
130 130 valueField?: string;
131 131 // Label name
132   - label: string;
  132 + label: string | VNode;
133 133 // Auxiliary text
134 134 subLabel?: string;
135 135 // Help text on the right side of the text
... ...