mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 07:19:20 +01:00
fix(ui): scroll bottom of task log
This commit is contained in:
parent
5ff45d7f65
commit
d2c63b6435
@ -84,6 +84,7 @@
|
|||||||
:data-component="itemComponent"
|
:data-component="itemComponent"
|
||||||
:estimate-size="22"
|
:estimate-size="22"
|
||||||
:keeps="60"
|
:keeps="60"
|
||||||
|
ref="records"
|
||||||
>
|
>
|
||||||
<div class="task-log-records__record" v-for="record in output" :key="record.id">
|
<div class="task-log-records__record" v-for="record in output" :key="record.id">
|
||||||
<div class="task-log-records__time">
|
<div class="task-log-records__time">
|
||||||
@ -288,9 +289,13 @@ export default {
|
|||||||
...data,
|
...data,
|
||||||
id: data.time + data.output,
|
id: data.time + data.output,
|
||||||
});
|
});
|
||||||
// setTimeout(() => {
|
|
||||||
// this.$refs.output.scrollTop = this.$refs.output.scrollHeight;
|
this.$nextTick(() => {
|
||||||
// }, 200);
|
if (this.$refs.records) {
|
||||||
|
this.$refs.records.scrollToBottom();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user