File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
generator/template/src/plugins Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
// plugins.js
2
2
3
3
// this file should be generated automatically by your plugin system
4
- // it should export a default object which just refers to vue
5
- // components:
4
+ // It should export a default object which contains plugins.
5
+ // A plugin is a named index of "hooks" pointing to a list of Vue components
6
+ // implementing that hook.
6
7
7
- // import foo from '@/plugins/foo'
8
- // var bar = {
8
+ // import MyPlugin from '@/plugins/myplugin'
9
+ //
10
+ // or, directly here:
11
+ //
12
+ // var BarPlugin = {
9
13
// hooks: {
10
- // "baz-hook": MyComponent,
11
14
// "bar-hook": [BarComponent, BeezComponent]
12
15
// }
13
16
// }
14
17
15
18
export default {
16
- // foo ,
17
- // bar
19
+ // MyPlugin ,
20
+ // BarPlugin
18
21
}
You can’t perform that action at this time.
0 commit comments