소스 검색

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