New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wepy-com-paper-modal

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wepy-com-paper-modal

Wepy paper UI modal component

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

wepy-com-paper-modal

A handsome modal component for use in the wepyjs, a Vue-like framework for building WeChat mini programs.

What it looks like

modal

Usage

installation

npm install wepy-com-paper-modal --save

Importing the component

For example, on a page index.wpy

// index.wpy
<template>
    <modal>
		// Slot, put your WXML content of modal here
    </modal>
</template>
<script>
    import wepy from 'wepy'
    import Toast from 'wepy-com-paper-modal'

    export default class Index extends wepy.page {
        components = {
            modal: Modal
        }
    }
</script>

Showing the modal

Inside of a @tap handler (or anywhere in a wepy component or page), you could invoke the modal to display, i.e. show the modal by calling the /toggle/ function

// index.wpy
	this.$invoke('modal', 'toggle', null)

Props

There are two props exposed on wepy-com-paper-modal

open

Default set to true

    <modal :open.sync="customOpen">
		// slot
    </modal>
closeCLass

Set a custom class to the ‘x’ close icon

    <modal :closeClass.sync="customCloseClass">
		// slot
    </modal>

Keywords

FAQs

Package last updated on 20 May 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc