From 7ddb94bb7ba9bc7057c880b7c6e1ca755ca687b9 Mon Sep 17 00:00:00 2001
From: mehaotian <490272692@qq.com>
Date: Mon, 28 Aug 2023 15:59:29 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8A=98=E5=8F=A0=E9=9D=A2=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.uvue | 3 +-
.../uni-collapse-item/uni-collapse-item.vue | 9 +-
pages/tabBar/API.uvue | 18 -
pages/tabBar/CSS.uvue | 712 ++++++++----------
pages/tabBar/component.uvue | 18 -
pages/tabBar/template.uvue | 3 +-
6 files changed, 339 insertions(+), 424 deletions(-)
diff --git a/App.uvue b/App.uvue
index d8f4b796..2d86429b 100644
--- a/App.uvue
+++ b/App.uvue
@@ -30,11 +30,10 @@ export default {
setLifeCycleNum(state.lifeCycleNum - 100)
console.log('App Hide')
},
- onLastPageBackPress: function (): boolean | null {
+ onLastPageBackPress: function () {
// 自动化测试
setLifeCycleNum(state.lifeCycleNum - 1000)
console.log('App LastPageBackPress')
- return null
},
methods: {
increasetLifeCycleNum() {
diff --git a/components/uni-collapse-item/uni-collapse-item.vue b/components/uni-collapse-item/uni-collapse-item.vue
index d590cf4e..9d0cca96 100644
--- a/components/uni-collapse-item/uni-collapse-item.vue
+++ b/components/uni-collapse-item/uni-collapse-item.vue
@@ -67,11 +67,13 @@
oepnOrClose(open: boolean) {
const boxNode = this.boxNode?.style!;
const contentNode = this.contentNode?.style!;
- let hide = open ? 'flex' : 'none';
+ let hide = open ? 'flex' : 'none';
+ const opacity = open ? 1 : 0
let ani_transform = open ? 'translateY(0)' : 'translateY(-100%)';
boxNode.setProperty('display', hide);
this.$nextTick(() => {
- contentNode.setProperty('transform', ani_transform);
+ contentNode.setProperty('transform', ani_transform);
+ contentNode.setProperty('opacity', opacity);
})
}
}
@@ -130,6 +132,7 @@
width: 100%;
transition-property: transform;
transition-duration: 0.3s;
- transform: translateY(-100%);
+ transform: translateY(-100%);
+ opacity: 0;
}
\ No newline at end of file
diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index 8b34ef97..6c79e7b6 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -22,24 +22,6 @@
-
diff --git a/pages/tabBar/CSS.uvue b/pages/tabBar/CSS.uvue
index 4fed04ee..2ba813f0 100644
--- a/pages/tabBar/CSS.uvue
+++ b/pages/tabBar/CSS.uvue
@@ -1,14 +1,14 @@
-
-
-
-
-
-
-
- uni-app x目前已支持的CSS属性,展示样式仅供参考,文档详见:
-
+
+
+
+
+
+
+
+ uni-app x目前已支持的CSS属性,展示样式仅供参考,文档详见:
+
@@ -19,379 +19,327 @@
-
-
-
-
-
-
-
-
-
-
-
+ }
+
\ No newline at end of file
diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue
index 25917e31..eb2b7240 100644
--- a/pages/tabBar/component.uvue
+++ b/pages/tabBar/component.uvue
@@ -20,24 +20,6 @@
-
diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index 62424880..abe82e96 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -40,7 +40,8 @@