esvcp-ui-pc
Version:
ESLink Vue Common Package UI - runtime and build UI on Vue For PC
55 lines (49 loc) • 1.67 kB
JavaScript
import imageViewer from './components/imageViewer/imageViewer.vue';
import header from './components/header/header.vue';
import h1 from './components/h1/h1.vue';
import selectSearch from './components/selectSearch/selectSearch.vue';
import form from './components/form/form.vue';
import modal from './components/modal/modal.vue';
import table from './components/table/table.vue';
import info from './components/info/info.vue';
import information from './components/information/information.vue';
import simpleTable from './components/simpleTable/simpleTable.vue';
import tree from './components/tree/tree.vue';
import twoColWrapper from './components/twoColWrapper/twoColWrapper.vue';
import threeWrapper from './components/threeColWrapper/threeColWrapper.vue';
import confirmModal from './components/confirmModal/confirmModal.vue';
import barChart from './components/barChart/barChart.vue';
import pieChart from './components/pieChart/pieChart.vue';
// todo
// import iview from 'iview/src/index';
import iview from 'iview';
import './assets/less/index.less';
import './assets/iconfont/iconfont.css';
import './assets/scss/common.scss';
const components = [
imageViewer,
header,
modal,
h1,
selectSearch,
twoColWrapper,
threeWrapper,
form,
table,
info,
information,
simpleTable,
tree,
confirmModal,
barChart,
pieChart
];
const install = function(Vue, options) {
Vue.use(iview);
if (install.installed) return;
components.map(component => Vue.component(component.name, component));
};
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export default install;