mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
chore: move createNamespace
This commit is contained in:
18
src-next/utils/create/component.ts
Normal file
18
src-next/utils/create/component.ts
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user