Przeglądaj źródła

chore: fix missed save

Evan You 6 lat temu
rodzic
commit
5ecc77df5a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/runtime-core/src/apiOptions.ts

+ 1 - 1
packages/runtime-core/src/apiOptions.ts

@@ -55,7 +55,7 @@ export interface ComponentOptionsBase<
     ctx: SetupContext
   ) => RawBindings | RenderFunction | void
   name?: string
-  template?: string
+  template?: string | object // can be a direct DOM node
   // Note: we are intentionally using the signature-less `Function` type here
   // since any type with signature will cause the whole inference to fail when
   // the return expression contains reference to `this`.