Skip to content

Commit

Permalink
configurable option
Browse files Browse the repository at this point in the history
  • Loading branch information
HELMAB committed Jun 20, 2020
1 parent 29dfc22 commit 1275edc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ export default {

Vue.mixin({
created() {
if (options.hasOwnProperty('bg')) {
vm.bg = options.bg
}
if (options.hasOwnProperty('icon')) {
vm.icon = options.icon
}
if (options.hasOwnProperty('size')) {
vm.size = options.size
}
if (options.hasOwnProperty('icon_color')) {
vm.icon_color = options.icon_color
if (options!==null && options !== undefined) {
if (options.hasOwnProperty('bg')) {
vm.bg = options.bg
}
if (options.hasOwnProperty('icon')) {
vm.icon = options.icon
}
if (options.hasOwnProperty('size')) {
vm.size = options.size
}
if (options.hasOwnProperty('icon_color')) {
vm.icon_color = options.icon_color
}
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuejs-loading-screen",
"version": "1.0.6",
"version": "1.0.7",
"description": "Blocking screen while process worked",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1275edc

Please # to comment.