From c5add87379f03533f448c93d9803e90edbad83ab Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Fri, 16 Dec 2016 03:04:32 -0200 Subject: [PATCH] fix tab tooltip --- docs/src/pages/components/Tabs.vue | 8 +++++++- src/components/mdTabs/mdTab.vue | 8 ++++++++ src/components/mdTabs/mdTabs.vue | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/src/pages/components/Tabs.vue b/docs/src/pages/components/Tabs.vue index b1580fb..68e94ca 100644 --- a/docs/src/pages/components/Tabs.vue +++ b/docs/src/pages/components/Tabs.vue @@ -119,7 +119,13 @@ md-tooltip String - Add a tooltip on the tab header. Default: No tooltip. + Add a tooltip on the tab header. Optional. + + + + md-tooltip-delay + String + Delay of the tab header tooltip. Default: 0 diff --git a/src/components/mdTabs/mdTab.vue b/src/components/mdTabs/mdTab.vue index cf99bc1..23dcf70 100644 --- a/src/components/mdTabs/mdTab.vue +++ b/src/components/mdTabs/mdTab.vue @@ -16,6 +16,10 @@ mdActive: Boolean, mdDisabled: Boolean, mdTooltip: String, + mdTooltipDelay: { + type: String, + default: '0' + }, mdTooltipDirection: { type: String, default: 'bottom' @@ -45,6 +49,9 @@ mdTooltip() { this.updateTabData(); }, + mdTooltipDelay() { + this.updateTabData(); + }, mdTooltipDirection() { this.updateTabData(); } @@ -66,6 +73,7 @@ active: this.mdActive, disabled: this.mdDisabled, tooltip: this.mdTooltip, + tooltipDelay: this.mdTooltipDelay, tooltipDirection: this.mdTooltipDirection, ref: this }; diff --git a/src/components/mdTabs/mdTabs.vue b/src/components/mdTabs/mdTabs.vue index 989a7d4..fd3bf77 100644 --- a/src/components/mdTabs/mdTabs.vue +++ b/src/components/mdTabs/mdTabs.vue @@ -14,6 +14,7 @@
{{ header.icon }} {{ header.label }} + {{ header.tooltip }}