Feat(Menu): Add tool menu via drag and drop

Drag and drop a tool card to add tool menu
This commit is contained in:
2024-04-30 13:42:36 +08:00
parent 843f47346a
commit 7b61a5fdb3
30 changed files with 785 additions and 298 deletions

View File

@@ -4,6 +4,13 @@
[data-component=tools-framework] {
.left-panel {
background-color: constants.$origin-color;
.menu-droppable {
display: flex;
min-height: 0;
flex: 1;
width: 100%;
}
}
.right-panel {

View File

@@ -11,7 +11,7 @@
flex-wrap: wrap;
justify-content: flex-start;
> .card-box {
> .card-box, > div {
width: 180px;
height: 290px;
flex: 0 0 auto;
@@ -77,6 +77,7 @@
flex-direction: row;
align-items: center;
gap: 20px;
margin-top: 20px;
:first-child, :last-child {
height: 0;
@@ -99,7 +100,7 @@
flex-wrap: wrap;
justify-content: flex-start;
> .card-box {
> .card-box, > div {
width: 180px;
height: 290px;
flex: 0 0 auto;

View File

@@ -26,7 +26,7 @@
flex-wrap: wrap;
justify-content: center;
> .card-box {
> div {
width: 180px;
height: 290px;
flex: 0 0 auto;

View File

@@ -68,7 +68,7 @@
flex-wrap: wrap;
justify-content: center;
> .card-box {
> div {
width: 180px;
height: 290px;
flex: 0 0 auto;