@jump-mp/td-chat
v0.1.1
Published
AI Chat Component for Vue 2
Downloads
270
Readme
@jump-mp/td-chat
项目介绍
@jump-mp/td-chat 是一个基于 Vue 2 实现的测试组件库,提供了聊天相关的基础组件。
📦 安装
npm i @jump-mp/td-chat🔨 使用
基础使用
import Vue from 'vue';
import App from './app.vue';
import TDChat from '@jump-mp/td-chat';
Vue.use(TDChat);
new Vue({
el: '#app',
render: h => h(App)
});按需引入
import Vue from 'vue';
import App from './app.vue';
import { Chat, ChatItem, ChatInput } from '@jump-mp/td-chat';
Vue.component('TChat', Chat);
Vue.component('TChatItem', ChatItem);
Vue.component('TChatInput', ChatInput);
new Vue({
el: '#app',
render: h => h(App)
});浏览器兼容性
- IE 11+
- Edge >= 16
- Chrome >= 49
- Firefox >= 45
- Safari >= 10
开源协议
MIT
