From 42fe774bbf7a87f349ea478d4bdbee2dbce0d3a8 Mon Sep 17 00:00:00 2001 From: nekosu Date: Sun, 6 Aug 2023 14:01:22 +0800 Subject: [PATCH] feat: optimize template search --- src/components/SingleTemplateEdit.vue | 47 +++++++++++++++++++++++++++ src/components/TemplateEdit.vue | 7 ++-- src/data/image.ts | 13 ++++++++ 3 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 src/components/SingleTemplateEdit.vue create mode 100644 src/data/image.ts diff --git a/src/components/SingleTemplateEdit.vue b/src/components/SingleTemplateEdit.vue new file mode 100644 index 0000000..79b0b7f --- /dev/null +++ b/src/components/SingleTemplateEdit.vue @@ -0,0 +1,47 @@ + + + diff --git a/src/components/TemplateEdit.vue b/src/components/TemplateEdit.vue index f56f8b9..34bca2c 100644 --- a/src/components/TemplateEdit.vue +++ b/src/components/TemplateEdit.vue @@ -8,6 +8,7 @@ import SingleArrayButton from './SingleArrayButton.vue' import FloatInput from './FloatInput.vue' import ImageHover from './ImageHover.vue' import { type UseProducer, updateEdit } from '@/persis' +import SingleTemplateEdit from './SingleTemplateEdit.vue' type TTemp = string | string[] | null type TThre = number | number[] | null @@ -101,11 +102,7 @@ const fixThre = (v: number) => { >