File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-web-terminal" ,
3
- "version" : " 3.0.5 " ,
3
+ "version" : " 3.0.6 " ,
4
4
"description" : " 网页端命令行插件,适配vue3" ,
5
5
"private" : false ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export default {
239
239
if ( isFullScreen ) {
240
240
// 进入全屏
241
241
if ( _isSafari ( ) ) {
242
- let container = this . $refs [ 't-container' ]
242
+ let container = this . terminalContainer
243
243
safariStyleCache = {
244
244
position : container . style . position ,
245
245
width : container . style . width ,
@@ -257,7 +257,7 @@ export default {
257
257
// 退出全屏
258
258
this . fullscreen = false
259
259
if ( _isSafari ( ) ) {
260
- let container = this . $refs [ 't-container' ]
260
+ let container = this . terminalContainer
261
261
container . style . position = safariStyleCache . position
262
262
container . style . width = safariStyleCache . width
263
263
container . style . height = safariStyleCache . height
@@ -832,7 +832,7 @@ export default {
832
832
_dragging ( x , y ) {
833
833
let clientWidth = document . body . clientWidth
834
834
let clientHeight = document . body . clientHeight
835
- let box = this . $refs [ 't-container' ]
835
+ let box = this . terminalContainer
836
836
837
837
if ( x > clientWidth - box . clientWidth ) {
838
838
box . style . left = ( clientWidth - box . clientWidth ) + "px" ;
You can’t perform that action at this time.
0 commit comments