@ibiz/drawer
简介
@ibiz/drawer 是IBiz前端团队根据业务需要封装的一个飘窗组件,项目直接可用。
安装
yarn add @ibiz/drawer
快速开始
import { DrawerController } from '@ibiz/drawer';
// 初始化飘窗控制器实例
const ref = await DrawerController.present({
caption: view.title,
overlayIndex: zIndex,
componentProps: { store: this.store, i18n: this.i18n,router:this.router, propsData: { dynamicProps, staticProps } },
});
// 等待飘窗实例关闭并返回数据
const result = await DrawerController.dismiss(ref);