Socket
Book a DemoInstallSign in
Socket

vue-slim-popup

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-slim-popup

💇 开箱即用的 vue 移动端弹窗组件

latest
Source
npmnpm
Version
1.4.4
Version published
Maintainers
1
Created
Source

vue-slim-popup

English | 简体中文

🌰 Example

Demo

Demo Source Code

🚀 QuickStart

  • Install
yarn add vue-slim-popup # OR npm i -S vue-slim-popup
  • Import
// *.vue
import SlimPopup from 'vue-slim-popup'
export default {
  /* ... */
  components: {
    SlimPopup,
  },
  /* ... */
}
  <SlimPopup :show.sync="show">
    <!-- this is a slot, here you can place any element -->
  </SlimPopup>

🔌 API

Props

NameDescriptionTypeDefault
show.syncBooleanfalse
hideOnMaskClickclick on the mask to hide the popupBooleanfalse
forceRenderOnShowforce render in the popup showBooleanfalse
maskTransitionmask transitionStringslim-fade
popupTransitionpopup transition. Optional: 'slim-scale-center', 'slim-zoom-center', 'slim-slide-top', 'slim-slide-bottom', 'slim-slide-left', 'slim-slide-right'. If it is empty, select the default animation according to popupPositionStringnull
maskClassmask classArraynull
popupClasspopup classArraynull
maskStylemask styleObjectnull
popupStylepopup styleObjectnull
popupPositionpopup position. Optional: 'center', 'top', 'bottom', 'left', 'right'Stringcenter
preventMaskTouchmoveprevent touchmove event in the maskBooleantrue
preventPopupTouchmoveprevent touchmove event in the popup(it will cause the popup area to unable to scroll)Booleantrue
preventBodyScrollprevent body scroll, indirect blocking the effect of scrolling through(popup area can to sroll). Enable this option and disable preventPopupTouchmove, you can scroll the popup area while blocking the effect of scrolling throughBooleanfalse

Events

NameDescriptionParameters
maskClickmask area clickedundefined
popupClickpopup area self clickedundefined

😉😘 If it is helpful to you,please encourage me with a ⭐️Star ~

Changelog

License

MIT

Copyright (c) 2018-present, momoko

Keywords

vue

FAQs

Package last updated on 03 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts