Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aidol/vue-laydal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aidol/vue-laydal

A popup component for vue.js

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@aidol/vue-laydal

A popup component for vue.js.

Introduce

  • loading 加载提示服务。其中定义了 3 种动画效果。

Installation

Using npm

$ npm install @aidol/vue-laydal --save

Usage

// mian.js
import Vue from 'vue'
import laydal from '@aidol/vue-laydal'

Vue.use(laydal)

// new Vue({ //...})

Loading 服务的使用

使用方式

const loadingInstance = new this.$LayLoading()

loadingInstance.open();  //开启 loading

// 随后使用 `loadingInstance.close()` 关闭 loading 即可

按需导入

import { LayLoading } from '@aidol/vue-laydal'
const loadingInstance = new LayLoading()

Loading配置

你可以向构造函数传入选项配置。

const loadingInstance = new LayLoading({ theme : "wave" , bgcolor: "red"})
选项类型默认值可选值描述
themeStringthree-bouncefading-circle , wave动画类型
bgcolorString#27A2FF(淡蓝)合法的 css 颜色值设置loading 的颜色

Logs

2018-10-23 新增 loading 功能

2020-4-17 去除 modellayer

Keywords

FAQs

Package last updated on 17 Apr 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc