A refined, customizable comment editor based on Vue
https://konglingwen94.github.io/comment-message-editor/index.html
npm install comment-message-editor
Register component
import Vue from 'vue'
import CommentEditor from 'comment-message-editor'
Vue.component(CommentEditor.name, CommentEditor)
Component render
<template>
<comment-editor></comment-editor>
</template>
Name | Description | Type | Default |
---|---|---|---|
inline | 是否横向显示 | Boolean | false |
buttonText | 提交按钮文案 | String | 发送 |
Name | Description | Parameter |
---|---|---|
focus | 激活输入框 | - |
Name | Description | Parameter |
---|---|---|
submit | 输入框内容提交后触发 | 输入框写入的内容 |