# 使用
- 因为本组件是基于
element-ui
开发。首先需要引入element-ui
。
npm install element-ui
- 在
main.js
中引入组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import JwChat from 'jwchat';
/* 在 0.2.041 之前的版本需要引入 css */
// import 'jwchat/lib/JwChat.css';
Vue.use(JwChat)
- 在 *.vue 中引入
<JwChat-index
:taleList="list"
@enter="bindEnter"
v-model="inputMsg"
:showRightBox='true'
scrollType="noscroll"
/>
← 安装