From 1df55b78c2590549502716fe57c2f5633835c0ab Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 12 Jan 2022 22:48:25 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=A1=B9=E7=9B=AE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=90=9C=E7=B4=A2=E6=8C=89=E9=92=AE=E5=86=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=BC=B9=E5=87=BA=E7=9A=84=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E7=AA=97=E4=BC=9A=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/manage/components/ProjectList.vue | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ProjectList.vue b/resources/assets/js/pages/manage/components/ProjectList.vue index 0e3f20e8..561f4d01 100644 --- a/resources/assets/js/pages/manage/components/ProjectList.vue +++ b/resources/assets/js/pages/manage/components/ProjectList.vue @@ -35,12 +35,12 @@
  • - - + +
    -
    +
  • @@ -464,7 +464,6 @@ export default { sortField: 'end_at', sortType: 'desc', - searchShow: false, searchText: '', addColumnShow: false, @@ -716,19 +715,18 @@ export default { watch: { projectData() { this.sortData = this.getSort(); - }, - searchShow(val) { - if (val) { - this.$nextTick(() => { - this.$refs.searchInput.focus({ - cursor: "end" - }); - }) - } } }, methods: { + searchFocus() { + this.$nextTick(() => { + this.$refs.searchInput.focus({ + cursor: "end" + }); + }) + }, + getSort() { const sortData = []; this.columnList.forEach((column) => {