修复当范围内结果只有一个时不会循环搜索到该数据
This commit is contained in:
parent
c105bb17cd
commit
dfb3c82dcd
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project ver="10" name="TabEditor++" libEmbed="true" icon="res\app.ico" ui="win" output="TabEditor++.exe" CompanyName="" FileDescription="TabEditor++" LegalCopyright="Copyright (C) iioio.com 2024" ProductName="TabEditor++" InternalName="TabEditor++" FileVersion="0.0.0.7" ProductVersion="0.0.0.7" publishDir="/dist/" dstrip="true" local="false" ignored="false">
|
||||
<project ver="10" name="TabEditor++" libEmbed="true" icon="res\app.ico" ui="win" output="TabEditor++.exe" CompanyName="" FileDescription="TabEditor++" LegalCopyright="Copyright (C) iioio.com 2024" ProductName="TabEditor++" InternalName="TabEditor++" FileVersion="0.0.0.9" ProductVersion="0.0.0.9" publishDir="/dist/" dstrip="true" local="false" ignored="false">
|
||||
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
|
||||
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
|
||||
<file name="app.ico" path="res\app.ico" comment="res\app.ico"/>
|
||||
|
|
|
@ -336,6 +336,7 @@ mainForm.popmenuRight.add('向右插入一列',function(id){
|
|||
mainForm.popmenuRight.add('删除列',function(id){
|
||||
var curSelection = mainForm.g_flexcell.selection();
|
||||
//TODO
|
||||
mainForm.msgbox("暂无删除列功能--TODO");
|
||||
curSelection.release();
|
||||
mainForm.release();
|
||||
} )
|
||||
|
@ -386,8 +387,8 @@ var accelerator = win.ui.accelerator({
|
|||
|
||||
research_flag = true;
|
||||
searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRangeSearch, selFirstRow, selFirstCol, searchContent, isCellMatching){
|
||||
console.dump(firstRow, firstCol, lastRow, lastCol, isRangeSearch, selFirstRow, selFirstCol, searchContent);
|
||||
if(isRangeSearch){// 从一个范围开始搜索
|
||||
//console.dump("从一个范围开始搜索");
|
||||
var tempRow = firstRow;
|
||||
var tempCol = firstCol;
|
||||
firstRow = pre_searched_row != null and research_flag ? pre_searched_row : firstRow;
|
||||
|
@ -427,6 +428,8 @@ searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRange
|
|||
// 搜不到了,重头搜索
|
||||
if(research_flag){
|
||||
research_flag = false;
|
||||
pre_searched_row = null;
|
||||
pre_searched_col = null;
|
||||
row, col = searchNextContent(data, selFirstRow, selFirstCol, lastRow, lastCol, isRangeSearch, selFirstRow, selFirstCol, searchContent, isCellMatching);
|
||||
return row, col;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user