修改页面 滚动条
This commit is contained in:
parent
c3587b4411
commit
e03b492c1d
@ -169,7 +169,6 @@ class JMap {
|
|||||||
case orders.Binding:
|
case orders.Binding:
|
||||||
case orders.Add:
|
case orders.Add:
|
||||||
newShape = this.$shapeFactory.createShape(updateModel, action.shapeType);
|
newShape = this.$shapeFactory.createShape(updateModel, action.shapeType);
|
||||||
console.log(newShape, 1111);
|
|
||||||
this.$shapeFactory.addShape(newShape)
|
this.$shapeFactory.addShape(newShape)
|
||||||
this.$painter.add(newShape);
|
this.$painter.add(newShape);
|
||||||
break;
|
break;
|
||||||
|
@ -49,5 +49,33 @@ export default {
|
|||||||
top: 0;
|
top: 0;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
/*滚动条整体样式*/
|
||||||
|
width : 5px;
|
||||||
|
/*高宽分别对应横竖滚动条的尺寸*/
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
/*滚动条里面小方块*/
|
||||||
|
border-radius : 10px;
|
||||||
|
background-color: lightskyblue;
|
||||||
|
background-image: -webkit-linear-gradient(
|
||||||
|
45deg,
|
||||||
|
rgba(255, 255, 255, 0.2) 25%,
|
||||||
|
transparent 25%,
|
||||||
|
transparent 50%,
|
||||||
|
rgba(255, 255, 255, 0.2) 50%,
|
||||||
|
rgba(255, 255, 255, 0.2) 75%,
|
||||||
|
transparent 75%,
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
/*滚动条里面轨道*/
|
||||||
|
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
|
||||||
|
background : #ededed;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -20,7 +20,6 @@ export default class TransformHandle {
|
|||||||
|
|
||||||
// 重新计算显隐
|
// 重新计算显隐
|
||||||
visibleView(shape) {
|
visibleView(shape) {
|
||||||
console.log(this.checkVisible(shape));
|
|
||||||
this.checkVisible(shape)
|
this.checkVisible(shape)
|
||||||
? shape.show()
|
? shape.show()
|
||||||
: shape.hide();
|
: shape.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user