because of some special requirements of our company, I am ready to develop with require.js+Vue+element UI now, but I want to put ELement-Ui for local use. I think the official website provides CDN links. How to download element-Ui files? I downloaded a copy of the source code of Element-Ui, but it doesn"t work well. My salted fish has come to an end, which god can give me some advice?
this is my basic require configuration code
requirejs.config({
baseUrl: "../js/logic/lib",//
/* paths: {
app: "../app"
} */
paths: {
"jquery": "jquery",
"vue": "vue",
"ELEMENT": "element-ui/src/index",
"echarts": "echarts.min",
"util": "util",
"common": "common",
"layer":"layer/layer"
},
map : {
"*" : {
"css" : "css"
}
},
shim:{
layer : {
deps : [ "jquery" ],
exports : "layer"
},
}
});
require([ "jquery","vue", "ELEMENT","layer"], function($,Vue,element, layer) {
/**
* AJAXlayer
*/
//element.install(Vue);
Vue.use(element)
// layer
layer.config({
path : "../js/logic/lib/layer/"
});
});
An import error is reported after referencing in this way.
ask which god to save my salted fish!