From 3260e5127a24d691e2d12b3d4ef5cf5bffa8e6ac Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 11 Dec 2021 23:19:08 +0800 Subject: [PATCH] fix js report errors --- resources/assets/js/components/ScrollerY.vue | 6 +++++- .../assets/js/pages/manage/components/ProjectArchived.vue | 2 ++ .../assets/js/pages/manage/components/ProjectManagement.vue | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/ScrollerY.vue b/resources/assets/js/components/ScrollerY.vue index c6cdf15a0..e09ad6bb0 100644 --- a/resources/assets/js/components/ScrollerY.vue +++ b/resources/assets/js/components/ScrollerY.vue @@ -146,7 +146,11 @@ export default { scrollY: wScrollY, //滚动的距离 scrollE: bScrollH - wInnerH - wScrollY, //与底部距离 } - } + }, + + querySelector(el) { + return this.$refs.scrollerView && this.$refs.scrollerView.querySelector(el) + }, } } diff --git a/resources/assets/js/pages/manage/components/ProjectArchived.vue b/resources/assets/js/pages/manage/components/ProjectArchived.vue index f2b0bffba..9705a9eb1 100644 --- a/resources/assets/js/pages/manage/components/ProjectArchived.vue +++ b/resources/assets/js/pages/manage/components/ProjectArchived.vue @@ -55,6 +55,8 @@ export default { { title: this.$L('ID'), key: 'id', + minWidth: 50, + maxWidth: 70, }, { title: this.$L('项目名称'), diff --git a/resources/assets/js/pages/manage/components/ProjectManagement.vue b/resources/assets/js/pages/manage/components/ProjectManagement.vue index 5fef38b6d..d599bbdea 100644 --- a/resources/assets/js/pages/manage/components/ProjectManagement.vue +++ b/resources/assets/js/pages/manage/components/ProjectManagement.vue @@ -67,6 +67,8 @@ export default { { title: this.$L('ID'), key: 'id', + minWidth: 50, + maxWidth: 70, }, { title: this.$L('项目名称'),