0.0.12 • Published 11 days ago

vue-split-screen v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

vue-split-screen

NPM version

This library is used to create a split-screen effect of the page, so that the page on the folding mobile has a better experience.

usage

<script setup>
import { SplitScreen } from 'vue-split-screen';

const turnOn = ref(true);

/**
 * @description: Whether to reverse the split screen
 */
const reverse = ref(false);
</script>

<template>
  <router-view v-slot="{ Component }">
    <SplitScreen :turn-on="turnOn" :split-reverse="reverse">
      <component :is="Component" />
      <template #placeholder>
        <!-- placehoder template -->
      </template>
    </SplitScreen>
  </router-view>
</template>

Contributors

License

MIT License © 2022 Huali

0.0.12

11 days ago

0.0.3

1 year ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.5

12 months ago

0.0.4

1 year ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago