Browse Source

fix: demo vue function error

richard1015 3 years ago
parent
commit
fbfa365dbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/utils/create/component.ts

+ 1 - 1
src/packages/utils/create/component.ts

@@ -55,6 +55,6 @@ export function createComponent(name: string) {
 
       _component.name = 'demo-' + name;
       return defineComponent(_component as any);
-    }
+    } as typeof defineComponent
   };
 }