You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| context-suffix | Context text suffix. | string |\>|
129
133
| title | The title displayed in the header. | string | vue-web-terminal |
130
134
| show-header | Whether to display the header, this switch will affect the drag and [drop](#Drag) function. Only when the header is displayed can the drag and drop function provided by default be used. | boolean | true |
131
135
| init-log | The log displayed when Terminal is initialized. It is an array composed of [Message](#Message), `null` is not displayed. | array | / |
@@ -141,7 +145,7 @@ Terminal tag supports attribute parameter table.
141
145
| search-handler | User-defined command search prompt implementation, the callback needs to resolve a command object, the specific format see [Command Definition format](#Command), can be used with `helpCmd` this slot | function | function(commandStore, key, callback) |
| push-message-before | A hook function that fires before the push message is displayed. | function | function(message, name) |
144
-
148
+
| log-size-limit | Limit the maximum number of displayed logs | number | 200 |
145
149
> Below are the removed properties
146
150
>
147
151
> *~~**show-log-time**~~: Removed after `2.0.14` and `3.0.13` versions.
@@ -291,6 +295,16 @@ let messages = [
291
295
TerminalApi.pushMessage(name, messages)
292
296
```
293
297
298
+
### appendMessage()
299
+
300
+
> Newly added in version `3.2.0`
301
+
302
+
Append content to the last message. It will be appended only if the last message exists and its type is normal, ansi, code, html, otherwise push a new message.
303
+
304
+
```js
305
+
TerminalApi.appendMessage('my-terminal', "this is append content")
306
+
```
307
+
294
308
### fullscreen()
295
309
296
310
Make the current terminal enter or exit full screen.
0 commit comments