mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 直线选中范围优化
This commit is contained in:
parent
3ec22182ab
commit
61679c8157
@ -35,6 +35,7 @@
|
||||
/>
|
||||
</defs>
|
||||
<path
|
||||
class="line-point"
|
||||
:d="path"
|
||||
:stroke="elementInfo.color"
|
||||
:stroke-width="elementInfo.width"
|
||||
@ -128,9 +129,12 @@ export default defineComponent({
|
||||
<style lang="scss" scoped>
|
||||
.editable-element-shape {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
|
||||
&.lock .line-path {
|
||||
cursor: default;
|
||||
&.lock {
|
||||
.line-path, .line-point {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +148,8 @@ export default defineComponent({
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
.line-path {
|
||||
.line-path, .line-point {
|
||||
pointer-events: all;
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user