mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
🚨
This commit is contained in:
parent
228acbf1dd
commit
207330be7a
4 changed files with 5 additions and 8 deletions
|
|
@ -225,7 +225,7 @@ export class MenuItem {
|
|||
html += `<svg class="b3-menu__action${options.action === "iconCloseRound" ? " b3-menu__action--close" : ""}"><use xlink:href="#${options.action}"></use></svg>`;
|
||||
}
|
||||
if (options.checked) {
|
||||
html += '<svg class="b3-menu__checked"><use xlink:href="#iconSelect"></use></svg></span>'
|
||||
html += '<svg class="b3-menu__checked"><use xlink:href="#iconSelect"></use></svg></span>';
|
||||
}
|
||||
this.element.innerHTML = html;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ const editLayout = (layoutName?: string) => {
|
|||
}
|
||||
const hadName = window.siyuan.storage[Constants.LOCAL_LAYOUTS].find((item: ISaveLayout) => {
|
||||
if (item.name === value) {
|
||||
|
||||
confirmDialog(window.siyuan.languages.save, window.siyuan.languages.exportTplTip, () => {
|
||||
item.layout = getAllLayout();
|
||||
setStorageVal(Constants.LOCAL_LAYOUTS, window.siyuan.storage[Constants.LOCAL_LAYOUTS]);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const filterSelectHTML = (key: string, options: { name: string, color: string }[
|
|||
selected.push(item.dataset.content);
|
||||
});
|
||||
}
|
||||
const checkedName = document.querySelector('.av__panel .b3-menu__item--current[data-type="addColOptionOrCell"]')?.getAttribute("data-name") || ""
|
||||
const checkedName = document.querySelector('.av__panel .b3-menu__item--current[data-type="addColOptionOrCell"]')?.getAttribute("data-name") || "";
|
||||
if (options) {
|
||||
options.forEach(item => {
|
||||
if (!key ||
|
||||
|
|
@ -126,7 +126,7 @@ export const removeCellOption = (protyle: IProtyle, data: IAV, cellElements: HTM
|
|||
item.querySelector(".b3-menu__checked")?.remove();
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
target.remove();
|
||||
};
|
||||
|
||||
|
|
@ -580,9 +580,9 @@ export const getSelectHTML = (data: IAVTable, cellElements: HTMLElement[]) => {
|
|||
});
|
||||
|
||||
let selectedHTML = "";
|
||||
const selected: string[] = []
|
||||
const selected: string[] = [];
|
||||
genCellValueByElement(colData.type, cellElements[0]).mSelect?.forEach((item) => {
|
||||
selected.push(item.content)
|
||||
selected.push(item.content);
|
||||
selectedHTML += `<div class="b3-chip b3-chip--middle" data-content="${escapeAttr(item.content)}" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${item.content}<svg class="b3-chip__close" data-type="removeCellOption"><use xlink:href="#iconCloseRound"></use></svg></div>`;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ import {
|
|||
downSelect,
|
||||
duplicateBlock,
|
||||
getStartEndElement,
|
||||
goEnd,
|
||||
goHome,
|
||||
upSelect
|
||||
} from "./commonHotkey";
|
||||
import {enterBack, fileAnnotationRefMenu, linkMenu, refMenu, setFold, tagMenu, zoomOut} from "../../menus/protyle";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue