Commit 12fff7db authored by Z's avatar Z

Z: Dot: PC: Global style is done. Now button's style is same as design style.

parent 17e52b9e
...@@ -5,7 +5,7 @@ module.exports = { ...@@ -5,7 +5,7 @@ module.exports = {
}, },
'extends': [ 'extends': [
'plugin:vue/essential', 'plugin:vue/essential',
'@vue/standard' // '@vue/standard'
], ],
rules: { rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
......
...@@ -5,24 +5,26 @@ ...@@ -5,24 +5,26 @@
</template> </template>
<script> <script>
import util from '@/libs/util' import util from '@/libs/util'
export default {
name: 'app', export default {
watch: { name: 'app',
'$i18n.locale': 'i18nHandle' watch: {
}, '$i18n.locale': 'i18nHandle'
created () { },
this.i18nHandle(this.$i18n.locale) created() {
}, this.i18nHandle(this.$i18n.locale)
methods: { },
i18nHandle (val, oldVal) { methods: {
util.cookies.set('lang', val) i18nHandle(val, oldVal) {
document.querySelector('html').setAttribute('lang', val) util.cookies.set('lang', val)
document.querySelector('html').setAttribute('lang', val)
}
} }
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
@import '~@/assets/style/public-class.scss'; @import '~@/assets/style/public-class.scss';
</style> </style>
{"global":{"$--color-primary":"#4E59C7"},"local":{"$--button-default-background-color":"#E8E9FE","$--button-default-border-color":"#4E59C7","$--button-default-font-color":"#4E59C7"}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
// Element // Element
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/elementYbf02/theme/index.css'
// flex 布局库 // flex 布局库
import 'flex.css' import 'flex.css'
// 组件 // 组件
......
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