mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
/**
|
|
* 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;
|
|
};
|
|
}
|