| 12345678910111213141516171819202122 |
- import { YTAvoid } from "basic";
- @ObservedV2
- export class ThirdViewModel{
- @Trace safeBottom = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number;
- @Trace safeTop = AppStorage.get(YTAvoid.SAFE_TOP_KEY) as number;
- // 当前分类索引
- @Trace categoryIndex: number = 0
- // 编辑模式
- @Trace editMode: boolean = false
- // 分类
- categoryList = ['全部', '可借', '已借光', '已预订']
- changeCategory(index: number) {
- this.categoryIndex = index
- }
- }
|