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"; let type = "TXT";
if (node.data?.prop.meta?.type === "option") type = "OPT"; 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"; else if (node.data?.prop.meta?.type === "content-element") type = "JSX";
const plabel = node.data?.prop.label; const plabel = node.data?.prop.label;

View File

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