You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2022. It is now read-only.
disableOverlayClick:false, //boolean -- set to true if you want disable overlay click function
63
64
hideAllButton:false, //boolean -- set to true if you want hide all button
64
65
onOpen:null, //function -- when simplert open will fire this method if available
65
-
showXclose:true//boolean -- show x close button
66
-
})
66
+
showXclose:true,//boolean -- show x close button
67
+
});
67
68
```
69
+
68
70
for more [Methods and Props](https://mazipan.gitbooks.io/vue2-simplert/method-and-props.html)
69
71
70
72
#### Add template in your root Vue
@@ -78,80 +80,164 @@ Usually `App.vue`
78
80
#### Open/Close Popup
79
81
80
82
For open popup :
83
+
81
84
```javascript
82
-
this.$Simplert.open(obj)
85
+
this.$Simplert.open(obj);
83
86
```
87
+
84
88
Object that pass is same with [vue2-simplert](https://github.com/mazipan/vue2-simplert), please read [wiki](https://github.com/mazipan/vue2-simplert/wiki/Methods-And-Props).
85
89
86
90
For close popup :
91
+
87
92
```javascript
88
-
this.$Simplert.close()
93
+
this.$Simplert.close();
89
94
```
90
95
91
96
## Migration from [vue2-simplert](https://github.com/mazipan/vue2-simplert)
92
97
93
98
If you already use [vue2-simplert](https://github.com/mazipan/vue2-simplert) in your project, please follow this below guide :
94
-
+ Make sure you add dependency `npm i vue2-simplert-plugin --save`
95
-
+ Import and use this plugin in your main app, ex : `main.js`
99
+
100
+
- Make sure you add dependency `npm i vue2-simplert-plugin --save`
101
+
- Import and use this plugin in your main app, ex : `main.js`
+ Remove all import [vue2-simplert](https://github.com/mazipan/vue2-simplert) in your components and/or pages, because as Plugin you dont need to import in all components
110
+
- Remove all import [vue2-simplert](https://github.com/mazipan/vue2-simplert) in your components and/or pages, because as Plugin you dont need to import in all components
105
111
106
112
```javascript
107
-
importSimplertfrom'vue2-simplert'
113
+
importSimplertfrom'vue2-simplert';
108
114
```
109
115
110
-
+ Remove all adding component [vue2-simplert](https://github.com/mazipan/vue2-simplert) in your components and/or pages, because you dont need set components again
116
+
- Remove all adding component [vue2-simplert](https://github.com/mazipan/vue2-simplert) in your components and/or pages, because you dont need set components again
111
117
112
118
```javascript
113
-
components: {Simplert}
119
+
components: {
120
+
Simplert;
121
+
}
114
122
```
115
123
116
-
+ Remove all template html snippet in each components
124
+
- Remove all template html snippet in each components
0 commit comments