()
| 136 | } |
| 137 | |
| 138 | async scrollToBottomStaticForce() { |
| 139 | const container = this.getContainer() |
| 140 | if (!container) return |
| 141 | |
| 142 | // 标记为程序性滚动 |
| 143 | this.isProgrammaticScroll = true |
| 144 | |
| 145 | const scrollOptions = { |
| 146 | top: container.scrollHeight, |
| 147 | behavior: 'auto' |
| 148 | } |
| 149 | |
| 150 | container.scrollTo(scrollOptions) |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * 启用自动滚动 |
nothing calls this directly
no test coverage detected