vue-loading-x

1.0.0 • Public • Published

基于vue的全局loading

NPM

npm install vue-loading-x --save-dev

Example

/*在main.js内*/
import Loading from 'vue-loading-x';
vue.use(Loading);

/*在组件内*/
new Vue({
    methods: {
        showLoading () {
            this.$loadingX.show();
        },
        hideLoading () {
            this.$loadingX.hide();
        }
    }
})

Api

参数

Name Type Default Description
show Function 显示
hide Function 隐藏

Package Sidebar

Install

npm i vue-loading-x

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

5.29 kB

Total Files

5

Last publish

Collaborators

  • misterxu