vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
927 stars 172 forks source link

Showoutput argument not working #189

Closed DarrenXu94 closed 10 months ago

DarrenXu94 commented 10 months ago

https://stackblitz.com/edit/vitejs-vite-ndcbpe?file=src%2Fcomponents%2FExampleRepl.vue

I've added the showOutput arg into the ReplStore constructor but it doesn't seem to be doing anything. Is it supposed to hide one of the panels?

Using @vue/repl": "^3.0.0

pdanpdan commented 10 months ago

It selects which half (code or output) is displayed by default on small screens.

nemo-shen commented 10 months ago

@DarrenXu94 If your screen width is less than 720px, it will be considered as a mobile device, and at this time, either the editor or the preview will be automatically hidden. You can see this code: https://github.com/vuejs/repl/blob/main/src/SplitPane.vue#L162