From 9bd3ac93b8cfc734b66f74d3c640960070dfaf75 Mon Sep 17 00:00:00 2001 From: Linho Date: Sat, 26 Apr 2025 21:23:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=82=B9=E9=9B=86=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/inputs/coordArrInputs.vue | 100 +++++++++++++++------------ src/ui/icons/dragalt.vue | 9 +++ 2 files changed, 65 insertions(+), 44 deletions(-) create mode 100644 src/ui/icons/dragalt.vue diff --git a/src/editor/inputs/coordArrInputs.vue b/src/editor/inputs/coordArrInputs.vue index f5201cf..2e6e15b 100644 --- a/src/editor/inputs/coordArrInputs.vue +++ b/src/editor/inputs/coordArrInputs.vue @@ -6,50 +6,39 @@ :animation="200" handle="span.coordarr-drag" > -
- - - - - - - - - {{ - t(fnType.coordArr.label) + fnType.coordArr.fir - }} - - - {{ fnType.coordArr.sep }} - +
- - {{ fnType.coordArr.fin }} - - - - - - - -
+ + + + {{ + t(fnType.coordArr.label) + fnType.coordArr.fir + }} + + + {{ fnType.coordArr.sep }} + + + {{ fnType.coordArr.fin }} + + + +
+ (); type PrivateData = { @@ -108,7 +100,7 @@ onMounted(() => { .coordarr-wrapper { display: flex; flex-direction: column; - gap: 0.8rem; + gap: 10px; } .coordarr-drag { @@ -133,3 +125,23 @@ onMounted(() => { font-size: 20px; } + + diff --git a/src/ui/icons/dragalt.vue b/src/ui/icons/dragalt.vue new file mode 100644 index 0000000..18161c2 --- /dev/null +++ b/src/ui/icons/dragalt.vue @@ -0,0 +1,9 @@ + From 7f0c088658dd7fa4b10c2edeaf9ece0c210ee528 Mon Sep 17 00:00:00 2001 From: Linho Date: Sat, 26 Apr 2025 22:33:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8C=85=E8=A3=85=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=88=97=E8=A1=A8=E5=8A=A8=E7=94=BB=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 8 + src/consts.ts | 1 + src/editor/datum.vue | 205 +++++++++++------------ src/editor/datumList.vue | 23 ++- src/editor/inputs/coordArrInputs.vue | 94 +++++------ src/ui/animatedList/animatedList.vue | 5 + src/ui/animatedList/animatedListItem.vue | 24 +++ 7 files changed, 191 insertions(+), 169 deletions(-) create mode 100644 src/ui/animatedList/animatedList.vue create mode 100644 src/ui/animatedList/animatedListItem.vue diff --git a/.vscode/settings.json b/.vscode/settings.json index c91cd66..4f62d6f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,5 +32,13 @@ "folderNames": ["icons"], "rootFolderNames": ["icons"] }, + { + "name": "animate", + "base": "animation", + "color": "purple-400", + "lightColor": "purple-100", + "folderNames": ["animatedList"], + "rootFolderNames": ["animatedList"] + }, ] } diff --git a/src/consts.ts b/src/consts.ts index 4e999bf..15f4561 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -82,6 +82,7 @@ export function getNewDatum(): InternalDatum { key: Math.random(), fnType: "linear", graphType: "polyline", + fn: "", }; } diff --git a/src/editor/datum.vue b/src/editor/datum.vue index 698be10..bdb9e44 100644 --- a/src/editor/datum.vue +++ b/src/editor/datum.vue @@ -1,87 +1,104 @@ + + diff --git a/src/editor/inputs/coordArrInputs.vue b/src/editor/inputs/coordArrInputs.vue index 2e6e15b..7c448ad 100644 --- a/src/editor/inputs/coordArrInputs.vue +++ b/src/editor/inputs/coordArrInputs.vue @@ -6,39 +6,37 @@ :animation="200" handle="span.coordarr-drag" > - -
- - - - {{ - t(fnType.coordArr.label) + fnType.coordArr.fir - }} - - - {{ fnType.coordArr.sep }} - - - {{ fnType.coordArr.fin }} - - - -
-
+ + +
+ + + + {{ + t(fnType.coordArr.label) + fnType.coordArr.fir + }} + + + {{ fnType.coordArr.sep }} + + + {{ fnType.coordArr.fin }} + + + +
+
+
(); type PrivateData = { @@ -100,7 +101,10 @@ onMounted(() => { .coordarr-wrapper { display: flex; flex-direction: column; - gap: 10px; +} + +.input-box.coord.coordarr{ + margin-top: 10px; } .coordarr-drag { @@ -110,7 +114,7 @@ onMounted(() => { border-radius: 5px; } -.sortable-chosen > .coordarr-drag { +.sortable-chosen .coordarr-drag { background: var(--s-color-outline-variant); z-index: 999; } @@ -125,23 +129,3 @@ onMounted(() => { font-size: 20px; } - - diff --git a/src/ui/animatedList/animatedList.vue b/src/ui/animatedList/animatedList.vue new file mode 100644 index 0000000..52c3ae6 --- /dev/null +++ b/src/ui/animatedList/animatedList.vue @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/ui/animatedList/animatedListItem.vue b/src/ui/animatedList/animatedListItem.vue new file mode 100644 index 0000000..ab80157 --- /dev/null +++ b/src/ui/animatedList/animatedListItem.vue @@ -0,0 +1,24 @@ + + +