mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
00af741bbe
commit
ff7d7216e0
10 changed files with 131 additions and 14 deletions
|
|
@ -9,10 +9,11 @@ import {addFilter, getFiltersHTML, setFilter} from "./filter";
|
|||
import {addSort, bindSortsEvent, getSortsHTML} from "./sort";
|
||||
import {bindDateEvent, getDateHTML, setDateValue} from "./date";
|
||||
import {formatNumber} from "./number";
|
||||
import {removeAttrViewColAnimation} from "./action";
|
||||
|
||||
export const openMenuPanel = (options: {
|
||||
protyle: IProtyle,
|
||||
blockElement: HTMLElement,
|
||||
blockElement: Element,
|
||||
type: "select" | "properties" | "config" | "sorts" | "filters" | "edit" | "date",
|
||||
colId?: string, // for edit
|
||||
cellElements?: HTMLElement[] // for select & date
|
||||
|
|
@ -608,6 +609,7 @@ export const openMenuPanel = (options: {
|
|||
type: colData.type,
|
||||
id: colId
|
||||
}]);
|
||||
removeAttrViewColAnimation(options.blockElement, colId);
|
||||
avPanelElement.remove();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue