2020-09-09 21:18:08 +08:00
|
|
|
import { App } from 'vue'
|
2020-12-23 14:07:15 +08:00
|
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
2020-11-24 23:06:26 +08:00
|
|
|
import Dialog from './src/index.vue'
|
2020-10-29 17:28:26 +08:00
|
|
|
|
2020-11-20 20:24:16 +08:00
|
|
|
Dialog.install = (app: App): void => {
|
2020-09-09 21:18:08 +08:00
|
|
|
app.component(Dialog.name, Dialog)
|
|
|
|
}
|
2020-10-20 11:45:44 +08:00
|
|
|
|
2021-08-24 13:36:48 +08:00
|
|
|
const _Dialog = Dialog as SFCWithInstall<typeof Dialog>
|
2020-12-23 14:07:15 +08:00
|
|
|
|
|
|
|
export default _Dialog
|
2021-08-24 13:36:48 +08:00
|
|
|
export {
|
|
|
|
default as useDialog,
|
|
|
|
useDialogProps,
|
|
|
|
useDialogEmits,
|
|
|
|
} from './src/useDialog'
|
|
|
|
|
|
|
|
export const ElDialog = _Dialog
|