Browse Source

增加全局配置element vue

haojianlong 4 years ago
parent
commit
6092598818
1 changed files with 14 additions and 0 deletions
  1. 14 0
      docs/.vuepress/enhanceApp.js

+ 14 - 0
docs/.vuepress/enhanceApp.js

@@ -0,0 +1,14 @@
+// .vuepress/enhanceApp.js
+// 全局注册 Element 组件库
+
+import Vue from 'vue'
+import Element from 'element-ui'
+import 'element-ui/lib/theme-chalk/index.css'
+
+export default ({
+        Vue,
+        options,
+        router
+    }) => {
+    Vue.use(Element)
+}