1.0.2 • Published 1 year ago

vue2-editor-chat v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Views

views

install

You can use Yarn or NPM

npm install vue2-editor-chat

OR

yarn add vue2-editor-chat

Usage

import { EditorChatVue2 } from 'vue2-editor-chat';

import 'vue2-editor-chat/vue2-editor-chat.css';

Props

NameTypeDefaultDescription
limitNumber3上传文件数量限制

Methods

NameParamsDescription
clearFiles清除上传文件列表
addMessage输入框插入HTML格式内容

Events

NameParamsDescription
sendMessagemessage,fileList发送消息按钮事件

Slots

NameParamsDescription
header上方工具栏
footer下方按钮栏

Examples

<template>
  <div>
    <EditorChatVue2 :limit="3" />
  </div>
</template>

<script>
import { EditorChatVue2 } from 'vue2-editor-chat';
import 'vue2-editor-chat/vue2-editor-chat.css';
export default{
  components:{
    EditorChatVue2
  }
}
</script>

<style lang="scss" scoped></style>
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago