perf: refoctor useTitle

This commit is contained in:
Vben
2021-03-27 01:11:22 +08:00
parent 3b3a7462f6
commit 979058ad95
11 changed files with 61 additions and 158 deletions

View File

@@ -8,7 +8,7 @@ interface Params {
const DEFAULT_EXCLUDE_KEYS = ['class', 'style'];
const LISTENER_PREFIX = /^on[A-Z]/;
export function entries<T>(obj: Hash<T>): [string, T][] {
export function entries<T>(obj: Recordable<T>): [string, T][] {
return Object.keys(obj).map((key: string) => [key, obj[key]]);
}