Skip to content

Commit c0efa2b

Browse files
committed
publish 3.0.6
1 parent 74e5e2a commit c0efa2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-web-terminal",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"description": "网页端命令行插件,适配vue3",
55
"private": false,
66
"scripts": {

src/Terminal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default {
239239
if (isFullScreen) {
240240
// 进入全屏
241241
if (_isSafari()) {
242-
let container = this.$refs['t-container']
242+
let container = this.terminalContainer
243243
safariStyleCache = {
244244
position: container.style.position,
245245
width: container.style.width,
@@ -257,7 +257,7 @@ export default {
257257
// 退出全屏
258258
this.fullscreen = false
259259
if (_isSafari()) {
260-
let container = this.$refs['t-container']
260+
let container = this.terminalContainer
261261
container.style.position = safariStyleCache.position
262262
container.style.width = safariStyleCache.width
263263
container.style.height = safariStyleCache.height
@@ -832,7 +832,7 @@ export default {
832832
_dragging(x, y) {
833833
let clientWidth = document.body.clientWidth
834834
let clientHeight = document.body.clientHeight
835-
let box = this.$refs['t-container']
835+
let box = this.terminalContainer
836836

837837
if (x > clientWidth - box.clientWidth) {
838838
box.style.left = (clientWidth - box.clientWidth) + "px";

0 commit comments

Comments
 (0)