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