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/index.ts
Normal file
18
src-next/utils/create/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user