Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 166 additions & 1 deletion NextNode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions NextNode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"dependencies": {
"@tiptap/extension-bubble-menu": "^3.14.0",
"@tiptap/extension-code-block-lowlight": "^3.14.0",
"@tiptap/extension-drag-handle": "^3.14.0",
"@tiptap/extension-dropcursor": "^3.14.0",
"@tiptap/extension-image": "^3.14.0",
"@tiptap/extension-placeholder": "^3.14.0",
"@tiptap/extension-task-item": "^3.14.0",
Expand All @@ -27,6 +29,7 @@
"pinia": "^3.0.4",
"tippy.js": "^6.3.7",
"vue": "^3.5.24",
"vue-draggable-next": "^2.3.0",
"vue-router": "^4.6.4"
},
"devDependencies": {
Expand Down
34 changes: 34 additions & 0 deletions NextNode/src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* src/assets/main.css */

/* stylelint-disable-next-line at-rule-no-unknown */
@tailwind base;
/* stylelint-disable-next-line at-rule-no-unknown */
@tailwind components;
/* stylelint-disable-next-line at-rule-no-unknown */
@tailwind utilities;

/* 👇 核心修复代码开始 👇 */
Expand Down Expand Up @@ -149,4 +152,35 @@ img {
height: 0;
/* 解决某些情况下光标位置不对的问题 */
font-style: normal;
}
/* 拖拽相关全局样式 */
.ProseMirror .drag-handle {
opacity: 0;
transition: opacity 0.2s ease;
}

.ProseMirror .drag-handle:hover {
opacity: 1;
}

.ProseMirror .ProseMirror-dropcursor {
border-color: #3b82f6;
border-width: 2px;
}

/* 拖拽占位符动画 */
.ProseMirror .ProseMirror-dropcursor {
animation: dropcursorPulse 0.6s ease-in-out infinite alternate;
}

@keyframes dropcursorPulse {
from { opacity: 0.6; }
to { opacity: 1; }
}

/* 块拖拽反馈 */
.block-dragging {
opacity: 0.5;
transform: rotate(2deg);
transition: all 0.2s ease;
}
Loading