🎨 数据库

This commit is contained in:
Vanessa 2024-03-03 16:32:37 +08:00
parent 03414a4e9e
commit 36c4a3891b
2 changed files with 4 additions and 1 deletions

View file

@ -399,6 +399,7 @@ export const getCalcValue = (column: IAVColumn) => {
export const getNameByOperator = (operator: string, isRollup: boolean) => {
switch (operator) {
case undefined:
case "":
return isRollup ? window.siyuan.languages.original : window.siyuan.languages.calcOperatorNone;
case "Count all":

View file

@ -200,7 +200,9 @@ export const bindRollupData = (options: {
goSearchRollupTargetElement.querySelector(".b3-menu__accelerator").textContent = item.key.name;
const goSearchRollupCalcElement = options.menuElement.querySelector('[data-type="goSearchRollupCalc"]') as HTMLElement;
goSearchRollupCalcElement.dataset.colType = item.key.type;
goSearchRollupCalcElement.dataset.calc = oldValue.calc.operator;
if (oldValue.calc) {
goSearchRollupCalcElement.dataset.calc = oldValue.calc.operator;
}
return true;
}
});