|
@@ -22,7 +22,7 @@ import './assets/styles/element-variables.scss'
|
|
|
// import VXETable from 'vxe-table'
|
|
|
import XEUtils from 'xe-utils'
|
|
|
import 'vxe-table/lib/style.css'
|
|
|
-import { VXETable, Column,Table } from 'vxe-table'
|
|
|
+import { VXETable, Column,Table,Modal } from 'vxe-table'
|
|
|
import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
|
|
|
// 按需加载的方式默认是不带国际化的,自定义国际化需要自行解析占位符 '{0}',例如:
|
|
|
VXETable.setup({
|
|
@@ -31,11 +31,16 @@ VXETable.setup({
|
|
|
|
|
|
import gmComponent from './benyun/plugins/componentRegister'
|
|
|
|
|
|
+//组件注册
|
|
|
+import productDialog from './components/productDialog/productDialog.vue'
|
|
|
+Vue.component('productDialog', productDialog);
|
|
|
+
|
|
|
+
|
|
|
Vue.use(Element, {
|
|
|
size: Cookies.get('size') || 'medium' // set element-ui default size
|
|
|
})
|
|
|
|
|
|
-Vue.use(Column).use(Table);
|
|
|
+Vue.use(Column).use(Table).use(Modal);
|
|
|
Vue.use(gmComponent);
|
|
|
Vue.use(plugins);
|
|
|
Vue.use(directive);
|
|
@@ -46,6 +51,7 @@ Vue.config.productionTip = false
|
|
|
Vue.prototype.$request = request;
|
|
|
Vue.prototype.$lodash = lodash;
|
|
|
Vue.prototype.$download = download; //下载
|
|
|
+Vue.prototype.$XModal = VXETable.modal
|
|
|
|
|
|
new Vue({
|
|
|
router,
|