vue#PluginFunction TypeScript Examples
The following examples show how to use
vue#PluginFunction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.ts From fower with MIT License | 6 votes |
install: PluginFunction<any> = function installFower(app: typeof _Vue) {
if ((store.config as any).vuePluginInstalled) return
;(store.config as any).vuePluginInstalled = true
const opt: any = {}
if (isVue2) {
opt.bind = vcss.bind
} else {
opt.mounted = vcss.mounted
}
app.directive(vcss.name, opt)
}
Example #2
Source File: entry.ts From fower with MIT License | 6 votes |
install: PluginFunction<any> = function installFower(app: typeof _Vue) {
if ((store.config as any).vuePluginInstalled) return
;(store.config as any).vuePluginInstalled = true
const opt: any = {}
if (isVue2()) {
opt.bind = vcss.bind
} else {
opt.mounted = vcss.mounted
}
app.directive(vcss.name, opt)
}