This commit is contained in:
rizky 2024-07-18 03:18:29 -07:00
parent ac72edf1b7
commit 4abf1c0699
3 changed files with 4 additions and 3 deletions

View File

@ -269,7 +269,7 @@ type IForm = { form: any; error: Record<string, string>; fm: FMLocal }
childs: [ childs: [
{ {
id: createId(), id: createId(),
dim: { h: "fit", w: "full", hUnit: "px", wUnit: "px" }, dim: { h: "fit", w: "fit", hUnit: "px", wUnit: "px" },
name: "bottom", name: "bottom",
type: "item", type: "item",
childs: [ childs: [

View File

@ -159,7 +159,7 @@ export const formInit = (fm: FMLocal, props: FMProps) => {
toast.success( toast.success(
<div className="c-flex c-text-green-700 c-items-center"> <div className="c-flex c-text-green-700 c-items-center">
<Check className="c-h-4 c-w-4 c-mr-1 " /> <Check className="c-h-4 c-w-4 c-mr-1 " />
Done Saved
</div>, </div>,
{ {
className: css` className: css`

View File

@ -76,8 +76,9 @@ const get_layer = async (
is_pk: v.is_pk, is_pk: v.is_pk,
type: v.db_type || v.type, type: v.db_type || v.type,
optional: v.optional, optional: v.optional,
default: v.default,
}), }),
label: k + (v.optional ? "" : " *"), label: k + (!v.optional && !v.default ? " *" : ""),
checked: v.is_pk, checked: v.is_pk,
}); });
} }