@gaonengwww/tiny-toolkit-docs
Version:
这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点
39 lines (37 loc) • 683 B
text/typescript
import { Component } from '@angular/core';
import { TiButtonItem } from '@opentiny/ng';
({
templateUrl: './buttongroup-minwidth.html',
})
export class ButtongroupMinwidthComponent {
items: Array<TiButtonItem> = [
{
text: '星期一',
},
{
text: '星期二',
},
{
text: '星期三',
},
{
text: '星期四',
},
];
items1: Array<TiButtonItem> = [
{
text: '1G',
},
{
text: '2G',
},
{
text: '3G',
},
{
text: '4G',
},
];
selected: TiButtonItem = this.items[1];
selected1: Array<TiButtonItem> = [this.items1[3]];
}