Skip to content

Commit

Permalink
feat(title-bar): receive loading state from props
Browse files Browse the repository at this point in the history
  • Loading branch information
j10ccc committed Nov 13, 2024
1 parent 17554ab commit 3297a72
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/TitleBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@
<script setup lang="ts">
import Taro from "@tarojs/taro";
import { computed, toRefs } from "vue";
import { systemStore } from "@/store";
import "./index.scss";
const props = defineProps<{
title: string;
backButton?: boolean;
loading?: boolean;
}>();
const { title, backButton } = toRefs(props);
const loading = computed(() => {
return systemStore.loading;
});
const { title, backButton, loading } = toRefs(props);
const titleStyle = computed(() => {
const MenuRect = Taro.getMenuButtonBoundingClientRect();
Expand Down

0 comments on commit 3297a72

Please sign in to comment.