wip fix style
This commit is contained in:
parent
9bf04504e8
commit
0532332a3a
|
|
@ -63,27 +63,13 @@ export const EdSidePropComp: FC<{ meta: IMeta }> = ({ meta }) => {
|
||||||
<div className="flex flex-col text-[12px] flex-1">
|
<div className="flex flex-col text-[12px] flex-1">
|
||||||
<div className="flex border-b p-1 h-[28px] items-center bg-slate-50 justify-between select-none">
|
<div className="flex border-b p-1 h-[28px] items-center bg-slate-50 justify-between select-none">
|
||||||
<div
|
<div
|
||||||
className="flex cursor-pointer items-center"
|
className="border px-1 cursor-pointer bg-white hover:bg-blue-100"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
p.ui.side.prop = false;
|
p.ui.side.prop = false;
|
||||||
p.render();
|
p.render();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<div>Edit Style</div>
|
||||||
width="15"
|
|
||||||
height="15"
|
|
||||||
viewBox="0 0 15 15"
|
|
||||||
fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z"
|
|
||||||
fill="currentColor"
|
|
||||||
fillRule="evenodd"
|
|
||||||
clipRule="evenodd"
|
|
||||||
></path>
|
|
||||||
</svg>
|
|
||||||
<div>Style</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="border px-1 cursor-pointer bg-white hover:bg-blue-100"
|
className="border px-1 cursor-pointer bg-white hover:bg-blue-100"
|
||||||
|
|
@ -97,7 +83,7 @@ export const EdSidePropComp: FC<{ meta: IMeta }> = ({ meta }) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Back to Instance
|
Edit Instance
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-1 relative overflow-y-auto overflow-x-hidden">
|
<div className="flex flex-1 relative overflow-y-auto overflow-x-hidden">
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ export const edActionDetach = (p: PG, item: IItem) => {
|
||||||
const nmap = new Y.Map();
|
const nmap = new Y.Map();
|
||||||
syncronize(nmap, comp);
|
syncronize(nmap, comp);
|
||||||
mitem.parent.insert(k, [nmap]);
|
mitem.parent.insert(k, [nmap]);
|
||||||
console.log(nmap.toJSON());
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ export const edActionNewComp = (
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(newcomp);
|
|
||||||
if (newcomp && newcomp.snapshot) {
|
if (newcomp && newcomp.snapshot) {
|
||||||
await loadCompSnapshot(p, newcomp.id, newcomp.snapshot, newcomp.meta);
|
await loadCompSnapshot(p, newcomp.id, newcomp.snapshot, newcomp.meta);
|
||||||
await treeRebuild(p);
|
await treeRebuild(p);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue