<template> <!--子組件 :model-value="showDialog" @update:model-value="$emit('update:showDialog', $event)"--> <el-dialog :model-value="showDialog" @update:model-value="$emit('update:showDialog', $event)" title="Notice" width="30%" destroy-on-close center > <span> Notice: before dialog gets opened for the first time this node and the one bellow will not be rendered </span> <div> <strong>Extra content (Not rendered)</strong> </div> <template #footer> <span class="dialog-footer"> <!----試過這個方式可以註解A--> <el-button @click="cancel">Cancel</el-button> <el-button type="primary" @click="update"> Confirm </el-button> </span> </template> </el-dialog> </template>