UNPKG
ship-view-ui-plus
Version:
latest (1.3.1)
1.3.1
A high quality UI components Library with Vue.js 3
www.iviewui.com
view-design/ViewUIPlus
ship-view-ui-plus
/
src
/
mixins
/
globalConfig.js
13 lines
(12 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ getCurrentInstance }
from
'vue'
;
export
default
{
data
() {
return
{
globalConfig
: {} } },
created
() {
const
instance =
getCurrentInstance
();
this
.
globalConfig
= instance.
appContext
.
config
.
globalProperties
.
$VIEWUI
; } }