Evan You пре 6 година
родитељ
комит
5ecc77df5a
1 измењених фајлова са 1 додато и 1 уклоњено
  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`.