2.0.3 • Published 12 months ago

jwchat v2.0.3

Weekly downloads
70
License
MIT
Repository
-
Last release
12 months ago

JwChat

介绍

一款基于 Vue 和 ElementPlus 的极简的聊天框组件 本项目是一款极简的数据驱动为主的聊天框组件。 新增表情包可自动匹配微信表情。 新增聊天窗口配置组件,可以自由配置 顶部状态栏 和 右侧信息栏

示例1

示例2

安装

建议您使用包管理器(如 NPM、Yarn 或 pnpm)安装 JwChat,

使用npm安装。

npm install jwchat

使用yarn安装。

yarn add jwchat

使用pnpm安装。

pnpm install jwchat

如果您的网络环境不好,建议使用相关镜像服务 cnpm 或 中国 NPM 镜像。

使用

  1. main.js 中引入组件
import JwChat from "jwchat";
import "jwchat/style.css";

app.use(JwChat);
  1. *.vue 中使用
<JwChat
  :taleList="list"
  @enter="bindEnter"
  v-model="inputMsg"
  :showRightBox="true"
  scrollType="noscroll"
/>

以文件的形式在本地直接引入

请不要放在public 文件夹中。import public 文件夹中的文件中的 js,在打包时不参与编译会报错

  1. lib代码放在/src/assets文件夹中

  2. main.ts 中引入组件

import JwChat from "./assets/lib/JwChat.es.js";
import "./assets/lib/style.css";

createApp(App).use(JwChat).mount("#app");
  1. *.vue 中使用
<JwChat
  :taleList="list"
  @enter="bindEnter"
  v-model="inputMsg"
  :showRightBox="true"
  scrollType="noscroll"
/>
  1. 如果项目使用的是typescript 需要在src目录下*.d.ts中声明类型。
// env.d.ts 或者 vite-env.d.ts
declare module "*/JwChat.es.js";

文档

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

推荐项目

交流学习

  • QQ 群 : 235689934 (已满)
  • QQ 群 : 791302027
2.0.3

12 months ago

2.0.2

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.50

4 years ago

0.2.49

4 years ago

0.2.49-0

4 years ago

0.2.48

5 years ago

0.2.47

5 years ago

0.2.46

5 years ago

0.2.45

5 years ago

0.2.44

5 years ago

0.2.43

5 years ago

0.2.42

5 years ago

0.2.41

5 years ago

0.2.40

5 years ago

0.2.37

5 years ago

0.2.36

5 years ago

0.2.35

5 years ago

0.2.34

5 years ago

0.2.33

5 years ago

0.2.32

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.31

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.11

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago