From 158a76ea6a9ae761b3deb4badb991d6e522e1798 Mon Sep 17 00:00:00 2001 From: huangxiaomin Date: Fri, 9 Jul 2021 11:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=92=E5=85=A5=E8=A1=8C?= =?UTF-8?q?=E3=80=81=E5=88=97=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ureport2-js/src/Utils.js | 3 ++- ureport2-js/src/table/ContextMenu.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ureport2-js/src/Utils.js b/ureport2-js/src/Utils.js index 2ae991d..972659f 100644 --- a/ureport2-js/src/Utils.js +++ b/ureport2-js/src/Utils.js @@ -75,7 +75,8 @@ export function resetTableData(hot){ }; export function buildNewCellDef(rowNumber,columnNumber){ - let cellDef = {rowNumber,columnNumber,expand: 'None', cellStyle: {fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'}, value: {type: 'simple', value: ''}}; + // let cellDef = {rowNumber,columnNumber,expand: 'None', cellStyle: {fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'}, value: {type: 'simple', value: ''}}; + let cellDef = {rowNumber,columnNumber,expand: 'None', cellStyle: {fontSize:10,align:'center',valign:'middle'}, value: {type: 'simple', value: ''}}; return cellDef; }; diff --git a/ureport2-js/src/table/ContextMenu.js b/ureport2-js/src/table/ContextMenu.js index 8b6a13b..27e6ca1 100644 --- a/ureport2-js/src/table/ContextMenu.js +++ b/ureport2-js/src/table/ContextMenu.js @@ -360,7 +360,8 @@ export default function buildMenuConfigure(){ hot.setDataAtCell(i,j,''); }else if(type==='style'){ removeCellsMap.set(key,cell.cellStyle); - cell.cellStyle={fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'}; + // cell.cellStyle={fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'}; + cell.cellStyle={fontSize:10,align:'center',valign:'middle'}; }else if(type==='all'){ context.removeCell(cell); removeCellsMap.set(key,cell); @@ -372,7 +373,8 @@ export default function buildMenuConfigure(){ type:'simple', value:'' }, - cellStyle:{fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'} + // cellStyle:{fontSize:10,forecolor:'0,0,0',fontFamily:'宋体',align:'center',valign:'middle'} + cellStyle:{fontSize:10,align:'center',valign:'middle'} }; context.addCell(newCell); hot.setDataAtCell(i,j,'');