Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2025-11-09 15:50:36 +08:00
commit a9edf35b2c
12 changed files with 37 additions and 46 deletions

View file

@ -2,13 +2,7 @@ import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
import {focusBlock} from "../../util/selection";
import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
import {
genCellValue,
genCellValueByElement,
getTypeByCellElement,
renderCell,
renderCellAttr
} from "./cell";
import {genCellValue, genCellValueByElement, getTypeByCellElement, renderCell, renderCellAttr} from "./cell";
import {fetchPost} from "../../../util/fetch";
import * as dayjs from "dayjs";
import {Constants} from "../../../constants";
@ -268,6 +262,20 @@ export const setPageSize = (options: {
return;
}
const currentPageSize = options.target.dataset.size;
menu.addItem({
iconHTML: "",
label: "5",
checked: currentPageSize === "5",
click() {
updatePageSize({
currentPageSize,
newPageSize: "5",
protyle: options.protyle,
avID: options.avID,
nodeElement: options.nodeElement
});
}
});
menu.addItem({
iconHTML: "",
label: "10",