0.5.0 • Published 4 years ago

@signainfo/sloading v0.5.0

Weekly downloads
17
License
-
Repository
-
Last release
4 years ago

SLoading component

Installation

npm i --save @signainfo/sloading

Usage

It can be installed globally using:

import Vue from 'vue'
import SLoading from '@signainfo/sloading'
import '@signainfo/sloading/dist/sloading.css'
...

Vue.use(SLoading)

...

or used on demand:

<script>
import SLoading from '@signainfo/sloading'
export default {
  name: 'App',
  components: {
    's-loading': SLoading
  },
  data() {
    ...
  }
}
</script>

and use inside the template tag:

<template>
  ...
  <s-loading v-if="loading.show" :show="loading.show" :message="loading.message" />
  ...
</template>

Props:

props: {
    show: {
      type: Boolean,
      required: true,
      default: false
    },
    message: {
      type: String,
      required: true,
      default: ''
    }
}

Development

npm start // start the test app
npm run build // builds the component and publish to npm

Before building the component you need to advance the version using npm semver:

npm version patch // to patch version
npm version minor // to minor version
npm version major // to major version
0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago