@inyur/bg-random-image
v1.0.39
Published
## Install
Downloads
12
Readme
Inyur Background random image [nuxt-vue-component]
Install
- npm i -S @inyur/bg-random-image
Usage
import Vue from 'vue';
import InyurBgRandomImage from '@inyur/bg-random-image';
Vue.use(InyurBgRandomImage); // For global usage
export default {
// ...
components: {
InyurBgRandomImage // for local usage
}
// ...
}
<InyurBgRandomImage
apiImageUrl="/v1/random-image/page-login-background"
>
Some optional content
</InyurBgRandomImage>
##Slots ###Default Default slot can receive any content.
Props
apiImageUrl*
Required
Type: String
Default: /v1/random-image/default
fixHeight
Type: Bool
Default: false
updateInterval
Less than 1000 will disable updates
Type: Positive Integer
Default in prod: 60000
Default in dev: 10000