mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 节名称编辑拖拽异常
This commit is contained in:
parent
b32eceac05
commit
daf87756e0
@ -57,7 +57,7 @@
|
|||||||
@dblclick="enterEdit(item.id)"
|
@dblclick="enterEdit(item.id)"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
:id="`input-${item.id}`"
|
:id="`select-panel-input-${item.id}`"
|
||||||
:value="item.name || ELEMENT_TYPE_ZH[item.type]"
|
:value="item.name || ELEMENT_TYPE_ZH[item.type]"
|
||||||
class="input"
|
class="input"
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
:animation="200"
|
:animation="200"
|
||||||
:scroll="true"
|
:scroll="true"
|
||||||
:scrollSensitivity="50"
|
:scrollSensitivity="50"
|
||||||
|
:disabled="editingSectionId"
|
||||||
@end="handleDragEnd"
|
@end="handleDragEnd"
|
||||||
itemKey="id"
|
itemKey="id"
|
||||||
>
|
>
|
||||||
@ -41,7 +42,9 @@
|
|||||||
@keydown.enter.stop="$event => saveSection($event)"
|
@keydown.enter.stop="$event => saveSection($event)"
|
||||||
v-if="editingSectionId === element?.sectionTag?.id || (index === 0 && editingSectionId === 'default')"
|
v-if="editingSectionId === element?.sectionTag?.id || (index === 0 && editingSectionId === 'default')"
|
||||||
>
|
>
|
||||||
<span class="text" v-else>{{ element?.sectionTag ? (element?.sectionTag?.title || '无标题节') : '默认节' }}</span>
|
<span class="text" v-else>
|
||||||
|
<div class="text-content">{{ element?.sectionTag ? (element?.sectionTag?.title || '无标题节') : '默认节' }}</div>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="thumbnail-item"
|
class="thumbnail-item"
|
||||||
@ -490,12 +493,9 @@ const contextmenusThumbnailItem = (): ContextmenuItem[] => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
width: 100%;
|
|
||||||
display: inline-block;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
@include ellipsis-oneline();
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
@ -507,6 +507,11 @@ const contextmenusThumbnailItem = (): ContextmenuItem[] => {
|
|||||||
border-right: 3px solid #555;
|
border-right: 3px solid #555;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-content {
|
||||||
|
display: inline-block;
|
||||||
|
@include ellipsis-oneline();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user