diff --git a/comps/form/gen/gen-form.ts b/comps/form/gen/gen-form.ts index eb6623f..a8b4909 100755 --- a/comps/form/gen/gen-form.ts +++ b/comps/form/gen/gen-form.ts @@ -269,7 +269,7 @@ type IForm = { form: any; error: Record; fm: FMLocal } childs: [ { id: createId(), - dim: { h: "fit", w: "full", hUnit: "px", wUnit: "px" }, + dim: { h: "fit", w: "fit", hUnit: "px", wUnit: "px" }, name: "bottom", type: "item", childs: [ diff --git a/comps/form/utils/init.tsx b/comps/form/utils/init.tsx index 88fd322..ae22ea9 100755 --- a/comps/form/utils/init.tsx +++ b/comps/form/utils/init.tsx @@ -159,7 +159,7 @@ export const formInit = (fm: FMLocal, props: FMProps) => { toast.success(
- Done + Saved
, { className: css` diff --git a/gen/prop/gen_prop_fields.ts b/gen/prop/gen_prop_fields.ts index ed69cc4..0aa44a2 100755 --- a/gen/prop/gen_prop_fields.ts +++ b/gen/prop/gen_prop_fields.ts @@ -76,8 +76,9 @@ const get_layer = async ( is_pk: v.is_pk, type: v.db_type || v.type, optional: v.optional, + default: v.default, }), - label: k + (v.optional ? "" : " *"), + label: k + (!v.optional && !v.default ? " *" : ""), checked: v.is_pk, }); }