Drawer add draggable prop
This commit is contained in:
parent
4616d882d5
commit
a17511c397
3 changed files with 160 additions and 62 deletions
|
@ -36,6 +36,10 @@
|
|||
position: absolute;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&-dragging{
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-wrap * {
|
||||
|
@ -93,4 +97,36 @@
|
|||
&-no-mask{
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&-drag{
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
&-left{
|
||||
right: 0;
|
||||
}
|
||||
&-move-trigger{
|
||||
width: 8px;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
background: rgb(243, 243, 243);
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: ~"4px / 6px";
|
||||
box-shadow: 0 0 1px 1px rgba(0, 0, 0, .2);
|
||||
cursor: col-resize;
|
||||
&-point{
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
transform: translateX(50%);
|
||||
i{
|
||||
display: block;
|
||||
border-bottom: 1px solid rgb(192, 192, 192);
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue