Sha256: 7bc1e515e14e5c8a1ab00d1e2f7bc12109ff869a8c42b6e4a9661f7180be28fa
Contents?: true
Size: 856 Bytes
Versions: 17
Compression:
Stored size: 856 Bytes
Contents
<template> <div> <text-input :label="$t(`linkPicker.url.input.label`)" name="href" v-model="hrefInput" /> <checkbox-input :label="$t(`linkPicker.shared.newWindowInput.label`)" name="openNewWindow" class="mt-6" v-model="openNewWindowInput" /> </div> </template> <script> export default { name: 'LinkUrlPicker', props: { currentLink: { type: Object, default: undefined }, }, computed: { hrefInput: { get() { return this.currentLink.href }, set(href) { this.$emit('change', { ...this.currentLink, href }) }, }, openNewWindowInput: { get() { return this.currentLink.openNewWindow }, set(openNewWindow) { this.$emit('change', { ...this.currentLink, openNewWindow }) }, }, }, } </script>
Version data entries
17 entries across 17 versions & 1 rubygems