1.0.4 • Published 5 years ago

vuejs-loading v1.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Installation

npm i vuejs-loading --save

Usage

//main.js
import Loading from 'vuejs-loading';
Vue.use(Loading);

//.vue files
/*show component*/
this.$loading.show({text:'hello world'});
/*close component*/
this.$loading.close();

Preview

vuejs-loading

Option

use option to custom the component.
option is an object.
Use option in the following ways:

  • Set option once.
this.$loading.show(option);
  • Set option globally, the next time you show the component, option would still be effective.
Vue.use(Loading, option);

option available:

keytypedefaultdescription
textstring"加载中..."loading text
maskbooleantruewhether to show a fullscreen,transparent mask
callbackfunctionfunction to call when loading is closed
durationnumberauto close time, 1000 = 1 second; without duration, loading exists permanently

License

The MIT License

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago