From d66ea987a3926731bff1582b2d5d0e90635c9976 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Sun, 24 Apr 2022 18:30:10 +0800
Subject: [PATCH] 调整公共样式

---
 plugins/filter/CFilter.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/plugins/filter/CFilter.vue b/plugins/filter/CFilter.vue
index 9a7d937..bca1b5d 100644
--- a/plugins/filter/CFilter.vue
+++ b/plugins/filter/CFilter.vue
@@ -4,7 +4,10 @@
  */
 
 <template>
-    <view class="c-filter">
+    <view
+        class="c-filter"
+        ref="filter"
+    >
         <view
             class="c-filter-bar"
             v-if="bar"
@@ -116,8 +119,6 @@
             filterRes: this.filterData || {},
             // 抽屉显示隐藏
             drawerShow: false,
-            // 抽屉内容显示隐藏(抽屉展开动画完成后再渲染表单,否则出现动画卡顿)
-            // drawerDisplay: false,
             // 面板项有已选
             itemsFilled: false,
             // 本次打开是否有改变
@@ -127,7 +128,6 @@
     methods: {
         handleOpen() {
             this.drawerShow = true;
-            // $(this.$refs.drawer).addClass('on');
         },
         handleBarChange(name, value) {
             this.$set(this.filterRes, name, value);
@@ -171,7 +171,6 @@
             this.onChange(this.filterRes);
         },
         handleFinish() {
-            // $(this.$refs.drawer).removeClass('on');
             this.drawerShow = false;
             // 有项目改变时,发送变化
             if (this.itemsChanged) {
@@ -180,6 +179,8 @@
             }
         },
     },
-    mounted() {},
+    mounted() {
+        $(this.$refs.filter).parent().css({ transform: 'translate(0,0);' });
+    },
 };
 </script>

--
Gitblit v1.9.1