去除 i18n 的写法

Former-commit-id: bd347dcbc4c20f9b2b853f8e100b0d2ccbd3da40
This commit is contained in:
FairyEver
2019-07-17 19:55:55 +08:00
parent 6897317519
commit ff4f33c99a
@@ -15,18 +15,20 @@
import { mapState, mapMutations, mapActions } from 'vuex' import { mapState, mapMutations, mapActions } from 'vuex'
export default { export default {
name: 'd2-header-size', name: 'd2-header-size',
data () {
return {
options: [
{ label: '默认', value: 'default' },
{ label: '中', value: 'medium' },
{ label: '小', value: 'small' },
{ label: '最小', value: 'mini' }
]
}
},
computed: { computed: {
...mapState('d2admin/size', [ ...mapState('d2admin/size', [
'value' 'value'
]), ])
options () {
return [
{ label: this.$t('layout.header-aside.header-size.options.default'), value: 'default' },
{ label: this.$t('layout.header-aside.header-size.options.medium'), value: 'medium' },
{ label: this.$t('layout.header-aside.header-size.options.small'), value: 'small' },
{ label: this.$t('layout.header-aside.header-size.options.mini'), value: 'mini' }
]
}
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@@ -38,9 +40,9 @@ export default {
handleChange (value) { handleChange (value) {
this.sizeSet(value) this.sizeSet(value)
this.$notify({ this.$notify({
title: this.$t('public.notify.special.component-size.changed.title'), title: '提示',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
message: this.$t('public.notify.special.component-size.changed.message'), message: '已更新页面内 <b>组件</b> 的 <b>默认尺寸</b><br/>例如按钮大小,<b>非字号</b>',
type: 'success' type: 'success'
}) })
}, },