fix name
This commit is contained in:
parent
967f910fd3
commit
60fc0b59d7
|
|
@ -141,6 +141,7 @@ const Name: FC<{ name: string; is_jsx_prop: boolean; meta?: IMeta }> = ({
|
||||||
}) => {
|
}) => {
|
||||||
if (is_jsx_prop) {
|
if (is_jsx_prop) {
|
||||||
let comp_label = "";
|
let comp_label = "";
|
||||||
|
const comp_id = meta?.item.component?.id;
|
||||||
for (const prop of Object.values(meta?.item.component?.props || {})) {
|
for (const prop of Object.values(meta?.item.component?.props || {})) {
|
||||||
if (prop.is_name) {
|
if (prop.is_name) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -164,7 +165,9 @@ const Name: FC<{ name: string; is_jsx_prop: boolean; meta?: IMeta }> = ({
|
||||||
{name}
|
{name}
|
||||||
{comp_label && `: ${comp_label}`}
|
{comp_label && `: ${comp_label}`}
|
||||||
</div>
|
</div>
|
||||||
{meta && meta.mitem && <GenerateJSX meta={meta} />}
|
{meta && meta.mitem && active.comp_id !== comp_id && (
|
||||||
|
<GenerateJSX meta={meta} />
|
||||||
|
)}
|
||||||
{meta && !meta.mitem && (
|
{meta && !meta.mitem && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
delay={0}
|
delay={0}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue