skyblued 3 năm trước cách đây
mục cha
commit
191cca1526
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/student/teacher-dependent/teacher-home.tsx

+ 4 - 2
src/student/teacher-dependent/teacher-home.tsx

@@ -32,7 +32,7 @@ export default defineComponent({
       background: 'rgba(55, 205, 177, 0)',
       headColor: '#fff',
       height: 'auto' as any,
-
+      backIconColor: 'white'
     }
   },
   async created() {},
@@ -48,9 +48,11 @@ export default defineComponent({
       if (y.value > 50) {
         this.headColor = '#000'
         this.background = '#fff'
+        this.backIconColor = 'black'
       } else {
         this.background = 'transparent'
         this.headColor = '#fff'
+        this.backIconColor = 'white'
       }
     })
   },
@@ -74,7 +76,7 @@ export default defineComponent({
             background={this.background}
             border={false}
             color={this.headColor}
-            backIconColor="white"
+            backIconColor={this.backIconColor as any}
             onHeaderBack={() => {
               this.$nextTick(() => {
                 const { height } = useRect((this as any).$refs.headers)