wip(form): perf form

This commit is contained in:
vben
2020-12-25 01:09:44 +08:00
parent 3c3e640d69
commit 4ff1c408dc
45 changed files with 901 additions and 862 deletions

View File

@@ -39,7 +39,7 @@ function extend<T, K>(to: T, _from: K): T & K {
return Object.assign(to, _from);
}
export function toObject<T>(arr: Array<T>): Record<string, T> {
export function toObject<T>(arr: Array<T>): Recordable<T> {
const res = {};
for (let i = 0; i < arr.length; i++) {
if (arr[i]) {