Adding element-ui

parent 7978b5fe
...@@ -17,5 +17,8 @@ ...@@ -17,5 +17,8 @@
"laravel-mix": "^1.0", "laravel-mix": "^1.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"vue": "^2.1.10" "vue": "^2.1.10"
},
"dependencies": {
"element-ui": "^1.4.4"
} }
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
require('./bootstrap'); require('./bootstrap');
window.Vue = require('vue'); window.Vue = require('vue');
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import locale from 'element-ui/lib/locale/lang/en'
Vue.use(ElementUI, { locale });
/** /**
* Next, we will create a fresh Vue application instance and attach it to * Next, we will create a fresh Vue application instance and attach it to
...@@ -16,7 +20,11 @@ window.Vue = require('vue'); ...@@ -16,7 +20,11 @@ window.Vue = require('vue');
*/ */
Vue.component('example', require('./components/Example.vue')); Vue.component('example', require('./components/Example.vue'));
Vue.component('test', require('../../../Modules/Media/Assets/js/components/Example.vue'));
const app = new Vue({ const app = new Vue({
el: '#app' el: '#app',
data: function() {
return { visible: false }
}
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment