A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://tzfun.github.io/vue-web-terminal/zh/attributes below:

Website Navigation


插件属性 | vue-web-terminal

插件属性

本插件提供了丰富的属性,让它变得更加灵活。

name

提示

同一个页面内支持创建多个 Terminal 实例,但它们的 name 属性必须互不相同,且全局唯一

context context-suffix

提示

此开关会影响拖拽功能,只有显示头部才能使用默认提供的拖拽功能

title drag-conf

提示

此项配置需要在 show-header 开启的情况下才有效。

如果不配置该属性,窗口宽高将会100%填充父元素,窗口宽高等同于父元素宽高

init-log command-store log-size-limit enable-default-command line-space cursor-style
type TerminalCursorStyle = 'block' | 'underline' | 'bar' | 'none'
enable-cursor-blink enable-fold enable-hover-stripe command-formatter
type CommandFormatterFunc = (cmd: string) => string;
enable-input-tips enable-help-box input-tips-select-handler

 * 输入提示选择处理函数
 *
 * @param command       当前用户输入的完整命令行
 * @param cursorIndex   当前光标所处位置
 * @param item          用户选择提示项
 * @param callback      填充结束后需调用此函数返回新的命令行
 */
type InputTipsSelectHandlerFunc = (command: string, cursorIndex: number, item: InputTipItem, callback: (cmd: string) => void) => void
input-tips-search-handler

 * 用户自定义命令搜索提示实现
 *
 * @param command       当前用户输入的完整命令行
 * @param cursorIndex   当前光标所处位置
 * @param commandStore  命令集合
 * @param callback      搜索结束回调,回调格式为一个数组
 */
type InputTipsSearchHandlerFunc = (command: string, cursorIndex: number, commandStore: Command[], callback: (tips: InputTipItem[], openTips?: boolean) => void) => void
push-message-before
type PushMessageBeforeFunc = (message: Message, name: String) => void;
command-sort-handler
type CommandSortHandlerFunc = (a: any, b: any) => number;
input-filter
type InputFilterFunc = (str1: string, str2: string, event: InputEvent) => string | null;

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4