checkpoint

This commit is contained in:
rizky 2024-10-22 01:19:43 -07:00
parent 47d7f6397c
commit 6146b39454
3 changed files with 6 additions and 5 deletions

View File

@ -116,7 +116,8 @@ export const FieldTypeInput: FC<{
switch (type_field) {
case "toggle":
return (
<div className="c-px-2">ad
<div className="c-px-2">
ad
<div
className={cx(
"c-relative",
@ -254,7 +255,6 @@ export const FieldTypeInput: FC<{
prop.onChange(fm.data[field.name]);
}
}}
//@ts-ignore
inputMode="decimal"
value={format(value, {
mask: "____-____-_______",
@ -286,8 +286,7 @@ export const FieldTypeInput: FC<{
<div className="c-flex c-relative c-flex-1">
<InputMask
mask={mask}
//@ts-ignore
inputmode="decimal"
inputMode="decimal"
replacement={{ _: /\d/ }}
onChange={(ev) => {
fm.data[field.name] = ev.currentTarget.value.replace(/\D/g, "");

View File

@ -220,6 +220,8 @@ export const formType = (active: { item_id: string }, meta: any) => {
}
}
console.log(data, cache);
return `
const ___data = ${data} ;
const fm = null as unknown as {

View File

@ -11,7 +11,7 @@
"@radix-ui/react-navigation-menu": "^1.2.0",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.1.0",
"@react-input/mask": "^1.2.5",
"@react-input/mask": "^1.2.11",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-slot": "^1.0.2",