UNPKG

@gaonengwww/tiny-toolkit-docs

Version:

这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点

41 lines (39 loc) 870 B
import { Component, ViewEncapsulation } from '@angular/core'; import { TiButtonItem } from '@opentiny/ng'; @Component({ templateUrl: './buttongroup-sup.html', encapsulation: ViewEncapsulation.None, }) export class ButtongroupSupComponent { items: Array<TiButtonItem> = [ { text: '9个月', sup: { class: 'buttongroup-sold-out', iconName: 'sold-out', }, }, { text: '1年', sup: { class: 'buttongroup-discount-icon', iconName: 'discount-sup', }, }, { text: '2年', sup: { text: '88折', class: 'buttongroup-discount-text', }, }, { text: '3年', sup: { text: '7折', class: 'buttongroup-discount-text', }, }, ]; selected: TiButtonItem = this.items[1]; }