This commit is contained in:
Vanessa 2023-03-28 10:22:32 +08:00
parent c6d1999d0a
commit 2477a1bede
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ export const popSearch = () => {
title: '<input id="toolbarSearch" style="background-color: var(--b3-theme-surface);border: 0;" class="b3-text-field fn__block">',
icon:"iconSearch",
html: '<div id="searchPanel"></div>',
bindEvent(HTMLElement) {
bindEvent() {
initToolbarSearch();
const searchElement = document.getElementById("searchPanel");
// 不能使用 getEventName() https://ld246.com/article/1638887457149

View file

@ -405,7 +405,7 @@ export class WYSIWYG {
target.removeAttribute("style");
const id = nodeElement.getAttribute("data-node-id");
const x = event.clientX;
const colIndex = parseInt(target.getAttribute("data-col-index"))
const colIndex = parseInt(target.getAttribute("data-col-index"));
const colElement = nodeElement.querySelectorAll("table col")[colIndex] as HTMLElement;
// 清空初始化 table 时的最小宽度
if (colElement.style.minWidth) {