Element给所有弹窗组件增加属性

张开发
2026/4/12 22:52:06 15 分钟阅读

分享文章

Element给所有弹窗组件增加属性
// 一行逻辑给 ElDialog、ElDrawer 默认加上 append-to-body;[ElDialog, ElDrawer].forEach(name {const comp Vue.component(name)if (comp) {comp.options.props.appendToBody {type: Boolean,default: true}}})

更多文章