Browse Source

fix: create comp ts error

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

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

@@ -13,12 +13,12 @@ export function createComponent(name: string) {
             vue.component(item.name as string, item);
           });
       };
-      return defineComponent(_component);
+      return defineComponent(_component as any);
     } as typeof defineComponent,
     createDemo: function (_component: ComponentOptions) {
       _component.baseName = name;
       _component.name = 'demo-' + name;
-      return defineComponent(_component);
+      return defineComponent(_component as any);
     } as typeof defineComponent
   };
 }