This commit is contained in:
parent
98180f2c5e
commit
d0f0fdfa3f
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ import {renderAVAttribute} from "./blockAttr";
|
|||
import {showMessage} from "../../../dialog/message";
|
||||
import {addClearButton} from "../../../util/addClearButton";
|
||||
import {escapeAriaLabel, escapeAttr, escapeHtml} from "../../../util/escape";
|
||||
import {isMobile} from "../../../util/functions";
|
||||
|
||||
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, viewID?: string) => {
|
||||
let avElements: Element[] = [];
|
||||
|
@ -149,7 +150,7 @@ style="width: ${column.width || "200px"};">
|
|||
calcHTML += `<div data-col-id="${column.id}" data-dtype="${column.type}" class="av__calc" style="width: ${column.width || "200px"}"> </div>`;
|
||||
} else {
|
||||
calcHTML += `<div class="av__calc${column.calc && column.calc.operator !== "" ? " av__calc--ashow" : ""}" data-col-id="${column.id}" data-dtype="${column.type}" data-operator="${column.calc?.operator || ""}"
|
||||
style="width: ${column.width || "200px"}">${getCalcValue(column) || `<svg><use xlink:href="#iconDown"></use></svg><small>${window.siyuan.languages.calc}</small>`}</div>`;
|
||||
style="width: ${column.width || "200px"};${isMobile() ? " opacity: 1;" : ""}">${getCalcValue(column) || `<svg><use xlink:href="#iconDown"></use></svg><small>${window.siyuan.languages.calc}</small>`}</div>`;
|
||||
}
|
||||
if (column.calc && column.calc.operator !== "") {
|
||||
hasCalc = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue