@@ -78,6 +78,8 @@ export default {
this.$router.push(this.options.route)
} else if (this.options.action && this.options.action === 'event') {
this.$bus.emit(this.options.eventName, this.eventArgs)
+ } else if (this.options.action && this.options.action === 'external-link') {
+ window.open(this.options.route, '_blank')
}
@@ -150,7 +150,7 @@ export default defineComponent({
},
data () {
return {
- actionOptions: ['scroll', 'link', 'event'],
+ actionOptions: ['scroll', 'link', 'event', 'external-link'],
positionOptions: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],
defaultOptions: {
color: null,