vuemydialog

a vue plugin for toast
339
Install
npm install vuemydialog
Latest Version:1.0.8
Vue:2
License:ISC
Last Updated:Jan 11, 2022
Links: Gitee  ·  npm
Maintainer: yizheng

usage

npm i vuemydialog

// main.js
import vuemydialog from 'vuemydialog';
Vue.use(vuemydialog)

// Home.vue

<template>
  <div>
    <vuemydialog :show="faShow" @clickMask="clickMaskFa" @clickClose="clickCloseFa">
      <div slot="title">My title</div>
      <div slot="icon">
        close icon
      </div>
      <div slot="default">--- main content---</div>
    </vuemydialog>
  </div>
</template>

<script>
  export default {
    name: "Home",
    data() {
      return {
        faShow: true,
      };
    },
    methods:{
      clickMaskFa(){
        console.log('click mask--')
        this.faShow = false;
      },
      clickCloseFa(){
        console.log('click close icon--')
        this.faShow = false;
      }
    }
  };
</script>

NPM VUE PLUGIN

node 10.15.3 if npm run build fail, please check node version. or delete node_modules directory and npm install again

npm upload

npm run build // build the dist plugin

npm login

npm version patch

npm publish

if fail , change package name will success.

my wechat number 我的微信号 call me

yizheng369

source code 源码

https://gitee.com/618859/vue_npm_plugin

Related Packages

vue-pubilc-layer

一款基于Vue的动态调用的、非常容易扩展的弹窗插件

644 0
vue-promise-modals

A Vue 3 library to create modals that are resolved with promises.

66,639
vuedl

Vue dialog helper

17,871 29
vc-popup-dialog

vc-popup-dialog

1,027
vue-final-modal

The most powerful yet most light-weight modal library for Vue 3.

3,105,553 1,013

Version History

Version Released Vue License
1.0.8 ^2.6.10 ISC
1.0.7 ^2.6.10 ISC
1.0.6 ^2.6.10 ISC
1.0.5 ^2.6.10 ISC
1.0.4 ^2.6.10 ISC