Skip to content

Commit 0044830

Browse files
author
User
committed
fixed Global API commands
1 parent 843683e commit 0044830

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

apis/optionscomposition.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const chalk = require('chalk')
2+
const custom = require('../customcolors')
3+
const colorComment = custom.colorComment
4+
const colorPrimitive = custom.colorPrimitive
5+
const colorError = custom.colorError
6+
const colorArgs = custom.colorArgs
7+
8+
const cat = 'Options/Composition'
9+
10+
const PARENT = {}
11+
12+
const MIXINS = {}
13+
14+
const

vue-help.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,67 +70,67 @@ V.command('productionTip', 'Global Config: #productionTip').action(function(args
7070

7171
// Global API
7272

73-
V.command('extend', 'Global API: #Vue.extend(options)').action(function(args, callback){
73+
V.command('Vue.extend', 'Global API: #Vue.extend(options)').action(function(args, callback){
7474
const ext = ga[0]
7575
this.log(LGA.logGlobalAPI(ext))
7676
callback()
7777
})
7878

79-
V.command('nextTick', 'Global API: #Vue.nextTick([callback,context])').action(function(args, callback){
79+
V.command('Vue.nextTick', 'Global API: #Vue.nextTick([callback,context])').action(function(args, callback){
8080
const nextTick = ga[1]
8181
this.log(LGA.logGlobalAPI(nextTick))
8282
callback()
8383
})
8484

85-
V.command('set', 'Global API: #Vue.set(target,key,value)').action(function(args, callback){
85+
V.command('Vue.set', 'Global API: #Vue.set(target,key,value)').action(function(args, callback){
8686
const st = ga[2]
8787
this.log(LGA.logGlobalAPI(st))
8888
callback()
8989
})
9090

91-
V.command('delete', 'Global API: #Vue.delete(target,key)').action(function(args, callback){
91+
V.command('Vue.delete', 'Global API: #Vue.delete(target,key)').action(function(args, callback){
9292
const dlt = ga[3]
9393
this.log(LGA.logGlobalAPI(dlt))
9494
callback()
9595
})
9696

97-
V.command('directive', 'Global API: #Vue.directive(id,[definition])').action(function(args, callback){
97+
V.command('Vue.directive', 'Global API: #Vue.directive(id,[definition])').action(function(args, callback){
9898
const dir = ga[4]
9999
this.log(LGA.logGlobalAPI(dir))
100100
callback()
101101
})
102102

103-
V.command('filter', 'Global API: #Vue.filter(id,[definition])').action(function(args, callback){
103+
V.command('Vue.filter', 'Global API: #Vue.filter(id,[definition])').action(function(args, callback){
104104
const flt = ga[5]
105105
this.log(LGA.logGlobalAPI(flt))
106106
callback()
107107
})
108108

109-
V.command('component', 'Global API: #Vue.component(id,[definition])').action(function(args, callback){
109+
V.command('Vue.component', 'Global API: #Vue.component(id,[definition])').action(function(args, callback){
110110
const c= ga[6]
111111
this.log(LGA.logGlobalAPI(c))
112112
callback()
113113
})
114114

115-
V.command('use', 'Global API: #Vue.use(plugin)').action(function(args, callback){
115+
V.command('Vue.use', 'Global API: #Vue.use(plugin)').action(function(args, callback){
116116
const u = ga[7]
117117
this.log(LGA.logGlobalAPI(u))
118118
callback()
119119
})
120120

121-
V.command('mixin', 'Global API: #Vue.mixin(mixin)').action(function(args, callback){
121+
V.command('Vue.mixin', 'Global API: #Vue.mixin(mixin)').action(function(args, callback){
122122
const m = ga[8]
123123
this.log(LGA.logGlobalAPI(m))
124124
callback()
125125
})
126126

127-
V.command('compile', 'Global API: #Vue.compile(template)').action(function(args, callback){
127+
V.command('Vue.compile', 'Global API: #Vue.compile(template)').action(function(args, callback){
128128
const c = ga[9]
129129
this.log(LGA.logGlobalAPI(c))
130130
callback()
131131
})
132132

133-
V.command('version', 'Global API: #Vue.version').action(function(args, callback){
133+
V.command('Vue.version', 'Global API: #Vue.version').action(function(args, callback){
134134
const v = ga[10]
135135
this.log(LGA.logGlobalAPI(v))
136136
callback()

0 commit comments

Comments
 (0)