0.1.3 • Published 5 years ago

vue-image-painter v0.1.3

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

vue-image-painter

English | 简体中文

🌰 Example

Demo

Demo Source Code

🚀 QuickStart

  1. Install
yarn add vue-image-painter # OR npm i -S vue-image-painter
  1. Import
// main.js
import ImagePainter from 'vue-image-painter'
Vue.use(ImagePainter)
  1. Usage. Please refer to the Demo Source Code
<ImagePainter :src="https://www.images.com/a.jpg"></ImagePainter>

🔌 API

Props

NameDescriptionTypeDefault
srcimage URL. local images must be used require('')Stringundefined
altimage altStringundefined
animationanimation effect. optional key: 'draw','blur'String'draw'
durationanimation duration. unit: msNumber4000
immediatedisplay images and animations immediately, don't wait for the image to loadBooleanfalse

Events

NameDescriptionParameters
loadStartimage load startnull
loadEndimage load endnull

Slots

NameDescription
defaultThe content ImagePainter displays, before the image is loaded

😉😘 If it is helpful to you,please encourage me with a ⭐️Star ~

Thanks

Changelog

License

MIT

Copyright (c) 2018-present, momoko