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 11// plugins.js
22
33// 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.
67
7- // import foo from '@/plugins/foo'
8- // var bar = {
8+ // import MyPlugin from '@/plugins/myplugin'
9+ //
10+ // or, directly here:
11+ //
12+ // var BarPlugin = {
913// hooks: {
10- // "baz-hook": MyComponent,
1114// "bar-hook": [BarComponent, BeezComponent]
1215// }
1316// }
1417
1518export default {
16- // foo ,
17- // bar
19+ // MyPlugin ,
20+ // BarPlugin
1821}
You can’t perform that action at this time.
0 commit comments