Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mpvue-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

mpvue-modal

mpvue-modal is a toast plugin for mpvue

  • 1.5.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mpvue-modal

mpvue-modal is a excelent plugin base on mpvue.

效果演示

image

用法

<template>
  <div>
    <button @click="showHandler">点我打开</button>
    <comModal @closeModal="closeModal" :isShow="is_show">
      <span slot="title">我是标题</span>
      <div slot="content">
          我是内容
      </div>
    </comModal>
  </div>
</template>

<script>
import comModal from '@/components/modal'
export default {
  data () {
    return {
      is_show: false
    }
  },

  components: {
    comModal
  },

  methods: {
    closeModal(){
      this.is_show = false
    },
    showHandler () {
      this.is_show = true
    }
  },
  created() {

  }
}
</script>

参数说明

参数说明类型可选值默认值
isShow控制显示隐藏Boolean-false
closeModal关闭弹框事件--

补充

  • 使用过程中有任何问题,欢迎issue

FAQs

Package last updated on 09 Apr 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