* 更新导航按钮状态
()
| 703 | * 更新导航按钮状态 |
| 704 | */ |
| 705 | updateNavigationButtons() { |
| 706 | if (this.dom.prevUnitBtn) { |
| 707 | this.dom.prevUnitBtn.disabled = this.state.currentUnitIndex <= 0; |
| 708 | } |
| 709 | |
| 710 | if (this.dom.nextUnitBtn) { |
| 711 | this.dom.nextUnitBtn.disabled = |
| 712 | this.state.currentUnitIndex >= this.state.units.length - 1; |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | /** |
| 717 | * 加载上一个单元 |