This commit is contained in:
Rizky 2024-03-11 19:00:12 +07:00
parent 181fc21817
commit 66e57cd3dd
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export const EdPropCompTreeItem: FC<{
let type = "TXT";
if (node.data?.prop.meta?.type === "option") type = "OPT";
else if (node.data?.prop.meta?.type === "file") type = "FILE";
else if (node.data?.prop.meta?.type === "content-element") type = "JSX";
const plabel = node.data?.prop.label;

View File

@ -303,6 +303,7 @@ const SingleProp: FC<{
(
{
option: "OPT",
file: "FILE",
text: "TXT",
"content-element": "JSX",
} as any
@ -421,6 +422,7 @@ const SinglePopover: FC<{
{[
{ label: "TXT", type: "text" },
{ label: "OPT", type: "option" },
{ label: "FILE", type: "file" },
{ label: "JSX", type: "content-element" },
].map((e) => {
return (