fix
This commit is contained in:
parent
107fe48f79
commit
6c0e4b671b
|
|
@ -60,7 +60,7 @@ export const BaseField = (prop: {
|
||||||
<div className="field-input c-flex c-flex-1 c-flex-col">
|
<div className="field-input c-flex c-flex-1 c-flex-col">
|
||||||
<div
|
<div
|
||||||
className={cx(
|
className={cx(
|
||||||
!["toogle", "button", "radio", "checkbox"].includes(arg.sub_type)
|
!["toggle", "button", "radio", "checkbox"].includes(arg.sub_type)
|
||||||
? cx(
|
? cx(
|
||||||
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
|
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
|
||||||
"c-rounded "
|
"c-rounded "
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export const FieldInput: FC<{
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cx(
|
className={cx(
|
||||||
!["toogle", "button", "radio", "checkbox"].includes(arg.sub_type)
|
!["toggle", "button", "radio", "checkbox"].includes(arg.sub_type)
|
||||||
? cx(
|
? cx(
|
||||||
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
|
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
|
||||||
"c-rounded "
|
"c-rounded "
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export const SingleOption: FC<{
|
||||||
<>
|
<>
|
||||||
{arg.sub_type === "dropdown" ? (
|
{arg.sub_type === "dropdown" ? (
|
||||||
<TypeDropdown arg={arg} field={field} fm={fm} />
|
<TypeDropdown arg={arg} field={field} fm={fm} />
|
||||||
) : arg.sub_type === "toogle" ? (
|
) : arg.sub_type === "toggle" ? (
|
||||||
<FieldToggle arg={arg} field={field} fm={fm} />
|
<FieldToggle arg={arg} field={field} fm={fm} />
|
||||||
) : arg.sub_type === "button" ? (
|
) : arg.sub_type === "button" ? (
|
||||||
<FieldButton arg={arg} field={field} fm={fm} />
|
<FieldButton arg={arg} field={field} fm={fm} />
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ export const newField = async (
|
||||||
}`,
|
}`,
|
||||||
],
|
],
|
||||||
type: "single-option",
|
type: "single-option",
|
||||||
sub_type: "toogle",
|
sub_type: "toggle",
|
||||||
ext__on_change: opt.on_change
|
ext__on_change: opt.on_change
|
||||||
? [opt.on_change, opt.on_change]
|
? [opt.on_change, opt.on_change]
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue