|
@@ -4,25 +4,25 @@ import {transaction} from "../../wysiwyg/transaction";
|
|
import {openEditorTab} from "../../../menus/util";
|
|
import {openEditorTab} from "../../../menus/util";
|
|
import {copySubMenu} from "../../../menus/commonMenuItem";
|
|
import {copySubMenu} from "../../../menus/commonMenuItem";
|
|
import {
|
|
import {
|
|
- addDragFill, genCellValueByElement,
|
|
|
|
|
|
+ addDragFill,
|
|
|
|
+ genCellValueByElement,
|
|
getCellText,
|
|
getCellText,
|
|
getTypeByCellElement,
|
|
getTypeByCellElement,
|
|
popTextCell,
|
|
popTextCell,
|
|
renderCell,
|
|
renderCell,
|
|
- renderCellAttr, updateCellsValue,
|
|
|
|
|
|
+ renderCellAttr,
|
|
|
|
+ updateCellsValue,
|
|
updateHeaderCell
|
|
updateHeaderCell
|
|
} from "./cell";
|
|
} from "./cell";
|
|
-import {getColIconByType, showColMenu} from "./col";
|
|
|
|
-import {deleteRow, insertRows, setPageSize, updateHeader} from "./row";
|
|
|
|
|
|
+import {addCol, getColIconByType, showColMenu} from "./col";
|
|
|
|
+import {deleteRow, insertRows, selectRow, setPageSize, updateHeader} from "./row";
|
|
import {emitOpenMenu} from "../../../plugin/EventBus";
|
|
import {emitOpenMenu} from "../../../plugin/EventBus";
|
|
-import {addCol} from "./col";
|
|
|
|
import {openMenuPanel} from "./openMenuPanel";
|
|
import {openMenuPanel} from "./openMenuPanel";
|
|
import {hintRef} from "../../hint/extend";
|
|
import {hintRef} from "../../hint/extend";
|
|
import {focusByRange} from "../../util/selection";
|
|
import {focusByRange} from "../../util/selection";
|
|
import {showMessage} from "../../../dialog/message";
|
|
import {showMessage} from "../../../dialog/message";
|
|
import {previewImage} from "../../preview/image";
|
|
import {previewImage} from "../../preview/image";
|
|
import {unicode2Emoji} from "../../../emoji";
|
|
import {unicode2Emoji} from "../../../emoji";
|
|
-import {selectRow} from "./row";
|
|
|
|
import * as dayjs from "dayjs";
|
|
import * as dayjs from "dayjs";
|
|
import {openCalcMenu} from "./calc";
|
|
import {openCalcMenu} from "./calc";
|
|
import {avRender} from "./render";
|
|
import {avRender} from "./render";
|
|
@@ -283,7 +283,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|
const srcs: IOperationSrcs[] = [];
|
|
const srcs: IOperationSrcs[] = [];
|
|
const sourceIds: string[] = [];
|
|
const sourceIds: string[] = [];
|
|
rowElements.forEach(item => {
|
|
rowElements.forEach(item => {
|
|
- const rowId = item.getAttribute("data-id")
|
|
|
|
|
|
+ const rowId = item.getAttribute("data-id");
|
|
const blockValue = genCellValueByElement("block", item.querySelector(".av__cell[data-block-id]"));
|
|
const blockValue = genCellValueByElement("block", item.querySelector(".av__cell[data-block-id]"));
|
|
srcs.push({
|
|
srcs.push({
|
|
content: blockValue.block.content,
|
|
content: blockValue.block.content,
|
|
@@ -291,7 +291,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|
isDetached: blockValue.isDetached,
|
|
isDetached: blockValue.isDetached,
|
|
});
|
|
});
|
|
sourceIds.push(rowId);
|
|
sourceIds.push(rowId);
|
|
- })
|
|
|
|
|
|
+ });
|
|
const avID = listItemElement.dataset.avId;
|
|
const avID = listItemElement.dataset.avId;
|
|
transaction(protyle, [{
|
|
transaction(protyle, [{
|
|
action: "insertAttrViewBlock",
|
|
action: "insertAttrViewBlock",
|