From d8ef6b1d86e28425a2fe9e35920484ea8b669118 Mon Sep 17 00:00:00 2001 From: nekosu Date: Sun, 6 Aug 2023 17:37:03 +0800 Subject: [PATCH] feat: some misc option --- src/App.vue | 2 +- src/components/MiscEdit.vue | 135 +++++++++++++++++++++ src/components/TaskEdit.vue | 44 +++---- src/components/task/SingleNavigateEdit.vue | 5 +- src/persis.ts | 4 +- 5 files changed, 156 insertions(+), 34 deletions(-) create mode 100644 src/components/MiscEdit.vue diff --git a/src/App.vue b/src/App.vue index ec5f3f6..deb5635 100644 --- a/src/App.vue +++ b/src/App.vue @@ -140,7 +140,7 @@ const fastNavigate = computed({
diff --git a/src/components/MiscEdit.vue b/src/components/MiscEdit.vue new file mode 100644 index 0000000..a334c54 --- /dev/null +++ b/src/components/MiscEdit.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/components/TaskEdit.vue b/src/components/TaskEdit.vue index f905932..847a999 100644 --- a/src/components/TaskEdit.vue +++ b/src/components/TaskEdit.vue @@ -22,14 +22,13 @@ import { computed, ref } from 'vue' import { commitDelete, commitDuplicate, commitMove, navigate } from '@/data' import { taskIndex } from '@/data/task' import { Util } from '@/fs' -import { type UseProducer, applyEditOn } from '@/persis' -import { type Task } from '@/types' +import type { UseProducer } from '@/persis' +import type { Task } from '@/types' import ActionEdit from './ActionEdit.vue' +import MiscEdit from './MiscEdit.vue' import RecognizerEdit from './RecognizerEdit.vue' -import ClearButton from '@/components/atomic/ClearButton.vue' import JsonEdit from '@/components/atomic/JsonEdit.vue' -import ArrayNavigateEdit from '@/components/task/ArrayNavigateEdit.vue' import SingleNavigateEdit from '@/components/task/SingleNavigateEdit.vue' const props = defineProps<{ @@ -189,8 +188,11 @@ function tryDelete() {
-
-
+
+
@@ -199,33 +201,15 @@ function tryDelete() { -
- - Next - - -
+
-
+
diff --git a/src/components/task/SingleNavigateEdit.vue b/src/components/task/SingleNavigateEdit.vue index 68d5002..484bb69 100644 --- a/src/components/task/SingleNavigateEdit.vue +++ b/src/components/task/SingleNavigateEdit.vue @@ -2,6 +2,7 @@ import { AdsClickOutlined, MovingOutlined, + RepeatOutlined, SwipeRightOutlined, TranslateOutlined, WavingHandOutlined @@ -49,12 +50,14 @@ const options = computed(() => {