Skip to content

konglingwen94/comment-message-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

import Vue from 'vue'
import CommentEditor from 'comment-message-editor'

Vue.component(CommentEditor.name, CommentEditor)

Component render

<template>
  <comment-editor></comment-editor>

</template>

Screenshots

comment-editor comment-editor

Props

Name Description Type Default
inline 是否横向显示 Boolean false
buttonText 提交按钮文案 String 发送

Methods

Name Description Parameter
focus 激活输入框 -

Events

Name Description Parameter
submit 输入框内容提交后触发 输入框写入的内容