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
Copy file name to clipboardExpand all lines: README.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,26 +33,25 @@ For examples see [`dev/`](https://github.com/vue-comps/vue-comps-modal/tree/mast
33
33
Note, that the modal will be appended to `document.body` on first opening.
34
34
35
35
#### Props
36
-
|Name | type | default | description|
37
-
|---:| --- | ---| ---|
38
-
|opacity | Number | 0.5 | opacity of the overlay|
39
-
|not-dismissable | Boolean | false | can it get closed by click on overlay or ESC?|
40
-
|ignore-parent | Boolean | false | will not set-up click listener on parent|
41
-
|is-opened | Boolean | false | (two-way) set to open / close|
42
-
|transition-in |function| no animation | set animation with opacity = 1. Argument: {el,cb}|
43
-
|transition-out |function| no animation | set animation with opacity = 0. Argument: {el,cb}|
44
-
|parent |element| parentElement | where to listen for open click|
45
-
| class | String|modal|class of the `div`|
36
+
Name | type | default | description
37
+
---:| --- | ---| ---
38
+
opacity | Number | 0.5 | opacity of the overlay
39
+
not-dismissable | Boolean | false | can it get closed by click on overlay or ESC?
40
+
ignore-parent | Boolean | false | will not set-up click listener on parent
41
+
is-opened | Boolean | false | (two-way) set to open / close
42
+
transition-in | Function | no animation | set animation with opacity = 1. Argument: {el,cb}
43
+
transition-out | Function | no animation | set animation with opacity = 0. Argument: {el,cb}
44
+
parent | Element | parentElement | where to listen for open click
45
+
zIndex | Number | 1500 | minimum zIndex of the overlay, cannot be lower than 100 (see [vue-overlay](https://github.com/vue-comps/vue-overlay) for specifics)
46
46
47
47
48
48
#### Events
49
-
| Name | description |
50
-
| ---:| --- |
51
-
| close | when received, will close |
52
-
| before-open | will be called before open animation |
53
-
| opened | will be called when opened |
54
-
| before-close | will be called before close animation |
55
-
| closed | will be called when closed |
49
+
Name | description
50
+
---:| ---
51
+
before-open | will be called before open animation
52
+
opened | will be called when opened
53
+
before-close | will be called before close animation
0 commit comments