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

排除区可以设置空单元格

parent 3271ba26
......@@ -114,7 +114,7 @@ export function handleRangeTitle(range: any) {
return titles
}
export function handleRangeCell(range: any, cb?: any) {
export function handleRangeCell(range: any, cb?: any, skipEmpty: boolean = true) {
console.log(luckysheet.getRangeValue(), 'range-----')
// return
const { beginRow, beginColum, endRow, sheetNum, endColum, columnLen, rowLen } =
......@@ -154,6 +154,10 @@ export function handleRangeCell(range: any, cb?: any) {
cb && cb(t)
} catch (e) {
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') => {
c.colum,
false
)
})
}, false)
}
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