Skip to content

Commit

Permalink
chore: responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Aug 13, 2024
1 parent 5a759d5 commit 2273a86
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions playground/src/views/demos/features/full-screen/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ const { isFullscreen: isDomFullscreen, toggle: toggleDom } =
<template>
<Page title="全屏示例">
<Card title="Window Full Screen">
<Button
:disabled="isFullscreen"
class="mr-2"
type="primary"
@click="enter"
>
Enter Window Full Screen
</Button>
<Button class="mr-2" @click="toggle"> Toggle Window Full Screen </Button>

<Button class="mr-2" danger @click="exit">
Exit Window Full Screen
</Button>

Current State: {{ isFullscreen }}
<div class="flex flex-wrap items-center gap-4">
<Button :disabled="isFullscreen" type="primary" @click="enter">
Enter Window Full Screen
</Button>
<Button @click="toggle"> Toggle Window Full Screen </Button>

<Button :disabled="!isFullscreen" danger @click="exit">
Exit Window Full Screen
</Button>

<span class="text-nowrap"> Current State: {{ isFullscreen }} </span>
</div>
</Card>

<Card title="Dom Full Screen">
Expand Down

0 comments on commit 2273a86

Please sign in to comment.