Skip to content

Commit fc6aed1

Browse files
committed
configurable option
1 parent 126fbcc commit fc6aed1

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ npm i --save vuejs-loading-screen
1717
import Vue from 'vue'
1818
import loading from 'vuejs-loading-screen'
1919

20-
Vue.use(loading, {
21-
bg: '#41b883ad',
22-
icon: 'refresh',
23-
size: 3,
24-
icon_color: 'white',
25-
})
20+
Vue.use(loading)
2621
```
2722

2823
```vue
@@ -48,11 +43,23 @@ Vue.use(loading, {
4843
</script>
4944
```
5045

46+
## Customization
47+
48+
If you want to modify such background, icon size, color, type, you just configure options such:
49+
```js
50+
Vue.use(loading, {
51+
bg: '#41b883ad',
52+
icon: 'refresh',
53+
size: 3,
54+
icon_color: 'white',
55+
})
56+
```
57+
5158
## Configurations
5259

5360
| Option | Value | Description |
5461
| ------------- | -------------| -----|
55-
| bg | `default: '41b883ad'` | : color string |
62+
| bg | `default: '#41b883ad'` | : color string |
5663
| icon | `deault: 'spinner'` | : support font-awesome |
5764
| size | `default: '3'` | : {1, 2, 3, 4, 5} string |
5865
| icon_color | `default: '#ffffff'` | : color string |

assets/screenshot.png

430 Bytes
Loading

0 commit comments

Comments
 (0)