This commit is contained in:
rizky 2024-08-15 08:56:32 -07:00
parent 273bcf451e
commit f08acfd7fa
5 changed files with 9 additions and 4 deletions

View File

@ -186,7 +186,11 @@ export const TableEdit: FC<{
css`
height: 1px;
border-collapse: collapse;
table-layout: auto; /* Kolom akan menyesuaikan konten */
table-layout: auto;
.field {
padding: 0px 0px 0px 10px;
}
`
)}
>

View File

@ -468,10 +468,10 @@ export const genTableEdit = async (
{
id: createId(),
adv: {
js: '<div {...props} className={cx(props.className, "")}>\n Add\n</div>',
js: '<div {...props} className={cx(props.className, "")}>\n { lang.t("Add") }\n</div>',
css: "",
jsBuilt:
'render(/* @__PURE__ */ React.createElement("div", { ...props, className: cx(props.className, "") }, "Add"));\n',
'render(/* @__PURE__ */ React.createElement("div", { ...props, className: cx(props.className, "") }, lang.t("Add")));\n',
},
dim: { h: "full", w: "full" },
name: "new_item",

View File

@ -641,7 +641,6 @@ export const TableList: FC<TableListProp> = ({
"c-flex c-items-center c-cursor-pointer"
)}
onClick={(e) => {
console.log(props.row);
if (!local.pk) return;
if (props?.row?.__children?.length > 0) {
e.stopPropagation();

View File

@ -6,6 +6,7 @@ export const langEn = {
Search: "Search",
"Add Another": "Add Another",
"Mark as": "Mark as ",
"Add": "Add",
"Remove this file ?": "Remove this file ?",
"Upload Multiple Files":"Upload Multiple Files",
"Back To List": "Back To List",

View File

@ -8,6 +8,7 @@ export const langId: Record<LangKeyword, string> = {
Search: "Cari",
"Add Another": "Tambah Baru",
"Mark as": "Tandai sebagai",
"Add": "Tambah",
"Remove this file ?": "Hapus file ini ?",
"Upload Multiple Files": "Unggah Beberapa File",
"Back To List": "Kembali ke List",