2f75927b by 任超

style:样式修改

1 parent 4b87346b
...@@ -172,9 +172,15 @@ export function setExport2Excel (exportName) { ...@@ -172,9 +172,15 @@ export function setExport2Excel (exportName) {
172 wrapText: 1, 172 wrapText: 1,
173 indent: 0, 173 indent: 0,
174 wrap_text: true 174 wrap_text: true
175 },
176 border: { // 设置边框
177 top: { style: 'thin' },
178 bottom: { style: 'thin' },
179 left: { style: 'thin' },
180 right: { style: 'thin' }
175 } 181 }
176 } 182 }
177 } else if (key.indexOf('!') === -1 && wb[key].v) { 183 } else if (key.indexOf('!') === -1) {
178 wb[key].s = { 184 wb[key].s = {
179 font: {//字体设置 185 font: {//字体设置
180 sz: 13, 186 sz: 13,
...@@ -210,6 +216,7 @@ function addRangeBorder (range, ws) { ...@@ -210,6 +216,7 @@ function addRangeBorder (range, ws) {
210 range.forEach(item => { 216 range.forEach(item => {
211 let startColNumber = Number(item.s.r), endColNumber = Number(item.e.r); 217 let startColNumber = Number(item.s.r), endColNumber = Number(item.e.r);
212 let startRowNumber = Number(item.s.c), endRowNumber = Number(item.e.c); 218 let startRowNumber = Number(item.s.c), endRowNumber = Number(item.e.c);
219 console.log(startColNumber);
213 const test = ws[arr[startRowNumber] + (startColNumber + 1)]; 220 const test = ws[arr[startRowNumber] + (startColNumber + 1)];
214 for (let col = startColNumber; col <= endColNumber; col++) { 221 for (let col = startColNumber; col <= endColNumber; col++) {
215 for (let row = startRowNumber; row <= endRowNumber; row++) { 222 for (let row = startRowNumber; row <= endRowNumber; row++) {
......