File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ npm install vue-multiple-progress -S
13
13
``` bash
14
14
import Vue from ' vue'
15
15
import Progress from ' vue-multiple-progress'
16
- Vue.use(' VmProgress' , Progress)
16
+ # Vue.component('vm-progress', Progress) # 可以指定组件名称
17
+ Vue.use(Progress) # 组件名称 `vm-progress`
17
18
```
18
19
19
20
For more information, please refer to [ Progress] ( https://vue-multiple.github.io/progress ) in our documentation.
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import Vue from 'vue'
2
2
import App from './App.vue'
3
3
4
4
import Progress from '../../src/index.js'
5
- Vue . component ( Progress . name , Progress )
5
+ // Vue.component('vm-progress', Progress)
6
+ Vue . use ( Progress )
6
7
7
8
import VueDemonstration from 'vue-demonstration'
8
9
Vue . component ( 'demonstration' , VueDemonstration )
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ if (typeof window !== 'undefined' && window.Vue) {
10
10
Vue . component ( 'VmProgress' , Progress )
11
11
}
12
12
13
+ Progress . install = install
14
+
13
15
export default Progress
You can’t perform that action at this time.
0 commit comments