https://github.com/konglingwen94/comment-message-editor
:writing_hand: A refined, customizable comment editor
https://github.com/konglingwen94/comment-message-editor
comment comment-editor comment-message-editor editor message-editor
Last synced: 9 months ago
JSON representation
:writing_hand: A refined, customizable comment editor
- Host: GitHub
- URL: https://github.com/konglingwen94/comment-message-editor
- Owner: konglingwen94
- Created: 2020-03-25T07:13:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T16:24:29.000Z (over 3 years ago)
- Last Synced: 2025-04-09T10:27:15.726Z (about 1 year ago)
- Topics: comment, comment-editor, comment-message-editor, editor, message-editor
- Language: Vue
- Homepage: https://konglingwen94.github.io/comment-message-editor/index.html
- Size: 1.59 MB
- Stars: 13
- Watchers: 1
- Forks: 8
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# comment-message-editor
A refined, customizable comment editor based on Vue
## Live Demo
>https://konglingwen94.github.io/comment-message-editor/index.html
## Install
> npm install comment-message-editor
## How to use
> Register component
```javascript
import Vue from 'vue'
import CommentEditor from 'comment-message-editor'
Vue.component(CommentEditor.name, CommentEditor)
```
> Component render
```HTML
```
## Screenshots


## Props
| Name | Description | Type | Default |
| :--------: | :----------: | :-----: | :-----: |
| inline | 是否横向显示 | Boolean | false |
| buttonText | 提交按钮文案 | String | 发送 |
## Methods
| Name | Description | Parameter |
| :---: | :---------: | :-------: |
| focus | 激活输入框 | - |
## Events
| Name | Description | Parameter |
| :----: | :------------------: | :--------------: |
| submit | 输入框内容提交后触发 | 输入框写入的内容 |