mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
15 lines
450 B
JavaScript
15 lines
450 B
JavaScript
import ConfirmPlugin from './src/ConfirmPlugin.js'
|
|
import Confirm from './src/Confirm'
|
|
import { install } from '../../utils/installThemeAwarableProperty'
|
|
|
|
ConfirmPlugin.install = function (Vue) {
|
|
ConfirmPlugin.Vue = Vue
|
|
install(Vue, ConfirmPlugin, '$NConfirm')
|
|
Vue.component(Confirm.name, Confirm)
|
|
/** deprecated names */
|
|
Vue.component('NNimbusConfirmCard', Confirm)
|
|
install(Vue, ConfirmPlugin, '$NModal')
|
|
}
|
|
|
|
export default ConfirmPlugin
|