效果

源码解析
对话框
:::tabs
@tab html
<template>
<div>
<div class="product-dialog">
<!-- 这步不能使用 v-model:visible="visible" 因为visible不能从子组件更新 -->
<!-- 通过继续把事件emit出去实现双向绑定。emit('update:visible', visible) -->
<nut-popup
:visible="visible"
round
pop-class="product-popup"
@update:visible="(value) => emit('update:visible', value)"
></nut-popup
>
</div>
</div>
</template>
2024/1/24大约 5 分钟