mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
25678e401f
11 changed files with 94 additions and 154 deletions
|
|
@ -4,7 +4,8 @@ import {transaction} from "../../wysiwyg/transaction";
|
|||
import {openEditorTab} from "../../../menus/util";
|
||||
import {openFileAttr} from "../../../menus/commonMenuItem";
|
||||
import {
|
||||
addDragFill, cellValueIsEmpty,
|
||||
addDragFill,
|
||||
cellValueIsEmpty,
|
||||
genCellValueByElement,
|
||||
getCellText,
|
||||
getTypeByCellElement,
|
||||
|
|
@ -603,7 +604,6 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
transaction(protyle, [{
|
||||
action: "insertAttrViewBlock",
|
||||
avID,
|
||||
ignoreFillFilter: true,
|
||||
srcs,
|
||||
blockID: listItemElement.dataset.blockId,
|
||||
groupID: rowElement.parentElement.getAttribute("data-group-id")
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export const addFilesToDatabase = (fileLiElements: Element[]) => {
|
|||
transaction(undefined, [{
|
||||
action: "insertAttrViewBlock",
|
||||
avID,
|
||||
ignoreFillFilter: true,
|
||||
srcs,
|
||||
blockID: listItemElement.dataset.blockId
|
||||
}, {
|
||||
|
|
@ -40,7 +39,6 @@ export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: stri
|
|||
transaction(protyle, [{
|
||||
action: "insertAttrViewBlock",
|
||||
avID,
|
||||
ignoreFillFilter: true,
|
||||
srcs: [{
|
||||
id: protyle.block.rootID,
|
||||
isDetached: false
|
||||
|
|
@ -91,7 +89,6 @@ export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: stri
|
|||
transaction(protyle, [{
|
||||
action: "insertAttrViewBlock",
|
||||
avID,
|
||||
ignoreFillFilter: true,
|
||||
srcs,
|
||||
blockID: listItemElement.dataset.blockId
|
||||
}, {
|
||||
|
|
|
|||
|
|
@ -423,7 +423,6 @@ draggable="true">${genSelectItemHTML("selected", targetId, !target.querySelector
|
|||
const bodyElement = hasClosestByClassName(cellElements[0], "av__body");
|
||||
transaction(protyle, [{
|
||||
action: "insertAttrViewBlock",
|
||||
ignoreFillFilter: true,
|
||||
avID: menuElement.firstElementChild.getAttribute("data-av-id"),
|
||||
srcs: [{
|
||||
id: rowId,
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -543,7 +543,6 @@ interface IOperation {
|
|||
retData?: any
|
||||
nextID?: string // insert 专享
|
||||
isDetached?: boolean // insertAttrViewBlock 专享
|
||||
ignoreFillFilter?: boolean // insertAttrViewBlock 专享
|
||||
srcIDs?: string[] // removeAttrViewBlock 专享
|
||||
srcs?: IOperationSrcs[] // insertAttrViewBlock 专享
|
||||
name?: string // addAttrViewCol 专享
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue