🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vue-co-dialog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-co-dialog

这是一个简洁,智能,个性化的JAVASCRIPT弹出框

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
9
28.57%
Maintainers
1
Weekly downloads
 
Created
Source

vue-co-dialog

基于co-dialog.js v2.0.8弹出框 和 依赖于vue.js2.5.17框架封装.

install

  • npm(cmd)
npm install co-dialog vue-co-dialog

并且你需要再你的文件里添加以下代码:

import Vue from 'vue'
import coog from 'co-dialog'
import VueCoog from 'vue-co-dialog'

Vue.use(VueCoog, coog)

使用

于是你就可以获得vue绑定的$coog弹出框的API. 你可以想下面这样调用$coog:

Vue.$coog.app('.coog').use('Test', '测试完成', 'success').show();

this.$coog.app('.coog').use('Test', '测试完成', 'success').show();

Keywords

dialog

FAQs

Package last updated on 11 Nov 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