Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
d48ec2cb
Commit
d48ec2cb
authored
Apr 30, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文字拖拽
parent
3d407d77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
index.vue
src/views/components/element/TextElement/index.vue
+5
-3
No files found.
src/views/components/element/TextElement/index.vue
View file @
d48ec2cb
...
@@ -56,8 +56,10 @@
...
@@ -56,8 +56,10 @@
/>
/>
<!-- 当字号过大且行高较小时,会出现文字高度溢出的情况,导致拖拽区域无法被选中,因此添加了以下节点避免该情况 -->
<!-- 当字号过大且行高较小时,会出现文字高度溢出的情况,导致拖拽区域无法被选中,因此添加了以下节点避免该情况 -->
<div
class=
"drag-handler top"
@
dblclick=
"setEditorHandler"
></div>
<template
v-show=
"!activeGroupElementId"
>
<div
class=
"drag-handler bottom"
@
dblclick=
"setEditorHandler"
></div>
<div
class=
"drag-handler top"
@
dblclick=
"setEditorHandler"
></div>
<div
class=
"drag-handler bottom"
@
dblclick=
"setEditorHandler"
></div>
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -84,7 +86,7 @@ const props = defineProps<{
...
@@ -84,7 +86,7 @@ const props = defineProps<{
const
mainStore
=
useMainStore
()
const
mainStore
=
useMainStore
()
const
slidesStore
=
useSlidesStore
()
const
slidesStore
=
useSlidesStore
()
const
{
handleElementId
,
isScaling
}
=
storeToRefs
(
mainStore
)
const
{
handleElementId
,
isScaling
,
activeGroupElementId
}
=
storeToRefs
(
mainStore
)
const
{
addHistorySnapshot
}
=
useHistorySnapshot
()
const
{
addHistorySnapshot
}
=
useHistorySnapshot
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment