26 lines
483 B
Vue
26 lines
483 B
Vue
<template>
|
|
<v-text-field
|
|
v-bind="$attrs"
|
|
v-on="$listeners"
|
|
type="tel"
|
|
prepend-icon="$ayiPhoneAlt"
|
|
@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(`tel:${this.$el.attributes.value.value}`, "phone");
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script>
|