mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
This commit is contained in:
parent
efc54eae26
commit
7b6e00d949
@ -42,7 +42,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||||||
html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',
|
html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// filter: ["属性试图", "shuxingshitu", "sxst", "attribute view"],
|
// filter: ["属性视图", "shuxingshitu", "sxst", "attribute view"],
|
||||||
// value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',
|
// value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',
|
||||||
// html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.attributeView}</span></div>`,
|
// html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.attributeView}</span></div>`,
|
||||||
// },
|
// },
|
||||||
|
@ -793,7 +793,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||||||
hideElements(["gutter"], protyle);
|
hideElements(["gutter"], protyle);
|
||||||
const targetClass = targetElement.className.split(" ");
|
const targetClass = targetElement.className.split(" ");
|
||||||
if (targetElement.className.indexOf("dragover__") === -1) {
|
if (targetElement.className.indexOf("dragover__") === -1) {
|
||||||
// 拖拽到属性试图内
|
// 拖拽到属性视图内
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
action: "insertAttrViewBlock",
|
action: "insertAttrViewBlock",
|
||||||
id: targetElement.getAttribute("data-node-id"),
|
id: targetElement.getAttribute("data-node-id"),
|
||||||
|
Loading…
Reference in New Issue
Block a user