1.0.0 • Published 3 years ago
mori-dialog v1.0.0
install
npm install mori-dialog
usage
import Dialog from "mori-dialog"
components: {
Dialog: Dialog
}
<dialog :options="options" @cancelHandle="cancel" @sureHandle="sure" @showHandle="show">
<div slot="content">
<!--这里写具体内容-->
</div>
</dialog>
params
options: {
title: '提示', // 标题
width: '500px', // 弹窗宽度
center: false, // 是否居中显示
notHandle: false, // 是否不要底部操作按钮
cancelText: '取消'
confirmText: '确定',
loading: false, // 加此字段则可以添加异步等待操作
notCanBgClose: false // 不能点击背景关闭弹窗
}
cancelHandle: 取消之后的操作,可不加
sureHandle: 确认操作,一般会加
showHandle: 弹窗显示之后的操作,可用于清除表单
1.0.0
3 years ago