1.0.5 • Published 3 years ago

si-ui v1.0.5

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

Vue组件

  • collapseTransition 上下伸缩动画的Vue组件

usage

<template>
  <collapse-transition>
    <!-- 把你的组件放进来在这里 -->
    <!-- Put your components in here -->
    <div v-show="visible" class="demo">
      <button class="pullup" @click="visible = false">收起</button>
    </div>
  </collapse-transition>
</template>
<script>
import { collapseTransition } from 'si-ui';
export default {
  components: { collapseTransition },
  data() {
		return {
      visible: false
    }
  }
}
</script>
<style>
  .demo {
		height: 300px;
    background-color: pink;
  }
</style>

包含的组件必须具有v-if或者v-else否则不会生效!

The contained component must have v-if or v-else, otherwise it will not take effect!

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago