actionModal
$ npm install action-modal --save
import actionModal from 'action-modal';
<template>
<action-modal
ref="actionModal"
:mTitle='删除确认'
:mText='是否删除此数据'
:buttonCancel='取消'
:buttonOk='删除'
@deletePost="myActionFn">
</action-modal>
</template>
//open
this.$refs.actionModal.openModal();
//close
this.$refs.actionModal.openModal(2);
模态框标题,默认值为:删除确认,可不传
模态框显示内容文字,默认值为:是否删除此数据,可不传,支持html
模态框取消按钮显示文字,默认值为:取消,可不传
模态框确认操作按钮显示文字,默认值为:删除,可不传
点击确认后的回调函数,触发父组件自定义函数
For detailed explanation on how things work, consult the docs for action-modal.