parent
bf84ac8396
commit
056cac9185
@ -13,8 +13,10 @@ import { isFunction, NO, isObject } from '@vue/shared'
|
|||||||
import { warn } from './warning'
|
import { warn } from './warning'
|
||||||
import { createVNode, cloneVNode, VNode } from './vnode'
|
import { createVNode, cloneVNode, VNode } from './vnode'
|
||||||
import { RootHydrateFunction } from './hydration'
|
import { RootHydrateFunction } from './hydration'
|
||||||
|
import { version } from '.'
|
||||||
|
|
||||||
export interface App<HostElement = any> {
|
export interface App<HostElement = any> {
|
||||||
|
version: string
|
||||||
config: AppConfig
|
config: AppConfig
|
||||||
use(plugin: Plugin, ...options: any[]): this
|
use(plugin: Plugin, ...options: any[]): this
|
||||||
mixin(mixin: ComponentOptions): this
|
mixin(mixin: ComponentOptions): this
|
||||||
@ -126,6 +128,8 @@ export function createAppAPI<HostElement>(
|
|||||||
_container: null,
|
_container: null,
|
||||||
_context: context,
|
_context: context,
|
||||||
|
|
||||||
|
version,
|
||||||
|
|
||||||
get config() {
|
get config() {
|
||||||
return context.config
|
return context.config
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user