mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-22 20:18:29 +00:00
perf: refoctor useTitle
This commit is contained in:
@@ -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]]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user