This commit is contained in:
parent
f46d6355dd
commit
86ecaedb0e
|
@ -3,7 +3,7 @@
|
||||||
<span ng-if="$ctrl.showNumber">
|
<span ng-if="$ctrl.showNumber">
|
||||||
{{ $ctrl.phoneNumber }}
|
{{ $ctrl.phoneNumber }}
|
||||||
</span>
|
</span>
|
||||||
<a href="{{$ctrl.schemeUrl}}:{{$ctrl.phoneNumber}}">
|
<a href="tel:{{$ctrl.phoneNumber}}">
|
||||||
<vn-icon
|
<vn-icon
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<a ng-if="!$ctrl.icon" href="$ctrl.schemeUrl:$ctrl.phoneNumber">
|
<a ng-if="!$ctrl.icon" href="tel:$ctrl.phoneNumber">
|
||||||
{{ $ctrl.phoneNumber }}
|
{{ $ctrl.phoneNumber }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -5,7 +5,6 @@ class Controller {
|
||||||
this.phoneNumber = null;
|
this.phoneNumber = null;
|
||||||
this.icon = true;
|
this.icon = true;
|
||||||
this.showNumber = true;
|
this.showNumber = true;
|
||||||
this.schemeUrl = 'tel';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +15,5 @@ ngModule.vnComponent('vnLinkPhone', {
|
||||||
phoneNumber: '<',
|
phoneNumber: '<',
|
||||||
icon: '<?',
|
icon: '<?',
|
||||||
showNumber: '<?',
|
showNumber: '<?',
|
||||||
schemeUrl: '<?',
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue