Skip to content

Commit 2b3405f

Browse files
committed
🎨 #15561
1 parent 1a6b80b commit 2b3405f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/protyle/render/av/gallery/item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {showMessage} from "../../../../dialog/message";
21
import {genCellValue, getTypeByCellElement, renderCell, renderCellAttr} from "../cell";
32
import {fetchPost} from "../../../../util/fetch";
43
import {setPage} from "../row";
@@ -59,6 +58,7 @@ ${fieldType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValu
5958
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
6059
groupID: options.groupID,
6160
previousID: options.previousId,
61+
srcIDs: options.srcIDs
6262
}, (response) => {
6363
if (response.data.values) {
6464
let popCellElement: HTMLElement;

app/src/protyle/render/av/row.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
renderCellAttr
1111
} from "./cell";
1212
import {fetchPost} from "../../../util/fetch";
13-
import {showMessage} from "../../../dialog/message";
1413
import * as dayjs from "dayjs";
1514
import {Constants} from "../../../constants";
1615
import {insertGalleryItemAnimation} from "./gallery/item";
@@ -116,7 +115,7 @@ export const setPage = (blockElement: Element) => {
116115
export const insertAttrViewBlockAnimation = (options: {
117116
protyle: IProtyle,
118117
blockElement: Element,
119-
srcIDs: string[],
118+
srcIDs: string[], // node id
120119
previousId: string,
121120
groupID?: string
122121
}) => {
@@ -170,6 +169,7 @@ ${colType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValue(
170169
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
171170
groupID: options.groupID,
172171
previousID: options.previousId,
172+
srcIDs: options.srcIDs,
173173
}, (response) => {
174174
if (response.data.values) {
175175
let popCellElement: HTMLElement;

0 commit comments

Comments
 (0)