From 35cb522488ec80c064ad4c5f78d65cf927255ba3 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 10:00:45 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=94=BE?= =?UTF-8?q?=E5=A4=A7=E9=95=9C=E5=9B=BE=E6=A0=87=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/content/Content.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue index b3064fa..b11ec11 100644 --- a/src/views/home/content/Content.vue +++ b/src/views/home/content/Content.vue @@ -490,7 +490,7 @@ function cancel(val) {
@@ -674,6 +674,9 @@ function cancel(val) { height: 22px; background-color: #FFF; border-radius: 6px; + display: flex; + align-items: center; + justify-content: center; } } -- 2.39.3 From 0023764a996fea25e606e02bfe14e9f31e5f591a Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 10:32:57 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/worksheet/aside/Aside.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/worksheet/aside/Aside.vue b/src/views/worksheet/aside/Aside.vue index b4d363b..78d6e37 100644 --- a/src/views/worksheet/aside/Aside.vue +++ b/src/views/worksheet/aside/Aside.vue @@ -32,6 +32,9 @@ function collapseHandler() { } const mousetrap = inject('mousetrap') as any mousetrap.bind('[', collapseHandler) + +const searchKeyword = ref('') + const asideWidth = computed(() => { return collapse.value ? 0 : 308; }); @@ -136,11 +139,15 @@ const showSearch = ref(false); function setShowSearch(value: boolean) { showSearch.value = value; - - if (value === false) (packageListRef.value as any).search(""); + if (value === false) { + (packageListRef.value as any).search(""); + searchKeyword.value = '' + }; } const inputHandler = debounce((word) => { + searchKeyword.value = word + console.log(22222) (packageListRef.value as any).search(word); }, 500); @@ -183,6 +190,7 @@ const inputHandler = debounce((word) => { style="flex: 1; height: 32px" placeholder="请输入你需要搜索的内容" @input="inputHandler" + v-model:value="searchKeyword" >