Skip to content

Commit 9b39def

Browse files
committed
chore(deps): upgrade vue-global-config to v0.4
1 parent f095931 commit 9b39def

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"dependencies": {
6262
"lodash-es": "^4.17.21",
6363
"vue-demi": "^0.13.11",
64-
"vue-global-config": "^0.3.1"
64+
"vue-global-config": "^0.4.0"
6565
},
6666
"devDependencies": {
6767
"@antfu/eslint-config": "^0.34.1",

src/install.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useGlobalConfig } from 'vue-global-config'
1+
import { resolveConfig } from 'vue-global-config'
22
import type { Plugin, install } from 'vue-demi'
33
import Component from './Component'
44
import type { Mode } from './Component'
@@ -31,7 +31,7 @@ const globalHooks: Record<string, any> = {}
3131
const ComponentWithInstall = withInstall(Component)
3232

3333
ComponentWithInstall.install = (app: any, options = {}) => {
34-
const { props, attrs, listeners, hooks } = useGlobalConfig(options, Component.props)
34+
const { props, attrs, listeners, hooks } = resolveConfig(options, Component.props)
3535
Object.assign(globalProps, props)
3636
Object.assign(globalAttrs, attrs)
3737
Object.assign(globalListeners, listeners)

0 commit comments

Comments
 (0)