0.0.6 • Published 11 months ago

vue-img-editor-xx v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

简述

基于vue的图片编辑组件 image

示例

// 安装 
npm i vue-img-editor-xx
// 全局导入 main.js
import ImgEditor from 'vue-img-editor-xx'
Vue.use(ImgEditor)

// 单独导入
import {ImgEditor} from 'vue-img-editor-xx';

// 添加组件
{
    components: {
        ImgEditor
    },
    data:{
        value:"", // 图片地址
    },
    methods:{
        // 图片更改回调
        onChange(src){
            // 更改后的图片地址
            console.log(src)
        }
    }
}

// 使用
<template>
    <!-- pattern: edit | view -->
    <img-editor pattern="edit" v-model="value"  @change="onChange" />
</template>
0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago