0.0.42 • Published 7 months ago

bbs-package-vue2 v0.0.42

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

手动初始化

Vue.use(chat)

自动初始化

Vue.use(chat,{
    connect:{
        groupId:'1632925345397391361',
        id:'1',
        isBannedToPost:true,
        nickName:'我是昵称',
        loadUrl: 'http://192.168.31.168:7000/#/',
        language:'zh',
        mode:'cp'
    },
    logo:{
        showLogo:true,
        drag:true
    }
})

this.$chat.initChat({
    connect:{
        groupId:'1632925345397391361',
        id:'1',
        isBannedToPost:true,
        nickName:'我是昵称',
        loadUrl: 'http://192.168.31.168:7000/#/',
        language:'zh',
        mode:'cp'
    },
    logo:{
        showLogo:true,
        drag:true
    }
})
// 调用方法前确保此回调返回true
this.$chat.onStatusReady(e=>{
    console.log(e,'状态')
})

hooks 可在仓库等单独抽离时使用

import {useBBsPackage} from "bbs-package-vue2";
const bbsChat = useBBsPackage()
bbsChat.onStatusReady(e=>{
    console.log(e,'状态')
})
0.0.42

7 months ago

0.0.41

7 months ago

0.0.40

7 months ago

0.0.39

7 months ago

0.0.38

7 months ago

0.0.37

7 months ago

0.0.36

7 months ago

0.0.35

7 months ago

0.0.34

7 months ago

0.0.33

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago