Fixed: Fixed PT-BR language adaptation issue

This commit is contained in:
zhaojisen
2025-02-13 16:25:52 +08:00
committed by ZhaoJiSen
parent 1c222c3ce0
commit f2e6f89c08
8 changed files with 13 additions and 14 deletions

View File

@@ -65,7 +65,17 @@ export default {
isDeactivated: false
}
},
computed: {},
computed: {
dynamicActionWidth() {
if (this.$i18n.locale === 'en') {
return '120px'
}
if (this.$i18n.locale === 'pt-br') {
return '160px'
}
return '100px'
}
},
watch: {
config: {
handler: _.debounce(function(iNew, iOld) {
@@ -131,7 +141,7 @@ export default {
prop: 'actions',
label: i18n.t('Actions'),
align: 'center',
width: '100px',
width: this.dynamicActionWidth,
formatter: ActionsFormatter,
fixed: 'right',
formatterArgs: {}

View File

@@ -24,12 +24,7 @@ export default {
tableConfig: {
url: '/api/v1/accounts/accounts/',
hasLeftActions: true,
hasImport: true,
columnsMeta: {
actions: {
width: this.$i18n.locale === 'pt-br' ? '120px' : '100px'
}
}
hasImport: true
},
treeSetting: {
showMenu: false,

View File

@@ -59,7 +59,6 @@ export default {
}
},
actions: {
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
formatterArgs: {
hasDelete: false,
hasUpdate: false,

View File

@@ -74,7 +74,6 @@ export default {
}
},
actions: {
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
formatterArgs: {
hasDelete: false,
hasUpdate: false,

View File

@@ -57,7 +57,6 @@ export default {
width: null
},
actions: {
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
formatterArgs: {
hasDelete: false,
hasUpdate: false,

View File

@@ -74,7 +74,6 @@ export default {
}
},
actions: {
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
formatterArgs: {
hasDelete: false,
hasUpdate: false,

View File

@@ -37,7 +37,6 @@ export default {
label: this.$t('ApproverNumbers')
},
actions: {
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '120px' : '100px',
formatterArgs: {
hasClone: false,
updateRoute: ({ row }) => {

View File

@@ -103,7 +103,6 @@ export default {
width: '200px'
},
actions: {
width: this.$i18n.locale === 'pt-br' ? '120px' : '100px',
formatterArgs: {
hasUpdate: false,
hasDelete: false,