🎨 带排序的 av 修改单元格后定位到修改点
This commit is contained in:
parent
e6578a39bf
commit
04184fc8bd
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
import {fetchPost} from "../../../util/fetch";
|
||||
import {getColIconByType} from "./col";
|
||||
import {Constants} from "../../../constants";
|
||||
import {addDragFill, renderCell} from "./cell";
|
||||
import {addDragFill, cellScrollIntoView, renderCell} from "./cell";
|
||||
import {unicode2Emoji} from "../../../emoji";
|
||||
import {focusBlock} from "../../util/selection";
|
||||
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../../util/hasClosest";
|
||||
|
@ -310,13 +310,13 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
|
|||
} else if (!document.querySelector(".av__panel") && !isSearching) {
|
||||
focusBlock(e);
|
||||
}
|
||||
cellScrollIntoView(e, newCellElement);
|
||||
}
|
||||
selectRowIds.forEach((selectRowId, index) => {
|
||||
const rowElement = e.querySelector(`.av__row[data-id="${selectRowId}"]`) as HTMLElement;
|
||||
if (rowElement) {
|
||||
rowElement.classList.add("av__row--select");
|
||||
rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");
|
||||
|
||||
}
|
||||
|
||||
if (index === selectRowIds.length - 1 && rowElement) {
|
||||
|
|
Loading…
Add table
Reference in a new issue