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