0.0.15 • Published 11 months ago

chat-input-plus v0.0.15

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

chat-input-plus

基于chat-input-next进行修改的聊天输入框组件

支持

暂时支持图片,视频,文件等插入,支持图片,视频,文件的复制,@逻辑

原项目地址

https://gitee.com/guJyang/chat-input-next

使用方法

import { ChatInputPlus } from 'chat-input-plus' import "chat-input-plus/dist/style.css"

支持事件增加

方法名说明参数
clearData清除内容-
insertContent插入内容*html: string | HTMLElement, atStr?: string
displayAtPopover返回@列表是否在显示-
exportHtml输出内容的html-

支持属性增加

属性名说明例子参数
atEachMemberDefine自定义@列表定义{ name: 'cutname', id: 'guid', avatar: 'icon'}与原参数名一一对应
atUserList@的列表[{name: 'codesigner',avatar:'xxxx'},{name: 'react',avatar:'xxxx'}]使用原项目定义/any[]
offset@列表的偏移{x:0,y:0}{x:number,y:number}
disable禁用-boolen
onlyText只使用文本内容-boolen

使用自定义atUserList需要与atEachMemberDefine一起使用

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

12 months ago

0.0.2

12 months ago