0.1.4 • Published 4 years ago

bravo-skeleton v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

bravo-skeleton

Extend from element-loading,it means u can use almost most functions of v-loading

install

npm i bravo-skeleton

//main.js
import bravoSkeleton from "bravo-skeleton"
Vue.install(bravoSkeleton)

tips

As default,the directive will show loading status.
if u use .block .pics .texts .circle modifies,it will show skeleton effect.
<div style="background-color: #334880;height: 900px"  v-skeleton.block.texts.circle.pics="loading"></div>

recommend combinations

1.[.block].circle.texts.pics
2.[.block].list
3.[.block].image

Skeleton-Options

AttributeDescriptionTypeAccepted ValuesDefault
blocktransform a inline element to inline-blockbooleanfalse
circlea circle prepend to the head of contextbooleanfalse
textsa self-computed component of text style skeletonbooleanfalse
picsa self-computed component of picture style skeletonbooleanfalse
lista self-computed component of list style skeleton,once u use this,the circle,texts,pics will not activebooleanfalse
imagea image skeletonbooleanfalse

Origin-Options

AttributeDescriptionTypeAccepted ValuesDefault
targetthe DOM node Loading needs to cover. Accepts a DOM object or a string. If it's a string, it will be passed to document.querySelector to get the corresponding DOM nodeobject/stringdocument.body
bodysame as the body modifier of v-skeletonbooleanfalse
fullscreensame as the fullscreen modifier of v-skeletonbooleantrue
locksame as the lock modifier of v-skeletonbooleanfalse
textloading text that displays under the spinnerstring
spinnerclass name of the custom spinnerstring
backgroundbackground color of the maskstring
customClasscustom class name for Loadingstring

--from dongjiayun

0.1.4

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago