hys-pomelo-to-pinus-plugin
v1.0.0
Published
pomelo to pinus plugin
Downloads
75
Readme
Pomelo 插件 转 pinus 插件
安装依赖
npm install --save hys-pomelo-to-pinus-plugin
测试代码
import { PomeloToPinusPlugin } from "hys-pomelo-to-pinus-plugin";
import * as pomeloGlobalchannelPlugin from "pomelo-globalchannel-plugin";
import * as pomeloHttpPlugin from "pomelo-http-plugin";
import * as pomeloStatusPlugin from "pomelo-status-plugin";
import * as sync from "pomelo-sync-plugin";
// reset(插件, 自定义插件名称, [组件文件名称], [事件文件名称]);
// 组件文件夹路径: node_modules/插件名称/lib/components/
// 事件文件夹路径: node_modules/插件名称/lib/events/
PomeloToPinusPlugin.reset(pomeloStatusPlugin, "pomelo-status-plugin", ["status"], ["event"]);
PomeloToPinusPlugin.reset(pomeloGlobalchannelPlugin, "pomelo-globalchannel-plugin", ["globalChannel"]);
PomeloToPinusPlugin.reset(pomeloHttpPlugin, "pomelo-http-plugin", ["http"], ["http"]);
PomeloToPinusPlugin.reset(sync, "pomelo-sync-plugin", ["sync"]);