Skip to content

Commit 82e8849

Browse files
committed
Ability to use more than one variable on verification help text.
1 parent f317654 commit 82e8849

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,16 @@ Please use basic css, ex:
181181
}
182182
```
183183

184+
### Pro tip
185+
You can use any of the options in your verification help text. Example:
186+
187+
```javascript
188+
this.$dialog.confirm($message, {
189+
verificationHelp: 'Enter "[+:verification]" below and click on "[+:okText]"',
190+
type: 'hard'
191+
})
192+
```
193+
184194
# License
185195

186196
[MIT](http://opensource.org/licenses/MIT)

dist/vuejs-dialog.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuejs-dialog.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/vuejs-dialog.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugin/components/dialog-window.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
},
130130
hardConfirmHelpText() {
131131
return this.options.verificationHelp
132-
.replace(/\[\+:(\w+)]/, (match, $1) => {
132+
.replace(/\[\+:(\w+)]/g, (match, $1) => {
133133
return this.options[$1] || match
134134
})
135135
}

0 commit comments

Comments
 (0)