Socket
Book a DemoInstallSign in
Socket

vue-slim-loading

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-slim-loading

💇 开箱即用的 vue 加载组件,改造于 ElementUI/Loading

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

vue-slim-loading

✨ 特性

  • 开箱即用/极简使用
  • 体积:6k

🐠 示例&文档

Demo

Demo 源码

🚀 快速开始

  • 安装
yarn add vue-slim-loading # 或 npm i -S vue-slim-loading
  • 引入
// main.js
import Loading from 'vue-slim-loading'
Vue.use(Loading)
<!-- 任意元素中使用指令 v-loading -->
<section v-loading="true">瀑布的水逆流而上</section>

🔌 API

Directives

指令说明类型默认值
v-loading是否显示Booleanfalse

Options

选项说明类型默认值
text文本显示Stringnull
color颜色String'#409EFF'
maskClass遮罩样式类Arraynull
loadingClass加载样式类Arraynull
textClass文本样式类Arraynull
// main.js
import Loading from 'vue-slim-loading'
Vue.use(Loading, { text: '加载中', color: 'green' })

Attributes

Attribute 将会覆盖 Option

属性说明类型默认值
loading-text文本显示Stringnull
loading-color颜色String'#409EFF'
<section v-loading="true" loading-text="加载中">瀑布的水逆流而上</section>

Slots

名称说明
defaultloading 内容


😉😘 如果它对你有所帮助,可以点一下 ⭐️Star ~

License

MIT

Copyright (c) 2018-present, momoko

Keywords

vue

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts