We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async function resetFields(): Promise<any> { const { resetFunc } = unref(getProps); resetFunc && isFunction(resetFunc) && (await resetFunc()); const formEl = unref(formElRef); if (!formEl) return; Object.keys(formModel).forEach((key) => { (formModel as any)[key] = undefined; }); setFieldsValue(unref(defaultValueRef)); // 新加 emit('reset', toRaw(formModel)); handleSubmit(); // 新加 }
点击重置按钮,筛选条件恢复默认或清空,并发起请求
代码如上
The text was updated successfully, but these errors were encountered:
已复现,handleSubmit会加一个参数来控制。并不一定重置都需要重新执行submit
Sorry, something went wrong.
feat: add the parameter submitOnReset to the form (#54)
7558cbf
已修复
d09406e
fix: fix a series of known problems,fixed #54
276ef2e
No branches or pull requests
Expected behaviour
点击重置按钮,筛选条件恢复默认或清空,并发起请求
My resolution
代码如上
The text was updated successfully, but these errors were encountered: