🎨 数据库
This commit is contained in:
parent
03414a4e9e
commit
36c4a3891b
2 changed files with 4 additions and 1 deletions
|
@ -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":
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue