diff --git a/comps/form/Form.tsx b/comps/form/Form.tsx index aadc9e0..84a921b 100755 --- a/comps/form/Form.tsx +++ b/comps/form/Form.tsx @@ -14,7 +14,7 @@ const editorFormWidth = {} as Record; export { FMLocal } from "./typings"; export const Form: FC = (props) => { - const { PassProp, body, feature, sfd_field, style } = props; + const { PassProp, body, feature, sfd_field } = props; const fm = useLocal({ data: editorFormData[props.item.id] ? editorFormData[props.item.id].data @@ -168,7 +168,6 @@ export const Form: FC = (props) => {
{ const { field, fm, arg } = prop; const w = field.width; - const mode = fm.props.label_mode; const prefix = typeof field.prefix === "function" ? field.prefix() @@ -30,8 +29,8 @@ export const BaseField = (prop: { : null; const name = field.name; const errors = fm.error.get(name); - let type_field = typeof arg.type === "function" ? arg.type() : arg.type; // tipe field + const showlabel = arg.show_label || "y"; return (