layout i18n
Former-commit-id: e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly 3cc73e4d679f97554d2c1f8f253bc4d6447694c1 [formerly a05de779fd7fb56b722cdb448baee6b1d44208ed]]]]] Former-commit-id: 02aa23fd3e50eb0780d75b3bc9c5209dbf1f0e67 Former-commit-id: b21e3fe71b527439904a1a574e3d3a3032bcef09 Former-commit-id: bba111d14373493a4ef35318bfb7f41c8c388914 [formerly c1dd1cdbe86b65faff26c35db32d1ee942a97054] Former-commit-id: d2c677083ddb6e285ea033ce8e62432ca2a89907 Former-commit-id: 8fa9b2196bc47bf6bf97b1355630eb443c4d2564 Former-commit-id: ec58dc5a2aff6a11fa31144035ca0bd250acbe63 Former-commit-id: 27ef4661fcb60de5968ce0b75d7d006774f88f0c Former-commit-id: 352e82ebff5f22931fae48cb2525ad9867a98fa6
This commit is contained in:
@@ -15,20 +15,18 @@
|
||||
import { mapState, mapMutations, mapActions } from 'vuex'
|
||||
export default {
|
||||
name: 'd2-header-size',
|
||||
data () {
|
||||
return {
|
||||
options: [
|
||||
{ label: '默认', value: 'default' },
|
||||
{ label: '中', value: 'medium' },
|
||||
{ label: '小', value: 'small' },
|
||||
{ label: '最小', value: 'mini' }
|
||||
]
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState('d2admin/size', [
|
||||
'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' }
|
||||
]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 注意 这里是关键
|
||||
@@ -61,9 +59,9 @@ export default {
|
||||
handleChange (value) {
|
||||
this.sizeSet(value)
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
title: this.$t('public.notify.special.component-size.changed.title'),
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: '已更新页面内 <b>组件</b> 的 <b>默认尺寸</b><br/>例如按钮大小,<b>非字号</b>',
|
||||
message: this.$t('public.notify.special.component-size.changed.message'),
|
||||
type: 'success'
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user