From 4d278db8cb6f6f2653641f10931399427d93e3c3 Mon Sep 17 00:00:00 2001 From: nekosu Date: Fri, 4 Aug 2023 11:12:30 +0800 Subject: [PATCH] refactor: optimize structure --- src/App.vue | 2 +- src/components/ActionEdit.vue | 161 +++++++++++++------------- src/components/RecognizerEdit.vue | 181 ++++++++++++++++-------------- src/components/TaskEdit.vue | 28 +---- 4 files changed, 186 insertions(+), 186 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2057e6a..f5e6b22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -154,7 +154,7 @@ const treeHeight = computed(() => { v-model:selected-keys="selectedKeysFilter" block-line selectable - default-expand-all + expand-on-click :pattern="searchText" :show-irrelevant-nodes="false" :cancelable="false" diff --git a/src/components/ActionEdit.vue b/src/components/ActionEdit.vue index ec50094..4a1f9fd 100644 --- a/src/components/ActionEdit.vue +++ b/src/components/ActionEdit.vue @@ -53,80 +53,89 @@ const taskCustomActParam = wrapProp(task, 'custom_action_param') diff --git a/src/components/RecognizerEdit.vue b/src/components/RecognizerEdit.vue index 5bdece0..e44c089 100644 --- a/src/components/RecognizerEdit.vue +++ b/src/components/RecognizerEdit.vue @@ -42,92 +42,101 @@ const taskCustomRecoParam = wrapProp(task, 'custom_recognizer_param') diff --git a/src/components/TaskEdit.vue b/src/components/TaskEdit.vue index e5e0492..d493fa5 100644 --- a/src/components/TaskEdit.vue +++ b/src/components/TaskEdit.vue @@ -180,31 +180,13 @@ function tryDelete() {
-
- -
+
-
- -
+