|
@@ -465,21 +465,22 @@ func GetMixedTableCellData(mixedTableReq request.MixedTableReq, lang string) (ne
|
|
if err != nil {
|
|
if err != nil {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- config = setDefaultCellWidth(config)
|
|
|
|
|
|
+ config = setDefaultCellSize(config)
|
|
|
|
|
|
newMixedTableCellDataList = config
|
|
newMixedTableCellDataList = config
|
|
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-func setDefaultCellWidth(config [][]request.MixedTableCellDataReq) (newConfig [][]request.MixedTableCellDataReq) {
|
|
|
|
|
|
+func setDefaultCellSize(config [][]request.MixedTableCellDataReq) (newConfig [][]request.MixedTableCellDataReq) {
|
|
newConfig = config
|
|
newConfig = config
|
|
for i, row := range config {
|
|
for i, row := range config {
|
|
for j, cell := range row {
|
|
for j, cell := range row {
|
|
var styleConf request.MixCellShowStyle
|
|
var styleConf request.MixCellShowStyle
|
|
if cell.ShowStyle == `` {
|
|
if cell.ShowStyle == `` {
|
|
styleConf = request.MixCellShowStyle{
|
|
styleConf = request.MixCellShowStyle{
|
|
- Width: 140,
|
|
|
|
|
|
+ Width: 140,
|
|
|
|
+ Height: 35,
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
err := json.Unmarshal([]byte(cell.ShowStyle), &styleConf)
|
|
err := json.Unmarshal([]byte(cell.ShowStyle), &styleConf)
|
|
@@ -489,6 +490,9 @@ func setDefaultCellWidth(config [][]request.MixedTableCellDataReq) (newConfig []
|
|
if styleConf.Width == 0 {
|
|
if styleConf.Width == 0 {
|
|
styleConf.Width = 140
|
|
styleConf.Width = 140
|
|
}
|
|
}
|
|
|
|
+ if styleConf.Height == 0 {
|
|
|
|
+ styleConf.Height = 35
|
|
|
|
+ }
|
|
}
|
|
}
|
|
tmpStyleConf, err := json.Marshal(styleConf)
|
|
tmpStyleConf, err := json.Marshal(styleConf)
|
|
if err == nil {
|
|
if err == nil {
|