1234567891011121314151617181920212223 |
- <template>
- <m-button @click="dialogVisible = true">点击打开 Dialog</m-button>
- <m-dialog
- v-model="dialogVisible"
- width="30%"
- >
- <template #header>
- <i class="iconfont icon-email" style="font-size: 17px"></i> 新的邮件
- </template>
- <span>这是一段信息</span>
- <template #footer>
- <span class="dialog-footer">
- <m-button @click="dialogVisible = false" style="margin-right: 20px">取消</m-button>
- <m-button type="primary" @click="dialogVisible = false">确定</m-button>
- </span>
- </template>
- </m-dialog>
- </template>
- <script setup>
- import { ref } from 'vue-demi'
- const dialogVisible = ref(false)
- </script>
|