Skip to content

Commit

Permalink
feat: add the component of non-xuehai-pad
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Jan 27, 2024
1 parent 761a21b commit 5cf53f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ declare module 'vue' {
ZCollapsedOrExpand: typeof import('./src/components/utils/ZCollapsedOrExpand.vue')['default']
ZDisplayPerson: typeof import('./src/components/member/ZDisplayPerson.vue')['default']
ZInputDuration: typeof import('./src/components/form/ZInputDuration.vue')['default']
ZNonXuehaiPad: typeof import('./src/components/utils/ZNonXuehaiPad.vue')['default']
ZNotificationList: typeof import('./src/components/notifications/ZNotificationList.vue')['default']
ZRewardCard: typeof import('./src/components/reward/ZRewardCard.vue')['default']
ZSelectActivityMode: typeof import('./src/components/form/ZSelectActivityMode.vue')['default']
Expand Down
9 changes: 9 additions & 0 deletions src/components/utils/ZNonXuehaiPad.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
import { pad } from '@/plugins/ua'
const isPad = pad()
</script>

<template>
<slot v-if="!isPad" />
</template>

0 comments on commit 5cf53f4

Please sign in to comment.