mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(all): strong typing for color
This commit is contained in:
@ -62,7 +62,7 @@ string
|
||||
The badge for the tab.
|
||||
|
||||
|
||||
#### badgeStyle
|
||||
#### badgeColor
|
||||
|
||||
string
|
||||
|
||||
@ -156,7 +156,7 @@ string
|
||||
The badge for the tab.
|
||||
|
||||
|
||||
#### badge-style
|
||||
#### badge-color
|
||||
|
||||
string
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Build, Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core';
|
||||
import { ComponentRef, FrameworkDelegate } from '../../interface';
|
||||
import { Color, ComponentRef, FrameworkDelegate } from '../../interface';
|
||||
import { attachComponent } from '../../utils/framework-delegate';
|
||||
|
||||
@Component({
|
||||
@ -38,7 +38,7 @@ export class Tab {
|
||||
/**
|
||||
* The badge color for the tab button.
|
||||
*/
|
||||
@Prop() badgeStyle = 'default';
|
||||
@Prop() badgeColor: Color = 'default';
|
||||
|
||||
/**
|
||||
* The component to display inside of the tab.
|
||||
|
||||
Reference in New Issue
Block a user