@ -171,7 +171,8 @@ html {
justify-content: center;
}
#canvas-tabs {
#canvas-tabs,
#go-back {
position: absolute;
top: 20px;
left: 50%;
@ -185,6 +186,12 @@ html {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
left: 60px;
background-color: unset;
box-shadow: unset;
.tab-button {
padding: 8px 15px;
border: none;
@ -71,6 +71,9 @@
</div>
<!-- 画布容器 -->
<div id="canvas-panel">
<div id="go-back">
<button class="tab-button active"><</button>
<div id="canvas-tabs">
<button
class="tab-button active"
@ -580,6 +580,10 @@
currentComponent = null;
hidePropsPanel();
});
$('#go-back .tab-button').on('click', function () {
window.history.back();
};
// 抽取校验函数