瀏覽代碼

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

Lowell 3 年之前
父節點
當前提交
473e56e4e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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