[improvement] List: unify text font-size (#4077)

This commit is contained in:
neverland
2019-08-09 14:03:19 +08:00
committed by GitHub
parent 19cd2ed38e
commit 4cba618792
10 changed files with 52 additions and 50 deletions

View File

@@ -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 = '';

View File

@@ -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;
};