プロジェクト
概要
Vue向けの全画面表示機能。ネイティブモードとページ内のみのモードに対応しています。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルvue-fullscreen
Fullscreen for Vue, with native and page-only modes.
English documentation · 中文文档 · Live demo / 在线演示
Install
npm install vue-fullscreen # Vue 3 (5.x)
npm install vue-fullscreen@legacy # Vue 2 (4.x)
Supports Vue 3.0+ and Vue 2.4+. For upgrades from older major versions, see the Vue 3 migration guide or Vue 2 migration guide.
Quick start
Vue 3.2+:
<script setup>
import { ref } from 'vue'
import { Fullscreen } from 'vue-fullscreen'
const isFullscreen = ref(false)
</script>
<template>
<Fullscreen v-model="isFullscreen">
<button @click="isFullscreen = !isFullscreen">Toggle fullscreen</button>
</Fullscreen>
</template>
For Vue 2, directives, API usage and more examples, see the Vue 3 guide or Vue 2 guide.
Star History
License
関連プロジェクトを探す
読み込み中…