Browse Source

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

Lowell 3 năm trước cách đây
mục cha
commit
473e56e4e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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