mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
2b753ac16f
commit
6b2791a7c5
1 changed files with 9 additions and 3 deletions
|
|
@ -23,18 +23,24 @@ export const setGroupMethod = (options: {
|
|||
}], [{
|
||||
action: "setAttrViewGroup",
|
||||
data: {
|
||||
field: options.data.view.groups?.field || "",
|
||||
field: options.data.view.groups?.field || "",
|
||||
method: null,
|
||||
order: null,
|
||||
range: null
|
||||
}
|
||||
}]);
|
||||
options.data.view.groups.field = options.fieldId;
|
||||
if (!options.data.view.groups) {
|
||||
options.data.view.groups = {
|
||||
field: options.fieldId
|
||||
};
|
||||
} else {
|
||||
options.data.view.groups.field = options.fieldId;
|
||||
}
|
||||
options.menuElement.innerHTML = getGroupsHTML(getFieldsByData(options.data), options.data.view.groups);
|
||||
// bindGroupsEvent(options.protyle, options.menuElement, options.data, blockID);
|
||||
const tabRect = options.blockElement.querySelector(".av__views").getBoundingClientRect();
|
||||
setPosition(options.menuElement, tabRect.right - options.menuElement.clientWidth, tabRect.bottom, tabRect.height);
|
||||
}
|
||||
};
|
||||
|
||||
export const getGroupsMethodHTML = (columns: IAVColumn[], groups: IAVGroups) => {
|
||||
const selectHTML = '<svg class="b3-menu__checked"><use xlink:href="#iconSelect"></use></svg>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue