Vanessa 2023-12-18 20:47:22 +08:00
parent 1f31a33977
commit 4bd45961fa
11 changed files with 131 additions and 83 deletions

View file

@ -634,7 +634,7 @@ export const openMenuPanel = (options: {
data: target.dataset.icon,
}]);
target.innerHTML = unicode ? unicode2Emoji(unicode) : `<svg><use xlink:href="#${getColIconByType(target.dataset.colType as TAVCol)}"></use></svg>`;
updateAttrViewCellAnimation(options.blockElement.querySelector(`.av__row--header .av__cell[data-col-id="${colId}"]`));
updateAttrViewCellAnimation(options.blockElement.querySelector(`.av__row--header .av__cell[data-col-id="${colId}"]`), undefined, {icon: unicode});
target.dataset.icon = unicode;
});
event.preventDefault();