formilyjs / element-plus

Formily Element Plus Adaptor
MIT License
91 stars 82 forks source link

fix: form component inherit attrs issue #13

Closed qq1037305420 closed 2 years ago

qq1037305420 commented 2 years ago

Before submitting a pull request, please make sure the following is done...

Please do not delete the above content


What have you changed?

fix h api error

netlify[bot] commented 2 years ago

Deploy Preview for formily-element-plus ready!

Name Link
Latest commit 4cb72da971720a8158b86fab05d1a9dd1392b69e
Latest deploy log https://app.netlify.com/sites/formily-element-plus/deploys/62a6fd15cacb9f0008459548
Deploy Preview https://deploy-preview-13--formily-element-plus.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

yiyunwan commented 2 years ago

What has been repaired? Can you give an example of a bug?

qq1037305420 commented 2 years ago

https://github.com/alibaba/formily/blob/formily_next/packages/vue/src/shared/h.ts https://github.com/alibaba/formily/blob/formily_next/packages/vue/src/utils/formatVNodeData.ts 参考下源码 直接传 attrs 和 {attrs} 的表现是不一致的,导致了attrs传递出现了问题。 Formlayout组件没有继承到Form组件传递的attrs(应该是有点记不清楚了)