@gaonengwww/tiny-toolkit-docs
Version:
这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点
36 lines (33 loc) • 770 B
text/typescript
import { Component } from '@angular/core';
import { TiButtonItem } from '@opentiny/ng';
enum TimeLength {
about1hour,
about12hour,
about1day,
about3day,
}
({
templateUrl: './buttongroup-enum.html',
})
export class ButtongroupEnumComponent {
items: Array<TiButtonItem> = [
{
text: '近1小时',
english: TimeLength.about1hour,
},
{
text: '近12小时',
english: TimeLength.about12hour,
},
{
text: '近1天',
english: TimeLength.about1day,
},
{
text: '近3天',
english: TimeLength.about3day,
},
];
selected: TimeLength = TimeLength.about1hour;
selecteds: Array<TimeLength> = [TimeLength.about1hour, TimeLength.about12hour];
}