Skip to content

Commit cff6a9e

Browse files
committed
feat publish 3.1.7
1 parent af4d9a6 commit cff6a9e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Terminal tag support event table
158158
| exec-cmd | Fired when a custom command is executed. `success` and `failed` are callback functions, **must call one of the two callbacks before echoing**! the meaning of the `success` callback parameter is described below, and the `failed` callback parameter is a string. | `(cmdKey, command, success, failed, name)` |
159159
| before-exec-cmd | Triggered before the user presses Enter to execute the command. | `(cmdKey, command, name)` |
160160
| on-keydown | When the cursor focus is obtained, press any keyboard to trigger. | `(event, name)` |
161-
| on-click | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`. | `(key, name)` |
161+
| on-click | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`, `pin`. | `(key, name)` |
162162
| init-before | Lifecycle function, triggered before plugin initialization. | `(name)` |
163163
| init-complete | Lifecycle function, triggered after plugin initialization is complete. | `(name)` |
164164
| on-active | Triggered when the window is active. | `(name)` |
@@ -715,6 +715,7 @@ The complete configuration structure of `dragConf` is as follows:
715715
| height | Drag window height, which can be a number (in px) or a percentage (relative to the browser window). | number/string |
716716
| zIndex | Window level, this value can be modified and monitored by the terminal, which can be used for multi-window level control, default 100. | number |
717717
| init | Window initialization position, if not filled, the default position is in the center of the browser window, where x and y are in px. ``` {"x": 700, "y": 500}``` | object |
718+
| pinned | Pinned window, once pinned, it cannot be dragged, and the pin will be triggered in the `on-click` event when the button is clicked to modify this value. | boolean |
718719

719720
![dragging.gif](public/dragging.gif)
720721

README_ZH.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ terminal标签支持的事件表
156156
| exec-cmd | 执行自定义命令时触发。`success``failed`为回调函数,**必须调用两个回调其中之一才会回显**!其中`success`回调参数含义见下方说明,`failed`回调参数为一个string | `(cmdKey, command, success, failed, name)` |
157157
| before-exec-cmd | 用户敲下回车之后执行命令之前触发 | `(cmdKey, command, name)` |
158158
| on-keydown | 当获取命令输入光标焦点时,按下任意键触发 | `(event, name)` |
159-
| on-click | 用户点击按钮时触发,参数`key`为按钮唯一识别,已有按钮:closeminScreenfullScreentitle | `(key, name)` |
159+
| on-click | 用户点击按钮时触发,参数`key`为按钮唯一识别,已有按钮:`close`, `minScreen`, `fullScreen`, `title`, `pin` | `(key, name)` |
160160
| init-before | 生命周期函数,插件初始化之前触发 | `(name)` |
161161
| init-complete | 生命周期函数,插件初始化完成之后触发 | `(name)` |
162162
| on-active | 窗口活跃时触发 | `(name)` |
@@ -726,6 +726,7 @@ dragConf完整配置结构如下:
726726
| height | 拖拽窗口高度,同宽度 | number/string |
727727
| zIndex | 窗口层级,此值可以修改并被terminal监听,可用于多窗口层级的控制,默认100 | number |
728728
| init | 窗口初始化位置,如果不填则默认位置在浏览器窗口中央,其中x和y的单位为px,``` {"x": 700, "y": 500}``` | object |
729+
| pinned | 固定窗口,固定后将无法拖拽,当点击按钮修改此值时会在`on-click`事件中触发 pin | boolean |
729730

730731
![dragging.gif](public/dragging.gif)
731732

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.1.6",
3+
"version": "3.1.7",
44
"description": "A lightweight and powerful web terminal plugin, suitable for vue3. 轻量、功能强大的网页端Terminal插件,适配vue3",
55
"license":"Apache-2.0",
66
"private": false,

0 commit comments

Comments
 (0)