File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,28 +58,28 @@ A Vue.js plugin should expose an `install` method. The method will be called wit
58
58
MyPlugin .install = function (Vue , options ) {
59
59
// 1. add global method or property
60
60
Vue .myGlobalMethod = function () {
61
- // something logic ...
61
+ // some logic ...
62
62
}
63
63
64
64
// 2. add a global asset
65
65
Vue .directive (' my-directive' , {
66
66
bind (el , binding , vnode , oldVnode ) {
67
- // something logic ...
67
+ // some logic ...
68
68
}
69
69
...
70
70
})
71
71
72
72
// 3. inject some component options
73
73
Vue .mixin ({
74
74
created : function () {
75
- // something logic ...
75
+ // some logic ...
76
76
}
77
77
...
78
78
})
79
79
80
80
// 4. add an instance method
81
81
Vue .prototype .$myMethod = function (methodOptions ) {
82
- // something logic ...
82
+ // some logic ...
83
83
}
84
84
}
85
85
```
You can’t perform that action at this time.
0 commit comments