mirror of https://gitee.com/xiaonuobase/snowy
【更新】前端stable-代码格式调整
parent
064a7bc127
commit
88a1ca21bd
|
@ -6,7 +6,7 @@
|
|||
import './index.less'
|
||||
import i18n from '@/locales'
|
||||
|
||||
const {t} = i18n.global
|
||||
const { t } = i18n.global
|
||||
|
||||
export default {
|
||||
name: 'STable',
|
||||
|
@ -158,9 +158,9 @@
|
|||
false
|
||||
this.needTotalList = this.initTotalList(this.columns)
|
||||
this.loadData()
|
||||
this.columnsSetting = this.columns.map(c => {
|
||||
this.columnsSetting = this.columns.map((c) => {
|
||||
const tt = c.title
|
||||
if (typeof tt === "string") {
|
||||
if (typeof tt === 'string') {
|
||||
c.title = () => t(tt)
|
||||
}
|
||||
return c
|
||||
|
|
Loading…
Reference in New Issue