This commit is contained in:
Viet An
2026-06-11 11:50:11 +07:00
parent a5a88b3b1c
commit 069ea1002c
20 changed files with 112 additions and 474 deletions

View File

@@ -51,7 +51,7 @@
</div>
</div>
<div
class="table-container rounded mb-0"
class="table-container mb-0"
ref="container"
id="docid"
>
@@ -239,7 +239,7 @@ const updateShow = function (full_data) {
showPagination();
};
function confirmRemove() {
$deleterow(pagedata.api.name, currentRow.id, props.pagename, true);
$deleterow(pagedata.api.name, currentRow.id, props.pagename);
}
const clickEvent = function (event, row, field) {
const name = typeof event === "string" ? event : event.name;
@@ -280,9 +280,7 @@ const showField = async function (field) {
};
const getStyle = function (field, record) {
let stop = false;
let val = tablesetting.find((v) => v.code === "td-border")
? tablesetting.find((v) => v.code === "td-border").detail
: "border: solid 1px rgb(44, 44, 44); ";
let val = getDetail("td-border");
val = val.indexOf(";") >= 0 ? val : val + ";";
if (field.bgcolor ? !Array.isArray(field.bgcolor) : false) {
val += ` background-color:${field.bgcolor}; `;