fix(runtime-core): pass options to plugins (#561)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user