Commit 83a15558 authored by 何远江's avatar 何远江

排除区可以设置空单元格

parent 3271ba26
...@@ -114,7 +114,7 @@ export function handleRangeTitle(range: any) { ...@@ -114,7 +114,7 @@ export function handleRangeTitle(range: any) {
return titles return titles
} }
export function handleRangeCell(range: any, cb?: any) { export function handleRangeCell(range: any, cb?: any, skipEmpty: boolean = true) {
console.log(luckysheet.getRangeValue(), 'range-----') console.log(luckysheet.getRangeValue(), 'range-----')
// return // return
const { beginRow, beginColum, endRow, sheetNum, endColum, columnLen, rowLen } = const { beginRow, beginColum, endRow, sheetNum, endColum, columnLen, rowLen } =
...@@ -154,6 +154,10 @@ export function handleRangeCell(range: any, cb?: any) { ...@@ -154,6 +154,10 @@ export function handleRangeCell(range: any, cb?: any) {
cb && cb(t) cb && cb(t)
} catch (e) { } catch (e) {
console.log(r, c, t, e, cell, 'error') console.log(r, c, t, e, cell, 'error')
if (!skipEmpty) {
titles.push(t)
cb && cb(t)
}
} }
} }
} }
......
...@@ -311,7 +311,7 @@ const getRangeCellValue = (type: 'caption' | 'exclude' | 'end') => { ...@@ -311,7 +311,7 @@ const getRangeCellValue = (type: 'caption' | 'exclude' | 'end') => {
c.colum, c.colum,
false false
) )
}) }, false)
} }
const queryDict = async (code: string) => { const queryDict = async (code: string) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment