perf: 优化table组件默认的翻译

This commit is contained in:
“huailei000”
2023-02-06 15:36:02 +08:00
committed by huailei
parent 1c2a8690fc
commit 8675da453f

View File

@@ -361,28 +361,36 @@ export default {
*/
newText: {
type: String,
default: this.$t('ops.Add')
default: function() {
return this.$t('ops.Add')
}
},
/**
* 修改按钮文案
*/
editText: {
type: String,
default: this.$t('ops.Modify')
default: function() {
return this.$t('ops.Modify')
}
},
/**
* 查看按钮文案
*/
viewText: {
type: String,
default: this.$t('ops.View')
default: function() {
return this.$t('ops.View')
}
},
/**
* 删除按钮文案
*/
deleteText: {
type: String,
default: this.$t('ops.Delete')
default: function() {
return this.$t('ops.Delete')
}
},
/**
* 删除提示语。接受要删除的数据(单个对象或数组);返回字符串