fix(table): param of handleSearchInfoFn

修复`handleSearchInfoFn`的参数会有多余的空白键
This commit is contained in:
无木
2021-07-03 14:32:38 +08:00
parent 49f39de7b4
commit 791b323dbd
3 changed files with 11 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ export function useFormValues({
for (const item of Object.entries(values)) {
let [, value] = item;
const [key] = item;
if ((isArray(value) && value.length === 0) || isFunction(value)) {
if (!key || (isArray(value) && value.length === 0) || isFunction(value)) {
continue;
}
const transformDateFunc = unref(getProps).transformDateFunc;