Skip to content

Commit b0857ee

Browse files
committedDec 12, 2023
1 parent efc3ec4 commit b0857ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎app/src/assets/scss/business/_av.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292

9393
&__scroll {
9494
overflow: auto hidden;
95-
cursor: pointer;
9695
}
9796

9897
&__body {
@@ -245,6 +244,7 @@
245244
flex-shrink: 0;
246245
border-right: 1px solid var(--b3-theme-surface-lighter);
247246
overflow: hidden;
247+
cursor: pointer;
248248
// display: flex; 不需要使用,否则 av__celltext 会占满单元格,导致链接列点击空白无法进行编辑
249249

250250
[data-type="block-ref"],
@@ -314,7 +314,7 @@
314314

315315
&--url,
316316
&--ref {
317-
text-decoration: underline var(--b3-border-color);
317+
border-bottom: 1px solid var(--b3-border-color);
318318
}
319319

320320
& > .av__cellicon {

‎app/src/protyle/render/av/cell.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
307307
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
308308
inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value);
309309
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
310+
if (!inputValue.isNotEmpty) {
311+
// 后端仅支持传入数字,因此在为空的时候需要设置为 0
312+
inputValue.content = 0;
313+
}
310314
} else if (type === "checkbox") {
311315
const useElement = item.querySelector("use");
312316
inputValue.checked = useElement.getAttribute("xlink:href") === "#iconUncheck";

0 commit comments

Comments
 (0)