element-plus/packages/dialog/index.ts
jeremywu 9ad78debcf
fix(drawer): fix drawer implementation with hook (#817)
* fix(drawer): fix drawer implementation with hook

* fix(drawer): fix drawer implementation

- Make drawer implementation as the same as dialog

* chore(drawer): documentation updates
2020-12-07 00:13:05 +08:00

10 lines
220 B
TypeScript

import { App } from 'vue'
import Dialog from './src/index.vue'
Dialog.install = (app: App): void => {
app.component(Dialog.name, Dialog)
}
export default Dialog
export { default as useDialog } from './src/useDialog'