mirror of
https://github.com/youzan/vant.git
synced 2026-04-06 02:00:43 +08:00
[improvement] List: unify text font-size (#4077)
This commit is contained in:
@@ -37,7 +37,7 @@ function prefix(name: string, mods: Mods): Mods {
|
||||
}
|
||||
|
||||
export function createBEM(name: string) {
|
||||
return function (el?: Mods, mods?: Mods): Mods {
|
||||
return function(el?: Mods, mods?: Mods): Mods {
|
||||
if (el && typeof el !== 'string') {
|
||||
mods = el;
|
||||
el = '';
|
||||
|
||||
@@ -5,7 +5,7 @@ import locale from '../../locale';
|
||||
export function createI18N(name: string) {
|
||||
const prefix = camelize(name) + '.';
|
||||
|
||||
return function (path: string, ...args: any[]): string {
|
||||
return function(path: string, ...args: any[]): string {
|
||||
const message = get(locale.messages(), prefix + path) || get(locale.messages(), path);
|
||||
return typeof message === 'function' ? message(...args) : message;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user