mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15: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 {focusBlock} from "../../util/selection";
|
||||||
import {Menu} from "../../../plugin/Menu";
|
import {Menu} from "../../../plugin/Menu";
|
||||||
import {transaction} from "../../wysiwyg/transaction";
|
import {transaction} from "../../wysiwyg/transaction";
|
||||||
import {
|
import {genCellValue, genCellValueByElement, getTypeByCellElement, renderCell, renderCellAttr} from "./cell";
|
||||||
genCellValue,
|
|
||||||
genCellValueByElement,
|
|
||||||
getTypeByCellElement,
|
|
||||||
renderCell,
|
|
||||||
renderCellAttr
|
|
||||||
} from "./cell";
|
|
||||||
import {fetchPost} from "../../../util/fetch";
|
import {fetchPost} from "../../../util/fetch";
|
||||||
import * as dayjs from "dayjs";
|
import * as dayjs from "dayjs";
|
||||||
import {Constants} from "../../../constants";
|
import {Constants} from "../../../constants";
|
||||||
|
|
@ -268,6 +262,20 @@ export const setPageSize = (options: {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const currentPageSize = options.target.dataset.size;
|
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({
|
menu.addItem({
|
||||||
iconHTML: "",
|
iconHTML: "",
|
||||||
label: "10",
|
label: "10",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue