This commit is contained in:
@@ -4,17 +4,21 @@
|
||||
v-on="$listeners"
|
||||
type="tel"
|
||||
prepend-icon="$ayiPhoneAlt"
|
||||
@click:prepend="dial"
|
||||
@click:prepend="openUrl"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
dial() {
|
||||
console.log(this.$el.attributes.value);
|
||||
//alert("DIAL");
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user