Files
raven-client/ayanova/src/components/email-control.vue
2020-12-02 00:41:27 +00:00

26 lines
482 B
Vue

<template>
<v-text-field
v-bind="$attrs"
v-on="$listeners"
type="email"
prepend-icon="$ayiAt"
@click:prepend="openUrl"
></v-text-field>
</template>
<script>
export default {
methods: {
openUrl() {
if (
this.$el &&
this.$el.attributes &&
this.$el.attributes.value &&
this.$el.attributes.value.value
) {
window.open(`mailto:${this.$el.attributes.value.value}`, "email");
}
}
}
};
</script>