From 548455f127f44e5ebf4fb93661499f3472bef60a Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Mon, 1 Jun 2026 19:15:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E7=8A=B6=E6=80=81=E6=A0=8F?= =?UTF-8?q?=20+/-=20=E8=A1=8C=E6=95=B0=E5=8F=98=E5=8C=96=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E6=BB=9A=E7=AD=92=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 RollingNumber.vue:逐位纵向滚筒,值变大下面顶上来、变小上面压下来, 高位先动(38ms 错开),一次变化两格直达不路过中间数字。接入 InputComposer 状态栏的 +additions / -deletions 两处。 Co-Authored-By: Claude Opus 4.8 (1M context) --- static/src/components/input/InputComposer.vue | 9 +- static/src/components/input/RollingNumber.vue | 273 ++++++++++++++++++ 2 files changed, 280 insertions(+), 2 deletions(-) create mode 100644 static/src/components/input/RollingNumber.vue diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index 6bfff77..373ec70 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -130,8 +130,8 @@ class="floating-project-status__stats" @click.stop="$emit('open-git-changes-panel')" > - +{{ projectGitSummaryForRender.additions }} - -{{ projectGitSummaryForRender.deletions }} + + + - @@ -366,6 +366,7 @@ import Mention from '@tiptap/extension-mention'; import Placeholder from '@tiptap/extension-placeholder'; import { TextSelection } from 'prosemirror-state'; import QuickMenu from '@/components/input/QuickMenu.vue'; +import RollingNumber from '@/components/input/RollingNumber.vue'; import { useInputStore } from '@/stores/input'; import { usePersonalizationStore } from '@/stores/personalization'; @@ -1930,10 +1931,14 @@ onBeforeUnmount(() => { } .floating-project-status__add { + display: inline-flex; + align-items: center; color: var(--git-diff-add-text); } .floating-project-status__del { + display: inline-flex; + align-items: center; color: var(--git-diff-del-text); } diff --git a/static/src/components/input/RollingNumber.vue b/static/src/components/input/RollingNumber.vue new file mode 100644 index 0000000..f038e5c --- /dev/null +++ b/static/src/components/input/RollingNumber.vue @@ -0,0 +1,273 @@ + + + + +