Comments (15)
不执行直接关闭的话,上次输入的东西并不会消失
from vue-web-terminal.
没太动你存在的问题,关闭了输入的内容不会存在了啊,“输入的东西”以什么样的形式存在?
from vue-web-terminal.
比如我输入abc 但是没有按下回车执行,然后就直接关闭,再次打开的时候,我期望的是初始化的界面(就是没有任何历史遗留),但是这边展示的会是残留上次输入未执行的
from vue-web-terminal.
比如我输入abc 但是没有按下回车执行,然后就直接关闭,再次打开的时候,我期望的是初始化的界面(就是没有任何历史遗留),但是这边展示的会是残留上次输入未执行的
你应该是没有销毁组件,建议:
- 检查一下页面内是否设置有缓存;
- 你是否用到了v-if和v-show?如果是v-show来打开和关闭terminal并不是真正的移除dom,用v-if才会移除dom重新挂在执行terminal的初始化。
from vue-web-terminal.
大佬,你的最新版本是多少啊?我看md有拖拽和全屏了,但是最新的版本好像是3.0.3吧,然后全屏和拖拽都不行呢?拖拽的dragConf.enable是在哪里设置呢?
from vue-web-terminal.
大佬,你的最新版本是多少啊?我看md有拖拽和全屏了,但是最新的版本好像是3.0.3吧,然后全屏和拖拽都不行呢?拖拽的dragConf.enable是在哪里设置呢?
最新版本3.0.7
和2.0.9
,README中的文档对应这两个版本,每发布一个新版本我都会打tag,你从tags页面可以查看
from vue-web-terminal.
npm install [email protected] --save 下载不了啊 我现在把page-lock。json删除了以后重新下载 只有 npm install [email protected] --save可以下载 ,如果直接 npm install vue-web-terminal,下载下来的也是3.0.3
from vue-web-terminal.
npm install [email protected] --save 下载不了啊 我现在把page-lock。json删除了以后重新下载 只有 npm install [email protected] --save可以下载 ,如果直接 npm install vue-web-terminal,下载下来的也是3.0.3
from vue-web-terminal.
npm install [email protected] --save 下载不了啊 我现在把page-lock。json删除了以后重新下载 只有 npm install [email protected] --save可以下载 ,如果直接 npm install vue-web-terminal,下载下来的也是3.0.3
npm**仓库最新的已经更到3.0.7(https://www.npmjs.com/package/vue-web-terminal/v/3.0.7),你可能是本地有缓存或者使用了类似淘宝cnpm、pnpm等国内仓库镜像,国内镜像同步有延迟,建议设置registry为npm**仓库下载。
from vue-web-terminal.
是的,已经下载下来3.0.7版本了,就是淘宝镜像的问题
from vue-web-terminal.
点击全屏按钮报错:cannot read properties of undefined (reading 'requestFullscreen),最小化和关闭按钮没问题,前面做好的也不能用了
from vue-web-terminal.
点击关闭和最小化能显示onclick传递的key,但也汇报错cannot read properties of undefined (reading 'requestFullscreen),最大化直接key都不能打印,3.0.7版本
from vue-web-terminal.
开始用的v-if 但是v-if会报错
无法注册现有的 unable to register an existing terminal :xxxx。(两个环境都是这样,pro环境报错但可以继续使用,dev将无法创建)这是名称要动态的吗,
用v-show的话可以清空init-log,假装初始化,但是如果有上次关闭前未执行语句,他会继续显示该语句
from vue-web-terminal.
v-show就是通过key来配置,清空init-log,context,title
from vue-web-terminal.
v-show就是通过key来配置,清空init-log,context,title
不知道你想实现的是不是demo中的效果,参考一下demo代码:https://github.com/tzfun/vue-web-terminal/blob/demo/src/App.vue#L5
from vue-web-terminal.
Related Issues (20)
- No way to customize autocomplete HOT 3
- clone后编译会直接报错 HOT 1
- 关于api设计的问题 HOT 2
- head support dbclick for fullscreen
- support Clipboard by right click
- export other function component
- Support rename HOT 4
- Multi instance dragging will only take effect for one instance HOT 2
- Support ANSI code filter HOT 2
- Remove the hump event name and change it to a dash name HOT 3
- vue3.0里使用报错 HOT 4
- 使用界面出现undefined,并且无法显示文字 HOT 12
- Make callbacks asynchronous HOT 3
- 窗口无法固定 HOT 3
- onKeydown事件在使用Flash时,失焦后失效 HOT 1
- 增加beforePush回调函数 HOT 3
- Show Header false not working. HOT 2
- ASCII码160 (NBSP)分割的命令行无法正常解析的问题 HOT 1
- 在type等于code模式下,回显带有xml标签信息时,xml标签没有正常显示,审查元素后发现xml标签被渲染成了dom元素。希望可以在code模式下正常显示xml标签信息 HOT 1
- 动态修改窗口大小 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-web-terminal.