fix(runtime-core): pass options to plugins (#561)

This commit is contained in:
宋铄运
2019-12-24 23:33:47 +08:00
committed by Evan You
parent 6a14542f78
commit 4d20981eb0
2 changed files with 7 additions and 7 deletions

View File

@@ -242,13 +242,13 @@ describe('api: createApp', () => {
test('use', () => {
const PluginA: Plugin = app => app.provide('foo', 1)
const PluginB: Plugin = {
install: app => app.provide('bar', 2)
install: (app, arg1, arg2) => app.provide('bar', arg1 + arg2)
}
const PluginC: any = undefined
const app = createApp()
app.use(PluginA)
app.use(PluginB)
app.use(PluginB, 1, 1)
const Root = {
setup() {