0.1.1 • Published 6 years ago
@bhabgs/mcs v0.1.1
MessageCodeSdk
安装
npm i @bhabgs/mcs -D
在vue中的使用方式
//in main.js
const Vue = require("vue");
import Vue from 'vue'
import Mcs from '@bhabgs/MCS'
Vue.prototype.$Mcs = new Mcs({isDev: false, codes: {}})
// codes {key : val}
use in template
this.$Mcs.sendMsg('');
更新
V 0.1.0
1.优化readme格式
v 0.0.8
1.添加默认触发回调事件,Notification 事件 2.新增conf参数一个,回调方法一个
import Mcs from '@bhabgs/Mcs'
new Mcs({
isDev: false,
codes: {},
useNotification: false, // 是否开启用户提醒 +
notification() {} // 开启用户提醒后 触发用户反馈操作回调 +
})
- v 0.07 1.修复类型判断