chore: move createNamespace

This commit is contained in:
chenjiahan
2020-07-04 22:38:35 +08:00
parent eeaeace1c0
commit 79e7b4be65
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* Create a basic component with common options
*/
// function install(this: any, Vue: VueConstructor) {
// const { name } = this;
// Vue.component(name as string, this);
// Vue.component(camelize(`-${name}`), this);
// }
export function createComponent(name: string) {
return function (sfc: any) {
sfc.name = name;
// sfc.install = install;
return sfc;
};
}