vue-simple-spinner

WebJar for vue-simple-spinner

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

vue-simple-spinner
Последняя версия

Последняя версия

1.2.10
Дата

Дата

Тип

Тип

jar
Описание

Описание

vue-simple-spinner
WebJar for vue-simple-spinner
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/dzwillia/vue-simple-spinner

Скачать vue-simple-spinner

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vue-simple-spinner/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vue-simple-spinner</artifactId>
    <version>1.2.10</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vue-simple-spinner/
implementation 'org.webjars.npm:vue-simple-spinner:1.2.10'
// https://jarcasting.com/artifacts/org.webjars.npm/vue-simple-spinner/
implementation ("org.webjars.npm:vue-simple-spinner:1.2.10")
'org.webjars.npm:vue-simple-spinner:jar:1.2.10'
<dependency org="org.webjars.npm" name="vue-simple-spinner" rev="1.2.10">
  <artifact name="vue-simple-spinner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vue-simple-spinner', version='1.2.10')
)
libraryDependencies += "org.webjars.npm" % "vue-simple-spinner" % "1.2.10"
[org.webjars.npm/vue-simple-spinner "1.2.10"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

vue-simple-spinner

A simple, flexible spinner for Vue.js

vue-simple-spinner is designed to be a lightweight Vue.js spinner requiring minimal configuration.

Documentation

https://github.com/dzwillia/vue-simple-spinner/

Demo

https://dzwillia.github.io/vue-simple-spinner/examples

Requirements

Browser support

IE 10+ (due to CSS animation support).

Installation

NPM

npm install vue-simple-spinner --save

Usage

All styling for this component is done via computed styles in the Spinner.vue component and requires no external CSS files.

ES6

The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.

import Vue from 'vue'
import Spinner from 'vue-simple-spinner'

new Vue({
  components: {
    Spinner
  }
})

Globals (script tag)

Add a script tag pointing to dist/vue-simple-spinner.min.js after adding Vue.

Example:

<html>
<head>
  ...
</head>
<body>
  <div id="app">
    <vue-simple-spinner></vue-simple-spinner>
  </div>

  <script src="path/to/vue.js"></script>
  <script src="path/to/vue-simple-spinner.js"></script>
  <script>
    new Vue({
      el: '#app'
    })
  </script>
</body>
</html>

Examples

Medium size

<vue-simple-spinner size="medium" />

Custom line color

<vue-simple-spinner line-fg-color="#009900" />

Custom font size and message

<vue-simple-spinner spacing="55" message="I'm 55px below the vue-simple-spinner" />

More live code examples on JSFiddle

Options

Props Type Values Default
size Number | String tiny, small, medium, large, huge, massive, {n} 32
line-size Number Any Number 3
line-bg-color String Color #eee
line-fg-color String Color #2196f3
speed Number Number (in seconds) 0.8
spacing Number Number (in pixels) 4
message String Text to display (empty string)
font-size Number Number (in pixels) 13
text-fg-color String Color #555

License

vue-simple-spinner is open source and released under the MIT License.

Copyright (c) 2017 David Z Williams.

PS: I would love to know if you're using vue-simple-spinner. Tweet to me at @padredaveo.

Версии библиотеки

Версия
1.2.10
1.2.8