mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
be5bf8978d
commit
f3cc641005
3 changed files with 3 additions and 1 deletions
|
|
@ -583,6 +583,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
||||||
action: "insertAttrViewBlock",
|
action: "insertAttrViewBlock",
|
||||||
avID,
|
avID,
|
||||||
srcs,
|
srcs,
|
||||||
|
context: {ignoreTip: "true"},
|
||||||
blockID: listItemElement.dataset.blockId,
|
blockID: listItemElement.dataset.blockId,
|
||||||
groupID: rowElement.parentElement.getAttribute("data-group-id")
|
groupID: rowElement.parentElement.getAttribute("data-group-id")
|
||||||
}, {
|
}, {
|
||||||
|
|
|
||||||
|
|
@ -764,7 +764,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
||||||
// 更新属性面板
|
// 更新属性面板
|
||||||
renderAVAttribute(attrElement.parentElement, attrElement.dataset.nodeId, protyle);
|
renderAVAttribute(attrElement.parentElement, attrElement.dataset.nodeId, protyle);
|
||||||
} else {
|
} else {
|
||||||
if (operation.action === "insertAttrViewBlock") {
|
if (operation.action === "insertAttrViewBlock" && operation.context?.ignoreTip !== "true") {
|
||||||
const groupQuery = operation.groupID ? `[data-group-id="${operation.groupID}"]` : "";
|
const groupQuery = operation.groupID ? `[data-group-id="${operation.groupID}"]` : "";
|
||||||
if (item.getAttribute("data-av-type") === "gallery") {
|
if (item.getAttribute("data-av-type") === "gallery") {
|
||||||
operation.srcs.forEach(srcItem => {
|
operation.srcs.forEach(srcItem => {
|
||||||
|
|
|
||||||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -531,6 +531,7 @@ interface ISiyuan {
|
||||||
interface IOperation {
|
interface IOperation {
|
||||||
action: TOperation, // move, delete 不需要传 data
|
action: TOperation, // move, delete 不需要传 data
|
||||||
id?: string,
|
id?: string,
|
||||||
|
context?: IObject,
|
||||||
blockID?: string,
|
blockID?: string,
|
||||||
isTwoWay?: boolean, // 是否双向关联
|
isTwoWay?: boolean, // 是否双向关联
|
||||||
backRelationKeyID?: string, // 双向关联的目标关联列 ID
|
backRelationKeyID?: string, // 双向关联的目标关联列 ID
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue