mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-06 13:04:10 +08:00
ai设置添加ai后滚动条自动滚动
This commit is contained in:
parent
a762b87d2b
commit
ffbae3f33f
@ -18,6 +18,7 @@
|
||||
/>
|
||||
</div>
|
||||
<q-scroll-area
|
||||
ref="scrollArea"
|
||||
:style="`height: ${getConfigListHeight()}px;`"
|
||||
class="q-px-sm"
|
||||
:vertical-thumb-style="{
|
||||
@ -263,6 +264,9 @@ export default defineComponent({
|
||||
|
||||
this.aiConfigs.push(defaultConfig);
|
||||
|
||||
// 滚动到底部
|
||||
this.$nextTick(() => {
|
||||
this.$refs.scrollArea.setScrollPosition("vertical", 99999);
|
||||
});
|
||||
},
|
||||
getConfigListHeight() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user