mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 22:22:34 +01:00
This commit is contained in:
parent
33470c29ca
commit
caf074185d
7 changed files with 34 additions and 24 deletions
|
|
@ -4,7 +4,7 @@ import {transaction} from "../../wysiwyg/transaction";
|
|||
import {setPosition} from "../../../util/setPosition";
|
||||
|
||||
export const addSort = (options: {
|
||||
data: IAV,
|
||||
data: IAVTable,
|
||||
rect: DOMRect,
|
||||
menuElement: HTMLElement,
|
||||
tabRect: DOMRect,
|
||||
|
|
@ -57,7 +57,7 @@ export const addSort = (options: {
|
|||
});
|
||||
};
|
||||
|
||||
export const bindSortsEvent = (protyle: IProtyle, menuElement: HTMLElement, data: IAV) => {
|
||||
export const bindSortsEvent = (protyle: IProtyle, menuElement: HTMLElement, data: IAVTable) => {
|
||||
menuElement.querySelectorAll("select").forEach((item: HTMLSelectElement) => {
|
||||
item.addEventListener("change", () => {
|
||||
const colId = item.parentElement.getAttribute("data-id");
|
||||
|
|
@ -90,7 +90,7 @@ export const bindSortsEvent = (protyle: IProtyle, menuElement: HTMLElement, data
|
|||
});
|
||||
};
|
||||
|
||||
export const getSortsHTML = (data: IAV) => {
|
||||
export const getSortsHTML = (data: IAVTable) => {
|
||||
let html = "";
|
||||
const genSortItem = (id: string) => {
|
||||
let sortHTML = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue