mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
15 lines
423 B
TypeScript
15 lines
423 B
TypeScript
import { createBEM } from './bem';
|
|
import { createComponent } from './component';
|
|
import { createI18N } from './i18n';
|
|
|
|
type CreateNamespaceReturn = [
|
|
ReturnType<typeof createComponent>,
|
|
ReturnType<typeof createBEM>,
|
|
ReturnType<typeof createI18N>
|
|
];
|
|
|
|
export function createNamespace(name: string): CreateNamespaceReturn {
|
|
name = 'van-' + name;
|
|
return [createComponent(name), createBEM(name), createI18N(name)];
|
|
}
|