Skip to content

Commit 7d719f7

Browse files
committed
add index.js
1 parent b5e8043 commit 7d719f7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# vuejs-modal
2+
A simple vue modal plugin

index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var modal = {
2+
install: function (Vue, options) {
3+
4+
var defaultOptions = Object.assgin({
5+
name: '$modal'
6+
},options)
7+
Vue.prototype[defaultOptions.name] = function () {
8+
9+
}
10+
}
11+
}
12+
13+
module.exports = modal;

0 commit comments

Comments
 (0)