-
Notifications
You must be signed in to change notification settings - Fork 501
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
考虑导出组件的 props 么, 方便二开使用 #3135
Comments
你是不会用 v-bind 还有 |
算了, 不指望了 🤷♂️ |
你是没用过这种吗 |
我现在是这样用的 https://mixte.moomfe.com/mixte/snippets/acro-dynamic-form#ResetButtonOptions 问题是这样使用因为类型被包装过, 但是如果直接 extends 去继承原有组件的 props, 对于 Vue 来说太复杂, 打包时会报错 只能按照提示强行忽略, 最终生成的代码中, 也不会包含原有组件的 props 定义 不是不能用, 就是希望能更好 |
个人认为,非必要尽量不要过度封装组件,经历过大大小小项目总结出来,过渡封装只会自食其果,后面慢慢变成屎山,过渡封装,新人看不懂是懒得用的,还不如跟我主页项目一样,能不封装就尽量不封装 |
基本信息
二开时可以直接继承导出的 props 类型及类型定义
现有案例
arco-design
naive-ui
element-plus
预期解决问题
和 arco-design 一致
The text was updated successfully, but these errors were encountered: