|
@@ -4,6 +4,10 @@ import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
|
|
|
|
|
|
import ElementUI from 'element-ui'
|
|
import ElementUI from 'element-ui'
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
|
|
+import './assets/styles/element-variables.scss'
|
|
|
|
|
+import '@/assets/styles/index.scss' // global css
|
|
|
|
|
+// import '@/assets/styles/ruoyi.scss' // ruoyi css
|
|
|
|
|
+
|
|
|
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
|
|
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
|
|
|
import zh from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
|
|
import zh from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
|
|
|
import directive from './directive'
|
|
import directive from './directive'
|
|
@@ -48,11 +52,17 @@ Vue.prototype.getMonthDate = getMonthDate
|
|
|
Vue.component('DictTag', DictTag)
|
|
Vue.component('DictTag', DictTag)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+// 修改 el-dialog 默认点击遮照为不关闭
|
|
|
|
|
+ElementUI.Dialog.props.closeOnClickModal.default = false
|
|
|
|
|
|
|
|
|
|
+Vue.use(ElementUI, {
|
|
|
|
|
+ locale: zh,
|
|
|
|
|
+ size: 'mini' // set element-ui default size
|
|
|
|
|
+})
|
|
|
// set ElementUI lang to EN
|
|
// set ElementUI lang to EN
|
|
|
// Vue.use(ElementUI, { locale })
|
|
// Vue.use(ElementUI, { locale })
|
|
|
// 如果想要中文版 element-ui,按如下方式声明
|
|
// 如果想要中文版 element-ui,按如下方式声明
|
|
|
-Vue.use(ElementUI, {locale: zh})
|
|
|
|
|
|
|
+// Vue.use(ElementUI, {locale: zh})
|
|
|
Vue.use(directive)
|
|
Vue.use(directive)
|
|
|
Vue.use(auth)
|
|
Vue.use(auth)
|
|
|
DictData.install()
|
|
DictData.install()
|