mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
import { useBEM } from './bem';
|
|
import { useSFC } from './sfc';
|
|
import { useI18N } from './i18n';
|
|
|
|
type UseReturn = [
|
|
ReturnType<typeof useSFC>,
|
|
ReturnType<typeof useBEM>,
|
|
ReturnType<typeof useI18N>
|
|
];
|
|
|
|
export function use(name: string): UseReturn {
|
|
name = 'van-' + name;
|
|
return [useSFC(name), useBEM(name), useI18N(name)];
|
|
}
|