1.0.3 • Published 3 years ago

hzz-dialog v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

hzz-dialog

基于element-ui封装的弹窗方法,包含以下功能点:

1、弹窗内容支持传入动态组件(componentName),支持为动态组件传参(componentProps

2、支持传入bind使用element-uidialog所有属性

3、支持传入btns使用element-uifooter插槽

4、如有其他需求,请自由使用

version

版本号描述
1.0.0初始版本
1.0.1支持使用componentProps为弹窗组件传参
1.0.2弹窗关闭时自动销毁组件
1.0.3组件内部通过$emit('close')触发弹窗关闭

install

npm i hzz-dialog -S

quick start

import 'hzz-dialog';

attributes

参数说明类型默认值
componentName弹窗内容DOM-
bind弹窗容器属性对象,可传入属性见element-uiobject-
btns弹窗按钮Array[]

btns attrubites

参数说明类型默认值可选值
label按钮文案string--
fn按钮点击方法function--

其余参数见element-ui

author

If you have any question. You can contract me with QQ(1321176618).