1.4.4 • Published 5 years ago

vue-slim-popup v1.4.4

Weekly downloads
21
License
MIT
Repository
github
Last release
5 years ago

vue-slim-popup

English | 简体中文

🌰 Example

Demo

Demo Source Code

🚀 QuickStart

  1. Install
yarn add vue-slim-popup # OR npm i -S vue-slim-popup
  1. Import
// *.vue
import SlimPopup from 'vue-slim-popup'
export default {
  /* ... */
  components: {
    SlimPopup,
  },
  /* ... */
}
  1. Usage. Please refer to the Demo Source Code
  <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

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago