4.0.0 • Published 4 years ago

@huteming/ui-dialog v4.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

对话框


引入

import { TmDialog } from '@huteming/ui'

Vue.use(TmDialog)
// Vue.component(TmDialog.name, TmDialog)

例子

<tm-dialog v-model="visibleDialog">
    ...
</tm-dialog>

API

参数说明类型可选值默认值
value显示状态Booleanfalse
close-position关闭 X 显示位置Stringout-right, out-left, in-right, in-left, bottom
close-on-click-modal点击折腾是否关闭Booleantrue
before-close关闭前的回调,会暂停 Dialog 的关闭function(done)

Slot

参数说明
Dialog 的内容
footerDialog 按钮操作区的内容

Events

name说明
openDialog 打开的回调
closeDialog 关闭的回调
closedDialog 关闭动画结束时的回调