xiaoao-chat-website
v0.1.9
Published
小奥聊天组件
Downloads
73
Maintainers
Readme
xiaoao-chat-website
A Vue 3 chat component library with popup chat functionality.
Installation
npm install xiaoao-chat-website
# or
yarn add xiaoao-chat-website
# or
pnpm add xiaoao-chat-websiteUsage
Component List
FloatBall- Floating chat button
Using with Composition API
<template>
<div>
<!--
new-chat:是否显示新对话按钮 默认:true
contact-us:是否显示联系我们按钮 默认:true
is-download:是否显示下载导出 默认:false
-->
<FloatBall ref="FloatBallRef" />
</div>
</template>
<script setup>
import { ref } from 'vue'
import { FloatBall } from 'xiaoao-chat-website'
import 'xiaoao-chat-website/style.css'
const FloatBallRef = ref()
const open = () => {
FloatBallRef.value.open()
}
const close = () => {
FloatBallRef.value.close()
}
</script>Dependencies
This library depends on:
- Vue 3 (^3.5.29)
- Element Plus (^2.13.3)
- Other dependencies are included in the package
Development
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Project Setup
pnpm installCompile and Hot-Reload for Development
pnpm devBuild for Production (as library)
pnpm buildThis will generate the following files in the dist directory:
xiaoao-chat-website.js- ES module bundlexiaoao-chat-website.umd.cjs- UMD bundlestyle.css- Compiled styles
License
MIT
