Sfoglia il codice sorgente

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

Lowell 3 anni fa
parent
commit
473e56e4e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/Form/src/types/form.ts

+ 1 - 1
src/components/Form/src/types/form.ts

@@ -129,7 +129,7 @@ export interface FormSchema {
   // Variable name bound to v-model Default value
   valueField?: string;
   // Label name
-  label: string;
+  label: string | VNode;
   // Auxiliary text
   subLabel?: string;
   // Help text on the right side of the text