@ibiz/drawer-vue
简介
@ibiz/drawer-vue 是IBiz前端团队根据业务需要,为适配动态模板飘窗容器对@ibiz/drawer再次封装,IBiz R7前端动态模板项目直接可用。
安装
yarn add @ibiz/drawer-vue
快速开始
import { DrawerController, DrawerContainer } from '@ibiz/drawer-vue';
// 初始化飘窗控制器实例
const ref = await DrawerController.present({
caption: view.title,
overlayIndex: zIndex,
// 适配动态模板飘窗容器
component: DrawerContainer as any,
componentProps: { store: this.store, i18n: this.i18n,router:this.router, propsData: { dynamicProps, staticProps } },
});
// 等待飘窗实例关闭并返回数据
const result = await DrawerController.dismiss(ref);