2019-12-12 11:47:07 +08:00
|
|
|
import ConfirmPlugin from './src/ConfirmPlugin.js'
|
|
|
|
import Confirm from './src/Confirm'
|
2019-12-06 23:10:40 +08:00
|
|
|
import { install } from '../../utils/installThemeAwarableProperty'
|
2019-08-01 13:46:03 +08:00
|
|
|
|
2019-12-12 11:47:07 +08:00
|
|
|
ConfirmPlugin.install = function (Vue) {
|
|
|
|
ConfirmPlugin.Vue = Vue
|
2019-12-13 18:18:47 +08:00
|
|
|
install(Vue, ConfirmPlugin, '$NConfirm')
|
2019-12-12 11:47:07 +08:00
|
|
|
Vue.component(Confirm.name, Confirm)
|
2019-12-13 18:18:47 +08:00
|
|
|
/** deprecated names */
|
2019-12-12 11:47:07 +08:00
|
|
|
Vue.component('NNimbusConfirmCard', Confirm)
|
2019-12-13 18:18:47 +08:00
|
|
|
install(Vue, ConfirmPlugin, '$NModal')
|
2019-08-01 13:46:03 +08:00
|
|
|
}
|
2019-09-28 18:50:56 +08:00
|
|
|
|
2019-12-12 11:47:07 +08:00
|
|
|
export default ConfirmPlugin
|