Vue3使用element-plus实现弹窗效果-demo

Vue3使用element-plus实现弹窗效果-demo_第1张图片

 使用 



import ShareDialog from './ShareDialog.vue';
const isShow = ref(false);
const onShowDialog = (show) => {
  isShow.value = show;
};
const onChangeDialog = (val) => {
  console.log('onSureClick', val);
  isShow.value = false;
};

 组件代码








基础代码 





Vue3使用element-plus实现弹窗效果-demo_第2张图片

 完整代码 







弹窗-over 









你可能感兴趣的:(Vue,vue.js,javascript,elementui)