修复拖动选中的问题

This commit is contained in:
2025-11-29 09:44:30 +08:00
parent b76f2efe95
commit c17a64738b
2 changed files with 13 additions and 7 deletions
+5 -3
View File
@@ -591,15 +591,17 @@ onUnmounted(() => {
<span> ESC 关闭面板</span> <span> ESC 关闭面板</span>
</div> </div>
</div> </div>
</div>
</Transition>
<!-- 通知组件 --> <!-- 通知组件 - 使用 Teleport 避免被遮挡 -->
<Teleport to="body">
<NotificationToast <NotificationToast
:message="notification.message" :message="notification.message"
:type="notification.type" :type="notification.type"
:show="notification.show" :show="notification.show"
/> />
</div> </Teleport>
</Transition>
</template> </template>
<style scoped> <style scoped>
+4
View File
@@ -1444,6 +1444,7 @@ function isRemoveDisabled(token: string): boolean {
border-radius: var(--radius-md); border-radius: var(--radius-md);
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
cursor: grab; cursor: grab;
user-select: none;
transition: all 0.2s ease; transition: all 0.2s ease;
max-width: 100%; max-width: 100%;
} }
@@ -1489,6 +1490,7 @@ function isRemoveDisabled(token: string): boolean {
color: var(--color-text-primary); color: var(--color-text-primary);
font-size: 0.8125rem; font-size: 0.8125rem;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: text;
} }
.pe-edit-input::placeholder { .pe-edit-input::placeholder {
@@ -1696,6 +1698,7 @@ function isRemoveDisabled(token: string): boolean {
border-radius: var(--radius-md); border-radius: var(--radius-md);
transition: all 0.2s ease; transition: all 0.2s ease;
overflow: hidden; overflow: hidden;
user-select: none;
} }
.pe-token-detail:hover { .pe-token-detail:hover {
@@ -1870,6 +1873,7 @@ function isRemoveDisabled(token: string): boolean {
font-size: 0.875rem; font-size: 0.875rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: text;
} }
.pe-edit-panel input:focus, .pe-add-panel input:focus { .pe-edit-panel input:focus, .pe-add-panel input:focus {