Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (common-helpcenter-v3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
消息通知公共组件
安装依赖
npm install common-helpcenter-v3属性说明
profileUrl: profile请求路径
baseUrl: ticket系统的baseUrl
token: 请求携带的token
translateLists: 翻译列表
isHedgehood: 是否是isHedgehood
ticketAdd:ticket socket监听到是否有新消息,需要实时监听
ticketId: ticket socket监听到的id,需要实时监听
setUnreadNum:设置未读消息数
toBack:点击back时的操作,移动端会出现
showMask:显示遮罩层,不需要就不使用
showMsg:内部错误提示抛出,父组件接受两个参数,type(success、error)和msg开始使用
1:在main.js文件中引入
import HelpCenter from 'common-helpcenter-v3'
import 'common-helpcenter-v3/dist/style.css'
app.use(HelpCenter)
2:在需要的文件中使用
<help-center v-if="show" :token="tokens" :profileUrl="profileUrl" :baseUrl="baseUrl" :translateLists="translateLists" :ticketAdd="ticketAdd" :isHedgehood="isHedgehood" :ticketId="ticketId" @setUnreadNum="setUnreadNum" @toBack="toBack" @showMask="showMask" @showMsg="showMsg"></help-center>