comment-message-editor

1.0.1 • Public • Published

comment-message-editor

A refined, customizable comment editor based on Vue

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 输入框内容提交后触发 输入框写入的内容

Package Sidebar

Install

npm i comment-message-editor

Weekly Downloads

27

Version

1.0.1

License

ISC

Unpacked Size

2.39 MB

Total Files

80

Last publish

Collaborators

  • konglingwen