🎨 数据库表头为空

This commit is contained in:
Vanessa 2024-01-19 23:32:16 +08:00
parent 29d959c18c
commit 9867e3ff0a
3 changed files with 2 additions and 8 deletions

View file

@ -212,7 +212,7 @@ export class MenuItem {
if (options.element) {
this.element.append(options.element);
} else {
let html = `<span class="b3-menu__label">${options.label}</span>`;
let html = `<span class="b3-menu__label">${options.label || "&nbsp;"}</span>`;
if (typeof options.iconHTML === "string") {
html = options.iconHTML + html;
} else {

View file

@ -88,7 +88,7 @@ export const getSortsHTML = (columns: IAVColumn[], sorts: IAVSort[]) => {
const genSortItem = (id: string) => {
let sortHTML = "";
columns.forEach((item) => {
sortHTML += `<option value="${item.id}" ${item.id === id ? "selected" : ""}>${item.name}</option>`;
sortHTML += `<option value="${item.id}" ${item.id === id ? "selected" : ""}>${item.icon && unicode2Emoji(item.icon)}${item.name}</option>`;
});
return sortHTML;
};

View file

@ -52,12 +52,6 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen
return true;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) ||
matchHotKey(window.siyuan.config.keymap.general.dailyNote.custom, event)) {
// 阻止输入 https://ld246.com/article/1679618995926
event.preventDefault();
return true;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.copyProtocolInMd.custom, event)) {
const id = nodeElement ? nodeElement.getAttribute("data-node-id") : protyle.block.rootID;
fetchPost("/api/block/getRefText", {id}, (response) => {