naive-ui/packages/common/Confirm/index.js

15 lines
450 B
JavaScript
Raw Normal View History

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
ConfirmPlugin.install = function (Vue) {
ConfirmPlugin.Vue = Vue
2019-12-13 18:18:47 +08:00
install(Vue, ConfirmPlugin, '$NConfirm')
Vue.component(Confirm.name, Confirm)
2019-12-13 18:18:47 +08:00
/** deprecated names */
Vue.component('NNimbusConfirmCard', Confirm)
2019-12-13 18:18:47 +08:00
install(Vue, ConfirmPlugin, '$NModal')
2019-08-01 13:46:03 +08:00
}
export default ConfirmPlugin