完整用法
居中弹窗,含标题内容与按钮
<cu-modal :show="show" :title="title" :content="content" :confirmText="confirmText" :cancelText="cancelText" :showConfirmButton="showConfirmButton" :showCancelButton="showCancelButton" :confirmColor="confirmColor" :cancelColor="cancelColor" :buttonReverse="buttonReverse" :closeOnClickOverlay="closeOnClickOverlay" :negativeTop="negativeTop" :width="width" @confirm="onConfirm" @cancel="onCancel" @close="onClose" /> <cu-modal :show="slotShow" title="slot 覆盖底栏" content="下面的底栏由页面通过具名 slot confirmButton 提供,整条分隔线与按钮组都被替换。" @close="onSlotClose"> <template v-slot:confirmButton> <text> 页面自定义底栏 </text> <cu-button text="知道了" size="mini" type="primary" @click="onSlotClose" /> </template> </cu-modal>