mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
80e9bee8bd
commit
ca499d8e30
1 changed files with 15 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue