1.3.0 • Published 4 years ago
chat-record-modal v1.3.0
Quick Start
使用: 安装ant-design-vue
<ChatRecordModal :visible.sync="chatRecordVisible" :type="chatType" :infoData="infoData" :token="token"/>
import ChatRecordModal from 'chat-record-modal'
data() {
return {
chatRecordVisible: false,
chatType: false,//true:群聊 false:私聊
infoData: infoData ,
token: "eyJj...."
}
}
群聊: infoData:{ group: { name: '', avatar: '',groupId: '' }, wechatAccount: { wechatName: '', wechatId: ''} }
私聊: infoData:{ customerInfo: { name: '', avatar: '',customerId: '' }, wechatAccount: { wechatName: '', wechatId: ''} }
chat-record-modal component
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.