UNPKG
vue-wait
Version:
latest (1.5.3)
1.5.3
1.5.2
1.5.1
1.5.0
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
Vue Plugin for Global Loading Management
github.com/f/vue-wait
f/vue-wait
vue-wait
/
nuxt
/
vue-wait-plugin.template.js
11 lines
(8 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
Vue
from
'vue'
;
import
VueWait
from
'vue-wait'
;
Vue
.
use
(
VueWait
);
// add VueLoading as Vue plugin
export
default
({app}) => {
// inject options from module
const
pluginOptions = [<%=
serialize
(options) %>][
0
] app.
wait
=
new
VueWait
(pluginOptions) }