A Vue image component. Simple realization of image shadow.
Online: https://image-component.github.io/vue-image-shadow/
https://github.com/one-template/vue-component-template
npm i vue-image-shadow
# or
yarn add vue-image-shadow
// main.js
import ImageShadow from 'vue-image-shadow'
Vue.component('image-shadow', ImageShadow)
Property | Description | Type | Required | Default | Version |
---|---|---|---|---|---|
alt | The alt of the image. | string | β | - | 1.1.0 |
className | Component extra class. | string | β | - | 1.0.0 |
shadowBlur | The shadow blur of the image. | number | β | 20 | 1.0.0 |
shadowHover | Whether to support the mouse hover. | boolean | β | false | 1.0.0 |
shadowRadius | The border radius of the image. | number | β | 8 | 1.0.0 |
src | The src of the image. | string | β | - | 1.0.0 |
width | The width of the image. | number | β | 300 | 1.0.0 |
yarn
yarn start