1.2.16 • Published 3 years ago

image-viewer-editor v1.2.16

Weekly downloads
175
License
MIT
Repository
-
Last release
3 years ago

image-demo

功能

本库主要用于图片的在线编辑,涉及旋转、缩放、裁切、涂鸦功能。

使用方式

npm安装

npm install -S image-viewer-editor @latest

安装后全局注入或局部引用

import ImageViewer from "image-viewer-editor";
Vue.use(ImageViewer);

<ImageViewer :imgUrl="imgUrl"
  :visible="show"
  @closed="show = false" />

使用提示

需要在vue.config.js中添加file-loader处理.cur文件,具体代码如下:

modules.export = {
  chainWebpack: config => {
    config.module.rule("file")
      .test(/\.(cur)$/)
      .use("file-loader")
      .loader("file-loader")
      .options({
        name: "assets/[name].[hash:8].[ext]"
      })
      .end()
  }
}
1.2.16

3 years ago

1.2.14

3 years ago

1.2.15

3 years ago

1.2.13

3 years ago

1.2.12

3 years ago

1.2.11

3 years ago

1.2.10

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago