This commit is contained in:
parent
efc3ec43fe
commit
b0857eef5e
2 changed files with 6 additions and 2 deletions
|
@ -92,7 +92,6 @@
|
||||||
|
|
||||||
&__scroll {
|
&__scroll {
|
||||||
overflow: auto hidden;
|
overflow: auto hidden;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__body {
|
&__body {
|
||||||
|
@ -245,6 +244,7 @@
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border-right: 1px solid var(--b3-theme-surface-lighter);
|
border-right: 1px solid var(--b3-theme-surface-lighter);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
cursor: pointer;
|
||||||
// display: flex; 不需要使用,否则 av__celltext 会占满单元格,导致链接列点击空白无法进行编辑
|
// display: flex; 不需要使用,否则 av__celltext 会占满单元格,导致链接列点击空白无法进行编辑
|
||||||
|
|
||||||
[data-type="block-ref"],
|
[data-type="block-ref"],
|
||||||
|
@ -314,7 +314,7 @@
|
||||||
|
|
||||||
&--url,
|
&--url,
|
||||||
&--ref {
|
&--ref {
|
||||||
text-decoration: underline var(--b3-border-color);
|
border-bottom: 1px solid var(--b3-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .av__cellicon {
|
& > .av__cellicon {
|
||||||
|
|
|
@ -307,6 +307,10 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem
|
||||||
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
|
oldValue.isNotEmpty = typeof oldValue.content === "number" && !isNaN(oldValue.content);
|
||||||
inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value);
|
inputValue.content = parseFloat((avMaskElement.querySelector(".b3-text-field") as HTMLInputElement).value);
|
||||||
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
|
inputValue.isNotEmpty = typeof inputValue.content === "number" && !isNaN(inputValue.content);
|
||||||
|
if (!inputValue.isNotEmpty) {
|
||||||
|
// 后端仅支持传入数字,因此在为空的时候需要设置为 0
|
||||||
|
inputValue.content = 0;
|
||||||
|
}
|
||||||
} else if (type === "checkbox") {
|
} else if (type === "checkbox") {
|
||||||
const useElement = item.querySelector("use");
|
const useElement = item.querySelector("use");
|
||||||
inputValue.checked = useElement.getAttribute("xlink:href") === "#iconUncheck";
|
inputValue.checked = useElement.getAttribute("xlink:href") === "#iconUncheck";
|
||||||
|
|
Loading…
Add table
Reference in a new issue