npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-simples-loading

v0.1.6

Published

vue loading组件

Downloads

12

Readme

vue-simples-loading

vue自定义loading组件,内置三种常用loading(文字、图片、文字加图片混合),提示文字、加载图片、背景颜色、大小、透明度等全可自定义。

Usage

1:安装

npm install vue-simples-loading --save
or
yarn add vue-simples-loading

2:引入

在main.js中或者当前使用的组件内

// 导入组件
import Loading from 'vue-simples-loading'
import 'vue-simples-loading/lib/loading.css'

// 注册组件库
Vue.use(Loading);

3:使用

<Loading />

API

<Loading 
    :show="show" 
    :imgUrl="imgUrl" 
    :size="size" 
    :type="type" 
    :text="text" 
    :color="color"
    :bgColor="bgColor"
    :fontSize="fontSize"
    :opacity="opacity" />

show
[Boolean]
是否显示(非必填,默认:false) true/false

imgUrl
[String]
loading加载图片(必填,请提供【正方形】加载图,仅在type值为'img'或'mix'的时候生效)

size
[String]
loading区域背景尺寸(非必填,默认'45px',仅在type值为'img'或'mix'的时候生效)
注意:
1:如果配置type为'mix',size大小建议80px-100px,可根据自己实际需要调整。
2:除了px也可以用使用rem、em等。

type
[String]
加载类型(非必填,默认'text') text(纯文字)/img(纯图)/mix(混合,文字+图片)

text
[String]
加载文字(非必填,默认'loading...',仅在type值为'text'或'mix'的时候生效)

color
[String]
加载文字颜色(非必填,默认'#666',仅在type值为'text'或'mix'的时候生效)

bgColor
[String]
loading区域背景颜色(非必填,默认'#fff',仅在type值为'img'或'mix'的时候生效)

opacity
[Number]
loading整体背景遮罩层透明度(非必填,默认0.3)取值0-1之间

fontSize
[String]
加载文字大小(非必填,默认14px)

更新记录

===== 2019-07-28 ======
1:修复遮罩层层级
2:新增配置加载文字大小