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