2.0.0 • Published 1 year ago

@inotom/vue-fold-box v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue-fold-box

A Vue.js component of folding container.

From v2.0.0, it works for Vue 3.

Demo

Demo

Install

Browser

<script src="vue.global.prod.js"></script>
<script src="vue-fold-box.umd.js"></script>

npm

npm install --save @inotom/vue-fold-box

Usage

Browser

<div id="app">
  <fold-box>
    <template #handle>
      Handle
    </template>
    <template #content>
      Content
    </template>
  </fold-box>
</div>

<script src="vue.global.prod.js"></script>
<script src="vue-fold-box.umd.js"></script>
<script>
const { createApp } = Vue;
const { FoldBox } = SwsVueFoldBox;

createApp({
  components: {
    FoldBox,
  },
}).mount('#app');
</script>

SFC (TypeScript)

<template>
  <fold-box>
    <template #handle>
      Handle
    </template>
    <template #content>
      Content
    </template>
  </fold-box>
</template>

<script setup lang="ts">
import { FoldBox } from '@inotom/vue-fold-box';
</script>

Props

PropsTypeDefaultDescription
is-initial-openBooleanfalseInitial folding state
block-nameString"fold-box"Custom class name (Block of BEM)
animation-durationNumber300Folding animation duration (ms)
animation-easingString"ease-in-out"Folding animation easing function name

License

MIT

Author

inotom

2.0.0

1 year ago

2.0.0-beta.1

1 year ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago