File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,15 @@ Vue.use(Modal. {
7272</template >
7373```
7474
75- ### Props
75+ ## Props
7676vue-modal-2 accept some props
7777
78+ #### ` name `
79+ unique name of the modal (__ required__ ).
80+ - type: ` String `
81+ - required: ` true `
82+ - default: ` modal-1 `
83+
7884#### ` @on-close ` or ` v-bind:on-close `
7985props function using to close the modal (__ required__ ).
8086- type: ` function `
@@ -146,6 +152,13 @@ text color of modal when mode is light
146152- type: ` String `
147153- default: ` black `
148154
155+ ## API
156+
157+ #### ` open(args) `
158+ accept modal name as ` args `
159+
160+ #### ` close(args) `
161+ accept modal name as ` args `
149162
150163## Contribution
151164Feel free to open an issue or pull request. Open an issue if you want discussing something.
You can’t perform that action at this time.
0 commit comments