Coder Social home page Coder Social logo

Comments (10)

tzfun avatar tzfun commented on July 20, 2024

@18030705033 提供一下运行的浏览器版本和报错堆栈

from vue-web-terminal.

18030705033 avatar 18030705033 commented on July 20, 2024

谷歌浏览器,版本号104.0.5112.81,报错是 at proxy._fllscreen(vue-web-terminal.js:16:64717)
at proxy._triggerClick(vue-web-terminal.js:56044)
还有个at Y.e3.showHeader.onClick.t3.t3(vue-web-terminal.js:16:42917)

from vue-web-terminal.

18030705033 avatar 18030705033 commented on July 20, 2024

还有大佬,有销毁组件的方法调用吗?你这边点击close是咋个做的呢。现在只能监听到onClick传递过来的key

from vue-web-terminal.

tzfun avatar tzfun commented on July 20, 2024

确实是一个bug,我待会发布一个新版本

from vue-web-terminal.

18030705033 avatar 18030705033 commented on July 20, 2024

from vue-web-terminal.

tzfun avatar tzfun commented on July 20, 2024

还有大佬,有销毁组件的方法调用吗?你这边点击close是咋个做的呢。现在只能监听到onClick传递过来的key

销毁组件可以用v-if或者key来控制

from vue-web-terminal.

tzfun avatar tzfun commented on July 20, 2024

在执行命令的时候开始报错cannot read properties of undefined(reading 'scrollTop')  at proxy.<anonymous>(vue-web-terminal.js:16:59776)  这个是我哪里配置错了吗

这个问题在3.0.9版本修复了

from vue-web-terminal.

18030705033 avatar 18030705033 commented on July 20, 2024

实际操作,如果用v-if,elements 组件所在地方用v-if是新创建和删除了的。但是如果新创建的name和上一个是相同的就会报错 unable to register anexisting terminal :'上次用的名字' at Object.o2[as register](vue-web-terminal.js:16 :54247),现目前只能先将name做成变量,每次用不同的name,

from vue-web-terminal.

18030705033 avatar 18030705033 commented on July 20, 2024

会报黄错 component emitted event "initBefore" but it is neither declared in the emits option nor as an onInitBefor prop,和initComplete 是因为这个吗

from vue-web-terminal.

tzfun avatar tzfun commented on July 20, 2024

实际操作,如果用v-if,elements 组件所在地方用v-if是新创建和删除了的。但是如果新创建的name和上一个是相同的就会报错 unable to register anexisting terminal :'上次用的名字' at Object.o2[as register](vue-web-terminal.js:16 :54247),现目前只能先将name做成变量,每次用不同的name,

你可以提交一个新的issue然后附上简单的demo代码看一下,应该是你哪个地方写法不对,导致没有正常销毁插件实例,我写了demo并且在自己的项目中也没有遇到这种情况。对于initBefore和initComplete警告和这个没关系,这个警告是提示没有注册生命周期事件,在你的代码中加上@initBefore@initComplete事件就可以了

from vue-web-terminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.