Skip to content
New issue

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

表单提交问题 #686

Open
taoman opened this issue Mar 28, 2024 · 2 comments
Open

表单提交问题 #686

taoman opened this issue Mar 28, 2024 · 2 comments

Comments

@taoman
Copy link

taoman commented Mar 28, 2024

form-create/ant-design-vue": "^3.1.28"

"element-plus": "^2.3.12",

在vue3里面使用,,rule和options都是从后端接口拿过来的json数据去做渲染,渲染上去之后有提交和重置按钮,const fApi = ref<>({}); fapi这样定义,在onMounted里面写fApi.value.submit = (formData)=>{},点击提交的时候没法触发,submit事件是应该怎么写,求解

@xaboy
Copy link
Owner

xaboy commented Mar 28, 2024

应该这么写: fApi.value.submit((formData)=>{})

@taoman
Copy link
Author

taoman commented Mar 28, 2024

应该这么写: fApi.value.submit((formData)=>{})

非常感谢,已解决,还想再问一下,表单设计器我是用iframe嵌入到我们的项目里面,很多时候往渲染区域拖拽了一个元素后,再拖拽别的元素的时候,会拖不进去,是一个禁用的标志,这是什么原因?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants