# 安装

   npm install vue2-lay-editor

# 使用

import layEditor from "vue2-lay-editor";
  • 属性
    • content : 编辑器内容 Array
  • 事件
    • change : 编辑器内容发送变化的时候触发,返回编辑器的内容 Array
<lay-editor :content="content" @change="getValue"></lay-editor>
    data(){
        return {
            content:[], // 编辑器的值是一个数组
            options:{
                ...
            },
        }
    },
    methods:{
      // 编辑器内容发生变化触发
      getValue(data){
         console.log(data)
      },
    },