Skip to content

Commit 6c2e99a

Browse files
author
Guillaume Chau
committed
fix(ui): LoggerView scrollToBottom
1 parent 9f0eece commit 6c2e99a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/@vue/cli-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"stylus-loader": "^3.0.1",
3737
"subscriptions-transport-ws": "^0.9.5",
3838
"vue": "^2.5.13",
39-
"vue-apollo": "^3.0.0-alpha.1",
39+
"vue-apollo": "^3.0.0-beta.5",
4040
"vue-cli-plugin-apollo": "^0.4.1",
4141
"vue-router": "^3.0.1",
4242
"vue-template-compiler": "^2.5.13",

packages/@vue/cli-ui/src/components/LoggerView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<template>
22
<div class="logger-view">
33
<ApolloQuery
4+
ref="logs"
45
:query="require('../graphql/consoleLogs.gql')"
56
fetch-policy="cache-and-network"
67
class="logs"
8+
@result="scrollToBottom()"
79
>
810
<ApolloSubscribeToMore
9-
ref="logs"
1011
:document="require('../graphql/consoleLogAdded.gql')"
1112
:update-query="onConsoleLogAdded"
1213
/>
@@ -48,7 +49,6 @@ export default {
4849
await this.$nextTick()
4950
const list = this.$refs.logs.$el
5051
list.scrollTop = list.scrollHeight
51-
console.log(list.scrollHeight)
5252
},
5353
5454
clearLogs () {

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10608,9 +10608,9 @@ vm-browserify@0.0.4:
1060810608
dependencies:
1060910609
indexof "0.0.1"
1061010610

10611-
vue-apollo@^3.0.0-alpha.1:
10612-
version "3.0.0-beta.4"
10613-
resolved "https://registry.yarnpkg.com/vue-apollo/-/vue-apollo-3.0.0-beta.4.tgz#2313f720875160befc22375c13a74c0bc2e87030"
10611+
vue-apollo@^3.0.0-beta.5:
10612+
version "3.0.0-beta.5"
10613+
resolved "https://registry.yarnpkg.com/vue-apollo/-/vue-apollo-3.0.0-beta.5.tgz#d0aabd19683e50cd1ab2d24e2827e8fb579ff78e"
1061410614
dependencies:
1061510615
lodash.debounce "^4.0.8"
1061610616
lodash.omit "^4.5.0"

0 commit comments

Comments
 (0)