1.0.4 • Published 3 years ago

scroll-modal v1.0.4

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

卷轴式动画弹窗

一个支持卷轴式展开、关闭的Vue弹窗组件

效果演示

npm.io

使用方式

  1. 安装
npm i -S scroll-modal
  1. 使用
<template>
<!-- 组件根元素 -->
<div style="position: relative">
  <!-- 这里填充组件的其他元素 -->

  <scroll-modal ref="scrollModal">
    <!-- 这里填充弹窗内容 -->
  </scroll-modal>
</div>

</template>

<script>
import ScrollModal from 'scroll-modal'

export default {
  components: {
    ScrollModal
  },
  methods: {
    /**
    * 展开弹窗
    */
    openScrollModal: function () {
      this.$refs.scrollModal.open()
    },
    /**
    * 关闭弹窗
    */
    closeScrollModal: function () {
      this.$refs.scrollModal.close()
    },
  }
}
</script>
1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago