Skip to content

组件 Props / Events(自动生成)

此文件由 scripts/generate-component-api-docs.ts 自动生成,请勿手改。

目录

TAgentTerminalGraphic

源码:src/vue/components/TAgentTerminalGraphic.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
contentstring
kindTAgentTerminalGraphicKind"image"
fallbackstringundefined
styleStyleundefined
loadingStyleStyleundefined
errorStyleStyleundefined
clearbooleantrue
finalbooleantrue
streamingbooleanfalse
rendererTAgentTerminalGraphicRendererundefined
loadingTextstring"Rendering terminal graphic..."
deferRenderUntilVisiblebooleantrue
suspendRawWhileScrollingbooleantrue
suspendRenderWhileScrollingbooleantrue
scrollingbooleanfalse
suspendedbooleanfalse
cacheKeystringundefined
trace(event: TAgentTerminalGraphicTraceEvent) => voidundefined

Events

TAgentTranscript

源码:src/vue/components/TTranscriptView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
sourceTTranscriptDataSource
versionnumber
scrollTopnumberundefined
defaultScrollTopnumber0
autoStickToBottombooleanfalse
selectablebooleantrue
wrapbooleanfalse
styleStyleundefined
hoverStyleStyleundefined
focusStyleStyleundefined
autoFocusbooleanfalse
focusablebooleantrue
wheelScrollbooleantrue
keyboardRegionsbooleantrue
rowScrollModeRowScrollMode"unsafe-full-row"

Events

名称Payload说明
scroll
update:scrollTop
rowClick
actionClick
linkClick
foldToggle
toolClick
hoverRegion

TAnchor

源码:src/vue/components/TAnchor.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
leftnumberundefined
topnumberundefined
rightnumberundefined
bottomnumberundefined
wnumberundefined
hnumberundefined
zIndexnumber0
focusablebooleanfalse
selectablebooleanundefined

Events

名称Payload说明
clickCapture
click
dblclickCapture
dblclick
pointerdownCapture
pointerdown
pointerupCapture
pointerup
pointermoveCapture
pointermove
wheelCapture
wheel
keydownCapture
keydown
keyupCapture
keyup
focusCapture
focus
blurCapture
blur

TAutocompleteInput

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumber5Height in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuestringControlled component value.
suggestionsreadonly TAutocompleteOption[]() => []Autocomplete suggestions.
suggestionProviderTAutocompleteSuggestionProviderundefinedAsync suggestion provider called with the current input value.
openbooleanundefinedControlled suggestion popup visibility.
highlightedIndexnumber0Controlled highlighted suggestion index.
placeholderstring""Placeholder text shown when the input is empty.
debouncenumber0Delay before calling an async provider, in milliseconds.
minCharsnumber0Minimum input length before suggestions are shown or loaded.
filterLocalbooleanfalseFilters provided suggestions against the input value.
closeOnSelectbooleantrueCloses suggestions after a suggestion is selected.
loadingTextstring"Loading..."Text rendered while async loading is pending.
emptyTextstring""Text rendered when there are no rows or items.
errorTextstring"Unable to load suggestions"Text rendered when async loading fails.
styleStyleundefinedBase terminal cell style override.
suggestionStyleStyleundefinedStyle override for suggestion rows.
activeSuggestionStyleStyle() => ({ inverse: true })Style override for the active suggestion row.

Events

名称Payload说明
update:modelValuestringEmitted when the controlled model value changes.
update:openbooleanEmitted when popup visibility changes.
update:highlightedIndexnumberEmitted when the active autocomplete suggestion changes.
inputstringEmitted for input edits.
changestringEmitted when the component commits a value change.
selectTAutocompleteSelectPayloadEmitted when the active item is selected.
loadErrorTAutocompleteLoadErrorPayloadEmitted when the async suggestion provider rejects; aborted stale requests do not emit.

TBadge

源码:src/vue/components/TFeedback.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberundefinedWidth in terminal cells.
valuestring | numberText or scalar value rendered by the badge.
toneTFeedbackTone"default"Semantic color tone.
zIndexnumber0Render and event ordering within the current plane.
styleStyleundefinedBase terminal cell style override.

Events

TBox

源码:src/vue/components/TBox.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
borderbooleantrueDraws a border around the component.
titlestring""Optional title text.
paddingnumber0Inner padding in terminal cells.
scrollXnumber0Horizontal content offset in terminal cells.
scrollYnumber0Vertical content offset in terminal cells.
styleStyleundefinedBase terminal cell style override.
titleStyleStyleundefinedStyle override for title text.
clearbooleantrueClears the component rectangle before drawing content.

Events

名称Payload说明
pointerenterCaptureTerminalPointerEventEmitted when the pointer enters the component. Runs during capture.
pointerenterTerminalPointerEventEmitted when the pointer enters the component.
pointerleaveCaptureTerminalPointerEventEmitted when the pointer leaves the component. Runs during capture.
pointerleaveTerminalPointerEventEmitted when the pointer leaves the component.

Slots

名称Props说明
defaultContent rendered inside the box content area with origin, clipping, and scroll offsets applied.

TBreadcrumb

源码:src/vue/components/TNavigation.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
itemsreadonly TBreadcrumbItem[]
separatorstring"/"
styleStyleundefined
activeStyleStyle() => ({ bold: true })
disabledStyleStyle() => ({ dim: true })

Events

名称Payload说明
selectTBreadcrumbSelectPayload

TCandlestickChart

源码:src/vue/components/TCharts.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0
candlesreadonly TCandlestickDatum[]Candles rendered from left to right; the most recent candles are kept when width is smaller.
labelsreadonly string[]undefinedLabels aligned with candles and shown in hover tooltips.
minnumberundefinedLower price bound. Defaults to the smallest candle low.
maxnumberundefinedUpper price bound. Defaults to the largest candle high.
styleStyleundefined
upStyleStyle() => ({ fg: "greenBright" })Style used when close is greater than or equal to open.
downStyleStyle() => ({ fg: "redBright" })Style used when close is less than open.
wickStyleStyleundefinedOptional style override for wick cells.
showAxesbooleantrueWhether to render axes and price labels when there is enough space.
axisStyleStyle() => ({ fg: "white", dim: true })Style used for axis lines.
labelStyleStyle() => ({ fg: "whiteBright" })Style used for axis labels.
xLabelstring""Label centered under the x axis.
yLabelstring""Label rendered at the top of the plot area.
startLabelstring""Left endpoint label for the x axis when xLabel is empty.
endLabelstring""Right endpoint label for the x axis when xLabel is empty.
showTooltipbooleantrueWhether pointer hover shows candle values.
hoverStyleStyle() => ({})Style merged onto the currently hovered candle.
tooltipStyleStyle() => ({ fg: "whiteBright" })Style used for hover tooltip text.

Events

TCheckbox

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuebooleanfalseControlled component value.
labelstring""Visible label text.
disabledbooleanfalseDisables pointer and keyboard activation.
styleStyleundefinedBase terminal cell style override.
checkedStyleStyleundefinedStyle used when the checkbox is checked.
disabledStyleStyle() => ({ dim: true })Style used for disabled content.

Events

名称Payload说明
update:modelValuebooleanEmitted when the controlled model value changes.
changebooleanEmitted when the component commits a value change.

TCode

源码:src/vue/components/TFeedback.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberundefinedWidth in terminal cells.
valuestringCode text rendered inside the code block.
zIndexnumber0Render and event ordering within the current plane.
styleStyle() => ({ fg: "yellowBright" })Base terminal cell style override.

Events

TCommandPalette

源码:src/vue/components/TCommandPalette.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
modelValuebooleanControlled component value.
titlestring""Optional title text.
querystringundefinedSearch query used by filtering or async providers.
initialQuerystring""Query used when the command palette opens.
itemsreadonly TCommandPaletteItem[]() => []Command items rendered and filtered by the palette.
itemsProviderTCommandPaletteItemsProviderundefinedAsync command provider called with the current query.
matcherTCommandPaletteMatcherundefinedCustom command matcher.
filterStrategy"substring" | "fuzzy""substring"Built-in command matching strategy.
selectedIndexnumberundefinedControlled active item index.
showRowDetailsbooleanfalseShows command detail text next to labels.
placeholderstring""Placeholder text shown when the input is empty.
noMatchesTextstring"No matches"Text rendered when filtering returns no commands.
loadingTextstring"Loading..."Text rendered while async loading is pending.
errorTextstring"Unable to load commands"Text rendered when async loading fails.
hintstring""Footer hint text.
debouncenumber0Delay before calling an async provider, in milliseconds.
minQueryLengthnumber0Minimum query length before async loading runs.
maxVisibleItemsnumberundefinedMaximum number of command rows rendered at once.
closeOnSelectbooleanfalseCloses the command palette after a command is selected.
resetQueryOnClosebooleanfalseResets the query when the palette closes.
wnumber72Width in terminal cells.
hnumber18Height in terminal cells.
chromeStyleStyleundefinedStyle override for command palette chrome.
inputStyleStyleundefinedStyle override for the embedded input.
listStyleStyleundefinedStyle override for list rows.
bodyStyleStyleundefinedStyle override for dialog body cells.
highlightStyleStyleundefinedStyle used for the highlighted row or match.
matchStyleStyleundefinedStyle used for matched text.
highlightMatchStyleStyleundefinedStyle used for highlighted text while the row is active.
dividerStyleStyleundefinedStyle override for dividers.
hintStyleStyleundefinedStyle override for hint text.
detailStyleStyleundefinedStyle override for detail text.
emptyStyleStyleundefinedStyle used when rendering an empty state.

Events

名称Payload说明
update:modelValuebooleanEmitted when the controlled model value changes.
update:querystringEmitted when the controlled query changes.
update:selectedIndexnumberEmitted when the controlled active index changes.
selectTCommandPaletteSelectPayloadEmitted when the active item is selected.
loadErrorTCommandPaletteLoadErrorPayloadEmitted when the async command provider rejects; aborted stale requests do not emit.
closevoidEmitted when the component requests to close.

TContextMenu

源码:src/vue/components/TOverlay.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
modelValueboolean
xnumberCaller-owned x position; no viewport clamp or flip placement is applied.
ynumberCaller-owned y position; no viewport clamp or flip placement is applied.
wnumber24
zIndexnumber20
itemsreadonly TContextMenuItem[]
selectedIndexnumberundefined
closeOnOutsidebooleantrue
styleStyleundefined
activeStyleStyle() => ({ inverse: true })
disabledStyleStyle() => ({ dim: true })

Events

名称Payload说明
update:modelValueboolean
update:selectedIndexnumber
selectTContextMenuSelectPayload
close

TContributionGraph

源码:src/vue/components/TCharts.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberundefinedWidth in terminal cells. Defaults to the rendered graph width.
hnumberundefinedHeight in terminal cells. Defaults to the row count plus a tooltip row when tooltips are enabled.
zIndexnumber0
valuesreadonly number[]Numeric samples rendered column-major from top to bottom.
rowsnumber7Number of rows in each heatmap column.
columnsnumberundefinedNumber of columns to render. Defaults to enough columns for the values.
maxnumberundefinedMaximum sample value used for level mapping. Defaults to the largest positive value.
labelsreadonly string[]undefinedLabels aligned with values and shown in hover tooltips.
unitstring""Unit appended to hover tooltip values.
showTooltipbooleantrueWhether pointer hover shows a value tooltip.
emptyStyleStyle() => ({ fg: "blackBright", dim: true })Empty cells and surrounding clear area style.
levelStylesreadonly Style[]() => DEFAULT_HEATMAP_LEVEL_STYLESPositive value styles ordered from low to high intensity.
cellstring"■"Glyph used for each heatmap cell.
gapnumber1Horizontal gap between columns in terminal cells.
hoverStyleStyle() => ({})Style merged onto the currently hovered heatmap cell.
tooltipStyleStyle() => ({ fg: "whiteBright" })Style used for hover tooltip text.
styleStyleundefined

Events

TDataTable

源码:src/vue/components/TDataTable.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
columnsreadonly TTableColumn[]Table column definitions.
rowsreadonly TTableRow[]TDataTable can accept a controlled viewport offset through scrollTop. It is
still non-virtual: rows are sorted/filtered in memory and only the visible
slice is passed to TTable.
rowKeystring | ((row: TTableRow, index: number) => unknown)undefinedRow key field or resolver.
selectedRowKeyunknownundefinedControlled selected row key.
selectedRowKeysreadonly unknown[]undefinedControlled selected row keys for multi-select tables.
scrollTopnumberundefinedControlled top row offset.
sortBystring""Sorts by the raw row value at this key; column format only affects display and filtering.
sortDirectionTDataTableSortDirection"asc"Controlled sort direction.
sortablebooleanfalseEnables sortable column header interactions.
manualSortbooleanfalseDisables built-in sorting while keeping sort events controlled by the host.
sorterTDataTableSorterundefinedCustom row comparison function.
filterstring""Controlled filter query.
filterablebooleanfalseEnables built-in row filtering.
manualFilterbooleanfalseDisables built-in filtering while keeping filter state host-owned.
filterPredicateTDataTableFilterPredicateundefinedCustom row filter predicate.
selectablebooleanfalseEnables row selection.
selectionModeTDataTableSelectionMode"single"Row selection mode.
borderbooleanfalseDraws a border around the component.
styleStyleundefinedBase terminal cell style override.
headerStyleStyleundefinedStyle override for table header cells.
borderStyleStyleundefinedStyle override for border cells.
selectedStyleStyleundefinedStyle used for selected rows or nodes.
activeStyleStyleundefinedStyle used for the active item or row.
emptyTextstring"No rows"Text rendered when there are no rows or items.

Events

名称Payload说明
update:selectedRowKeyunknownEmitted when the selected row key changes.
update:selectedRowKeysunknown[]Emitted when selected row keys change.
update:scrollTopnumberEmitted when the top visible row offset should change.
update:sortBystringEmitted when the sorted column key changes.
update:sortDirectionTDataTableSortDirectionEmitted when the sort direction changes.
sortChangeTDataTableSortChangePayloadEmitted when table sort state changes.
rowSelectTDataTableRowSelectPayloadEmitted when a data table row is selected; index is viewport-local, dataIndex is filtered/sorted, and originalIndex is the input row index.

TDebugOverlay

源码:src/vue/components/TDebugOverlay.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
mode"focus" | "all""focus"
panelbooleantrue
maxRectsnumber40
zIndexnumber90

Events

TDialog

源码:src/vue/components/TDialog.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
modelValuebooleanControlled component value.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
titlestring""Optional title text.
paddingnumber1Inner padding in terminal cells.
zIndexnumber1000Render and event ordering within the current plane.
styleStyleundefinedBase terminal cell style override.
titleStyleStyleundefinedStyle override for title text.
contentStyleStyleundefinedStyle override for dialog or popover content cells.
backdropStyleStyleundefinedStyle override for backdrop cells.
placementPlacement"center"Dialog placement within the current layout.
offsetXnumber0Horizontal placement offset in cells.
offsetYnumber0Vertical placement offset in cells.
backdropbooleantrueRenders a backdrop behind the dialog.
closeOnBackdropbooleantrueCloses the dialog when the backdrop is clicked.
closeOnEscbooleantrueCloses the dialog on Escape.
closeOnBlurbooleanfalseEmits close when focus leaves the component.
teleportbooleanfalseMounts the dialog into the overlay runtime plane.
tabMode"cycle" | "wrapFromButtons""cycle"Keyboard Tab behavior inside the dialog.
buttonsDialogButton[]() => []Dialog footer buttons.
closeOnConfirmbooleantrueCloses the dialog after a footer button confirms.

Events

名称Payload说明
update:modelValuebooleanEmitted when the controlled model value changes.
closevoidEmitted when the component requests to close.
focusvoidEmitted when the component receives focus.
blurvoidEmitted when the component loses focus.
keydownTerminalKeyboardEventEmitted for keydown events.
confirmDialogButton & { index: number }Emitted when a focused action is confirmed.

Slots

名称Props说明
defaultDialog body content rendered inside the content rect before optional footer buttons.

TDivider

源码:src/vue/components/TFeedback.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
titlestring""Optional title text.
zIndexnumber0Render and event ordering within the current plane.
styleStyleundefinedBase terminal cell style override.

Events

TerminalProvider

源码:src/vue/components/TerminalProvider.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
colsnumberTerminal column count.
rowsnumberTerminal row count.
widthProviderWidthProvider"default"Cell width provider used by the terminal buffer.
defaultStyleStyle() => ({})Default terminal cell style for descendants.
themeTuiThemeOverridesundefinedTheme token overrides for component defaults.
autoResizebooleanfalseResizes the terminal from the host element when enabled.
minColsnumber1Minimum column count used by auto resize.
minRowsnumber1Minimum row count used by auto resize.
recordEvents((e: TerminalEventRecord) => void) | undefinedundefinedOptional event recorder callback.
inputPluginsreadonly TInputPlugin[]() => [defaultTInputHostPlugin]Input plugins provided to descendant text inputs.
pathPickerProviderPathPickerProviderundefinedPath provider injected into descendant path pickers.
linkOpenerTerminalLinkOpenerLikeundefinedHost link opener used by components with host-owned activation.
debugImebooleanfalseEnables IME debugging output.
debugTracebooleanfalseEnables runtime trace logging.
domRendererOptionsDomRendererOptionsundefinedDOM renderer options used by TerminalProvider.
clipboardClipboardApiundefinedClipboard implementation used for terminal selection copy.
selectionTerminalProviderSelectionConfigfalseTerminal cell selection configuration.

Events

名称Payload说明
selectionCopyTerminalSelectionCopyPayloadEmitted after terminal selection copy.

Slots

名称Props说明
defaultTerminal component tree rendered inside the provider runtime context.

TFlex

源码:src/vue/components/TFlex.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
directionTFlexDirection"row"
gapnumber0
rowGapnumberundefined
columnGapnumberundefined
paddingnumber0
paddingXnumberundefined
paddingYnumberundefined
paddingTopnumberundefined
paddingRightnumberundefined
paddingBottomnumberundefined
paddingLeftnumberundefined
wrapbooleanfalse
alignItemsTFlexAlign"stretch"
justifyContentTFlexJustify"start"
alignContentTFlexAlignContent"start"
zIndexnumber0

Events

Slots

名称Props说明
defaultFlex item subtree measured and positioned inside the flex container.

TFlexItem

源码:src/vue/components/TFlex.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
grownumber0
shrinknumber1
basisTFlexSizeundefined
wTFlexSizeundefined
widthTFlexSizeundefined
hTFlexSizeundefined
heightTFlexSizeundefined
minWidthTFlexSizeundefined
minHeightTFlexSizeundefined
maxWidthTFlexSizeundefined
maxHeightTFlexSizeundefined
measureTFlexMeasureundefined
ordernumber0
zIndexnumber0
marginnumber0
marginXnumberundefined
marginYnumberundefined
marginTopnumberundefined
marginRightnumberundefined
marginBottomnumberundefined
marginLeftnumberundefined
alignSelfTFlexAlignundefined

Events

Slots

名称Props说明
default{ rect: Rect }Item content rendered inside the computed child rect.

TFlow

源码:src/vue/components/TFlow.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
itemsunknown[]
directionDirection"vertical"
gapnumber0
itemSizenumber1
zIndexnumber0

Events

TForm

源码:src/vue/components/TForm.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
modelTFormModel
rulesRecord<string, TFormRule>() => ({})
disabledbooleanfalse
readOnlybooleanfalseProvides a read-only hint to custom form field consumers; built-in controls do not automatically consume it.
submitOnEnterbooleanfalse

Events

名称Payload说明
submitTFormSubmitPayload
validationRecord<string, string>

Slots

名称Props说明
defaultForm field subtree rendered with TForm context provided to descendants.

TFormField

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
namestring""Field name used by form context.
labelstring""Visible label text.
helpstring""Help text rendered below the field.
errorstring""Error text rendered below the field.
requiredbooleanfalseMarks the field label as required.
disabledbooleanfalseDisables pointer and keyboard activation.
styleStyleundefinedBase terminal cell style override.
labelStyleStyleundefinedStyle override for label text.
helpStyleStyleundefinedStyle override for help text.
errorStyleStyleundefinedStyle override for error text.

Events

Slots

名称Props说明
defaultField control content rendered between the label and help/error row.

TInput

源码:src/vue/components/TInput.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumber1Height in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuestringControlled component value.
cursorToEndOnExternalUpdatebooleanfalseMoves the cursor to the end after external model updates.
cursorToEndOnFirstFocusbooleanfalseMoves the cursor to the end on first focus.
placeholderstring""Placeholder text shown when the input is empty.
placeholderWhenFocusedbooleanfalsePlaceholder text used while the input has focus.
styleStyleundefinedBase terminal cell style override.
autoFocusbooleanfalseRequests focus when the component becomes visible.
cursorBlinkbooleantrueEnables cursor blink rendering.
cursorShape"block" | "underline" | "bar""block"Cursor glyph shape.
blinkIntervalnumber500Cursor blink interval in milliseconds.
promptSuggestionsreadonly PromptSuggestion[]() => []Prompt popup suggestions.
promptTriggerstring"/"Prompt popup trigger character.
promptTriggersreadonly string[]undefinedPrompt popup trigger characters.
promptMaxItemsnumber6Maximum prompt popup rows.
promptAlign"input" | "center""input"Prompt popup alignment.
promptSelectedStyleStyleundefinedStyle override for the active prompt suggestion.
promptPopupStyleStyleundefinedStyle override for the prompt popup body.
promptPopupBorderStyleStyleundefinedStyle override for the prompt popup border.
promptPopupMatchStyleStyleundefinedStyle override for prompt match highlights.
skillTriggerstring""Trigger used for skill suggestions.
skillSuggestionsreadonly PromptSuggestion[]undefinedSkill suggestions shown in the prompt popup.
skillHighlightStyleStyleundefinedStyle override for highlighted skill chips.
mentionTriggerstring"@"Trigger used for path or mention suggestions.
mentionWorkspacestring""Workspace root used by mention providers.
mentionModePathPickMode"file"Mention provider mode.
mentionShowHiddenbooleanfalseIncludes hidden paths in mention suggestions.
mentionSuggestionsreadonly PromptSuggestion[]() => []Mention suggestions supplied by the host.
mentionMaxItemsnumber8Maximum mention rows.
mentionChipStyleStyleundefinedStyle override for mention chips.
multilineChipStyleStyleundefinedStyle override for multiline chips.
dedupeMentionsbooleantrueRemoves duplicate mention entries.
collectMentionsbooleanfalseCollects mention values from committed input.
mentionsreadonly string[]() => []Controlled collected mention values.
collapseMultilinebooleanfalseCollapses multiline pasted text into chips.
multilineTextsreadonly string[]() => []Controlled multiline chip text values.
secretbooleanfalseMasks input text when enabled.
maskCharstring"•"Character used to mask secret input.
submitOnEnterbooleantrueEmits change on Enter.
pluginsreadonly TInputPlugin[]() => []Input plugins attached to this input.
pasteImageHandler() => Promise<string | null> | string | nullundefinedHost handler for pasted images.
filePasteHandler(absPath: string) => Promise<string | null> | string | nullundefinedHost handler for pasted files.

Events

名称Payload说明
update:modelValuestringEmitted when the controlled model value changes.
inputstringEmitted for input edits.
changestringEmitted when the component commits a value change.
keydownTerminalKeyboardEventEmitted for keydown events.
focusvoidEmitted when the component receives focus.
blurvoidEmitted when the component loses focus.
pointerenterTerminalPointerEventEmitted when the pointer enters the component.
pointerleaveTerminalPointerEventEmitted when the pointer leaves the component.
update:mentionsreadonly string[]Emitted when collected mentions change.
mentionClick(absPath: string, event: TerminalPointerEvent)Emitted when a rendered mention chip is clicked.
update:multilineTextsreadonly string[]Emitted when multiline chip text values change.
multilineClicknumberEmitted when a multiline chip is clicked.
validationError{ reason: string }Emitted when input validation rejects a host action.

TInputBox

源码:src/vue/components/TInputBox.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
titlestring""
paddingnumber0
modelValuestring
placeholderstring""
styleStyleundefined
autoFocusbooleanfalse
pluginsreadonly TInputPlugin[]() => []
cursorBlinkbooleantrue
cursorShape"block" | "underline" | "bar""block"
blinkIntervalnumber500

Events

名称Payload说明
update:modelValue
input
change
keydown
focus
blur

TJsonEditor

源码:src/vue/components/TJsonEditor.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber8
zIndexnumber0
modelValuestring
placeholderstring""
styleStyleundefined
showIndentGuidesbooleantrue
indentSizenumber2
guideColorsreadonly AnsiColorName[]() => [...DEFAULT_GUIDE_COLORS]
autoFocusbooleanfalse
cursorToEndOnFirstFocusbooleantrue
cursorToEndOnExternalUpdatebooleantrue
submitOnEnterbooleanfalse

Events

名称Payload说明
update:modelValue
keydown
focus
blur
undo
redo
lintChange
validationError

TKeyHint

源码:src/vue/components/TNavigation.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumberundefined
zIndexnumber0
combostring
labelstring
styleStyleundefined
comboStyleStyle() => ({ inverse: true })

Events

TLineChart

源码:src/vue/components/TCharts.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0
valuesreadonly number[]Numeric samples rendered across the chart width.
labelsreadonly string[]undefinedLabels aligned with values and shown in hover tooltips.
unitstring""Unit appended to hover y values.
minnumberundefinedLower domain bound. Defaults to the smallest sample.
maxnumberundefinedUpper domain bound. Defaults to the largest sample.
styleStyleundefined
lineStyleStyle() => ({ fg: "cyanBright" })Style used for line glyphs.
showAxesbooleantrueWhether to render axes and domain labels when there is enough space.
axisStyleStyle() => ({ fg: "white", dim: true })Style used for axis lines.
labelStyleStyle() => ({ fg: "whiteBright" })Style used for axis labels.
xLabelstring""Label centered under the x axis.
yLabelstring""Label rendered at the top of the plot area.
startLabelstring""Left endpoint label for the x axis when xLabel is empty.
endLabelstring""Right endpoint label for the x axis when xLabel is empty.
showTooltipbooleantrueWhether pointer hover shows point values.
hoverStyleStyle() => ({ fg: "whiteBright", bold: true })Style merged onto the currently hovered point.
tooltipStyleStyle() => ({ fg: "whiteBright" })Style used for hover tooltip text.

Events

源码:src/vue/components/TLink.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberundefinedWidth in terminal cells.
hnumber1Height in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
hrefstringLink target to render and activate.
labelstringundefinedVisible label text.
styleStyleundefinedBase terminal cell style override.
hoverStyleStyleundefinedStyle applied while the pointer hovers the link.
focusStyleStyleundefinedStyle applied while the link has keyboard focus.
activeStyleStyleundefinedStyle used for the active item or row.
disabledbooleanfalseDisables pointer and keyboard activation.
visitedbooleanfalseMarks the link as already visited for styling.
openModeTLinkOpenMode"host"Link activation mode.
activationKeysreadonly string[]() => DEFAULT_ACTIVATION_KEYSKeyboard keys that activate the link.
modifierClickTLinkModifierClick"none"Pointer modifier required for click activation.
autoFocusbooleanfalseRequests focus when the component becomes visible.

Events

名称Payload说明
activateTLinkActivatePayloadEmitted when the link is activated.
openTLinkOpenPayloadEmitted when the host opener accepts a link open request.
invalidHrefTLinkInvalidHrefPayloadEmitted when a link href is rejected by the sanitizer.
clickTerminalPointerEventEmitted for click events.
keydownTerminalKeyboardEventEmitted for keydown events.
focusTerminalBaseEventEmitted when the component receives focus.
blurTerminalBaseEventEmitted when the component loses focus.

TLinkifyText

源码:src/vue/components/TLinkifyText.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
valuestringText scanned for links and rendered into terminal cells.
wnumberundefinedWidth in terminal cells.
hnumberundefinedHeight in terminal cells.
styleStyleundefinedBase terminal cell style override.
linkStyleStyleundefinedStyle applied to detected link segments.
clearbooleantrueClears the component rectangle before drawing content.
wrapbooleanfalseWraps text to the available cell width.
protocolsreadonly TLinkifyProtocol[]undefinedURL protocols accepted by linkification.
allowRelativebooleanfalseAllows relative hrefs in detected link segments.
maxUrlLengthnumberundefinedMaximum detected URL length.

Events

TList

源码:src/vue/components/TList.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
itemsstring[]List rows rendered by the component.
itemVersionnumber0External version key for item changes that keep array identity stable.
modelValuenumber0Controlled component value.
styleStyleundefinedBase terminal cell style override.
autoFocusbooleanfalseRequests focus when the component becomes visible.
closeOnBlurbooleanfalseEmits close when focus leaves the component.

Events

名称Payload说明
update:modelValuenumberEmitted when the controlled model value changes.
change{ index: number; value: string }Emitted when the component commits a value change.
scrollnumberEmitted when the visible scroll offset changes.
closevoidEmitted when the component requests to close.
focusvoidEmitted when the component receives focus.
blurvoidEmitted when the component loses focus.
keydownTerminalKeyboardEventEmitted for keydown events.

TLogLinksPanel

源码:src/vue/components/TLogLinksPanel.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
linksreadonly TLogLinkPanelItem[]() => []
activeIndexnumber-1
styleStyleundefined
activeStyleStyle() => ({ inverse: true })
currentStyleStyle() => ({ bold: true })
hrefStyleStyle() => ({ underline: true })
disabledStyleStyle() => ({ dim: true })
showLineNumbersbooleantrue
showHrefbooleantrue
focusablebooleantrue

Events

名称Payload说明
select
activate
activeChange
focus
blur
keydown

TLogMinimap

源码:src/vue/components/TLogMinimap.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
metricsTLogMinimapMetrics | nullnull
markersreadonly TLogMinimapMarker[]() => []
densityreadonly TLogMinimapDensityBucket[]() => []
styleStyleundefined
densityStyleStyleundefined
markerStyleStyleundefined
currentMarkerStyleStyleundefined
viewportStyleStyleundefined
estimatedStyleStyleundefined
showMarkersbooleantrue
showDensitybooleantrue
showViewportbooleantrue

Events

名称Payload说明
scrollTo
markerClick

TLogScrollbar

源码:src/vue/components/TLogScrollbar.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
hnumber
zIndexnumber0
metricsTLogScrollbarMetrics | nullnull
styleStyleundefined
thumbStyleStyleundefined
trackStyleStyleundefined
measuringStyleStyleundefined
markersreadonly TLogScrollbarMarker[]() => []
markerStyleStyle() => ({ fg: "yellowBright" })
currentMarkerStyleStyle() => ({ fg: "redBright", bold: true })
showMarkersbooleantrue
showArrowsbooleanfalse

Events

名称Payload说明
scrollTo
scrollBy
markerClick

TLogSearchBar

源码:src/vue/components/TLogSearchBar.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
stateTLogSearchBarState
placeholderstring"Search…"
styleStyleundefined
inputStyleStyleundefined
activeStyleStyle() => ({ inverse: true })
errorStyleStyle() => ({ fg: "redBright", bold: true })
disabledStyleStyle() => ({ dim: true })
toggleStyleStyleundefined
focusablebooleantrue
showModeTogglebooleantrue
showCaseTogglebooleantrue
showWholeWordTogglebooleantrue
showCountbooleantrue
showNavigationbooleantrue

Events

名称Payload说明
update
update:query
update:mode
update:caseSensitive
update:wholeWord
previous
next
clear
focus
blur
keydown

TLogSearchPager

源码:src/vue/components/TLogSearchPager.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
stateTLogSearchPagerState | nullnull
styleStyleundefined
activeStyleStyleundefined
disabledStyleStyle() => ({ dim: true })
errorStyleStyle() => ({ fg: "redBright", bold: true })
showCountbooleantrue

Events

名称Payload说明
previousPage
nextPage
pageChange

TLogSearchResults

源码:src/vue/components/TLogSearchResults.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
resultsreadonly TLogSearchResultItem[]() => []
activeIndexnumber-1
styleStyleundefined
activeStyleStyle() => ({ inverse: true })
matchStyleStyle() => ({ underline: true })
currentStyleStyle() => ({ bold: true })
showLineNumbersbooleantrue
focusablebooleantrue

Events

名称Payload说明
select
activeChange
keydown
focus
blur

TLogView

源码:src/vue/components/TLogView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
sourceTLogDataSource
versionnumber
scrollTopnumberundefined
defaultScrollTopnumberundefined
styleStyleundefined
autoFocusbooleanfalse
selectablebooleantrue
autoStickToBottombooleantrue
overscannumber2
wrapbooleanfalse
visualIndexMode"estimated" | "exact""estimated"
visualIndexOptionsTLogViewVisualIndexOptionsundefined
ansibooleanfalse
linksbooleanfalseParses OSC8 links only with ansi=true; OSC8 links preserve parsed ANSI style and
do not inherit TLink theme defaults.
linkifyboolean | TLinkifyOptionsfalsePlain-text URL linkification for ansi=false rows; generated links inherit TLink
theme defaults before linkStyle.
linkStyleStyleundefinedLink style override. OSC8 defaults to underline-only over parsed ANSI style;
linkify also inherits TLink theme defaults.
keyboardLinksbooleanfalse
linkFocusStyleStyle() => ({ inverse: true })
searchQuerystring""
searchOptionsTLogViewSearchOptionsundefined
highlightMatchesbooleantrue
matchStyleStyle() => ({ inverse: true })
currentMatchStyleStyle() => ({ inverse: true, bold: true })
rowScrollModeRowScrollMode"off"

Events

名称Payload说明
scroll
update:scrollTop
update:searchQuery
search
searchMatch
searchMarkers
linkClick
linkFocus
linkActivate
visualIndex
focus
blur
keydown

TLogVirtualLinksPanel

源码:src/vue/components/TLogVirtualLinksPanel.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
linksreadonly TLogLinkPanelItem[]() => []
modelValuenumber-1
styleStyleundefined
activeStyleStyleundefined
showLineNumbersbooleantrue
rowScrollModeRowScrollMode"off"

Events

名称Payload说明
update:modelValue
activeChange
select
activate
focus
blur
keydown
scroll

TLogVirtualSearchResults

源码:src/vue/components/TLogVirtualSearchResults.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
itemCountnumber
itemVersionnumber
getItem(index: number) => TLogSearchResultItem | null
modelValuenumber-1
styleStyleundefined
activeStyleStyleundefined
showLineNumbersbooleantrue
rowScrollModeRowScrollMode"off"

Events

名称Payload说明
update:modelValue
activeChange
select
focus
blur
keydown
scroll

TMarkdownText

源码:src/vue/components/TMarkdownText.ts

API maturity: Public

Import: @simon_he/vue-tui/markdown

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
contentstringMarkdown source rendered into terminal visual rows.
wnumberWidth in terminal cells.
hnumberundefinedHeight in terminal cells.
styleStyleundefinedBase terminal cell style override.
finalbooleantrueParses the markdown as a complete document when enabled.
streamingbooleanfalseCoalesces rapid content updates into frame-scheduled markdown rebuilds.
clearbooleantrueClears the component rectangle before drawing content.
customHtmlTagsreadonly string[]undefinedAdditional HTML tag names accepted by the markdown parser.
themeTuiMarkdownThemeOverridesundefinedMarkdown theme token overrides for parsed blocks and inline segments.
imageRendererTuiMarkdownImageResolverundefinedOptional resolver for markdown image payloads before terminal graphics rendering.
imageMinWidthnumberundefinedMinimum markdown image render width in terminal cells.
imageMaxWidthnumberundefinedMaximum markdown image render width in terminal cells.
imageMinHeightnumberundefinedMinimum markdown image render height in terminal cells.
imageMaxHeightnumberundefinedMaximum markdown image render height in terminal cells.
imagePreserveAspectRatiobooleantruePreserves markdown image aspect ratio while fitting width and height bounds.
imageActionsbooleanfalseEnables pointer actions for rendered markdown images.
mathActionsbooleanfalseEnables pointer actions for rendered markdown math blocks.
linkActionsbooleanfalseEnables pointer actions for rendered markdown links.
imageOcclusionRectsreadonly Rect[]undefinedTerminal rectangles that markdown image layout treats as unavailable for graphics placement.

Events

名称Payload说明
imageActionTuiMarkdownImageActionPayloadEmitted when imageActions is enabled and a markdown image action is selected.
mathActionTuiMarkdownMathActionPayloadEmitted when mathActions is enabled and a markdown math action is selected.
linkActionTuiMarkdownLinkActionPayloadEmitted when linkActions is enabled and a markdown link action is selected.

TMermaid

源码:src/vue/components/TMermaidText.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
contentstring""
codestringundefined
styleStyleundefined
loadingStyleStyleundefined
errorStyleStyleundefined
clearbooleantrue
finalbooleantrue
streamingbooleanfalse
asciibooleanfalse
paddingXnumberundefined
paddingYnumberundefined
boxBorderPaddingnumberundefined
optionsTMermaidAsciiOptionsundefined
rendererTMermaidRendererundefined
isTransientErrorTMermaidTransientErrorClassifierundefined
shouldRenderSourceTMermaidRenderEligibilityundefined
loadingTextstring"Rendering Mermaid diagram..."
incompleteTextstring"Waiting for complete Mermaid diagram..."
missingDependencyTextstring"Install the Mermaid renderer package and use TMermaidText from @simon_he/vue...
errorTextstring"Mermaid render failed"
showErrorDetailsbooleantrue
boxbooleantrue
titlestring"mermaid"
copyButtonbooleantrue
copyTextstring"copy"
copiedTextstring"copied"
renderTimeoutMsnumberDEFAULT_MERMAID_RENDER_TIMEOUT_MS
maxRenderSourceCharsnumberDEFAULT_MERMAID_MAX_RENDER_SOURCE_CHARS
maxRenderSourceLinesnumberDEFAULT_MERMAID_MAX_RENDER_SOURCE_LINES
copiedDurationMsnumberDEFAULT_MERMAID_COPIED_DURATION_MS

Events

名称Payload说明
copyTMermaidCopyPayload

TMermaidText

源码:src/vue/components/TMermaidText.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
contentstring""
codestringundefined
styleStyleundefined
loadingStyleStyleundefined
errorStyleStyleundefined
clearbooleantrue
finalbooleantrue
streamingbooleanfalse
asciibooleanfalse
paddingXnumberundefined
paddingYnumberundefined
boxBorderPaddingnumberundefined
optionsTMermaidAsciiOptionsundefined
rendererTMermaidRendererundefined
isTransientErrorTMermaidTransientErrorClassifierundefined
shouldRenderSourceTMermaidRenderEligibilityundefined
loadingTextstring"Rendering Mermaid diagram..."
incompleteTextstring"Waiting for complete Mermaid diagram..."
missingDependencyTextstring"Install the Mermaid renderer package and use TMermaidText from @simon_he/vue...
errorTextstring"Mermaid render failed"
showErrorDetailsbooleantrue
boxbooleantrue
titlestring"mermaid"
copyButtonbooleantrue
copyTextstring"copy"
copiedTextstring"copied"
renderTimeoutMsnumberDEFAULT_MERMAID_RENDER_TIMEOUT_MS
maxRenderSourceCharsnumberDEFAULT_MERMAID_MAX_RENDER_SOURCE_CHARS
maxRenderSourceLinesnumberDEFAULT_MERMAID_MAX_RENDER_SOURCE_LINES
copiedDurationMsnumberDEFAULT_MERMAID_COPIED_DURATION_MS

Events

名称Payload说明
copyTMermaidCopyPayload

TMultilineModal

源码:src/vue/components/TMultilineModal.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
visibleboolean
contentstring
titlestring"Multiline Text"
styleStyleundefined
zIndexnumber1000

Events

名称Payload说明
close

TPasswordInput

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumber1Height in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuestringControlled component value.
placeholderstring""Placeholder text shown when the input is empty.
styleStyleundefinedBase terminal cell style override.
autoFocusbooleanfalseRequests focus when the component becomes visible.

Events

名称Payload说明
update:modelValuestringEmitted when the controlled model value changes.
inputstringEmitted for input edits.
changestringEmitted when the component commits a value change.

TPathPicker

源码:src/vue/components/TPathPicker.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
workspacestring
modePathPickMode"any"
modelValuestring
placeholderstring""
styleStyleundefined
inputStyleStyleundefined
activeStyleStyleundefined
matchStyleStyleundefined
autoFocusbooleanfalse
showHiddenbooleanfalse
maxSuggestionsnumber50
providerPathPickerProviderundefined

Events

名称Payload说明
update:modelValue
select
invalid
keydown
focus
blur

TPieChart

源码:src/vue/components/TCharts.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0
valuesreadonly number[]Segment values rendered clockwise from the top.
labelsreadonly string[]undefinedLabels aligned with segment values and shown in the legend.
styleStyleundefined
segmentStylesreadonly Style[]() => DEFAULT_PIE_SEGMENT_STYLESSegment styles cycled when there are more segments than styles.
cellstring"█"Glyph used for filled pie cells.
showLegendbooleantrueWhether to render a label/value/percent legend when there is enough space.
legendStyleStyle() => ({ fg: "whiteBright" })Style used for legend text.

Events

TPopover

源码:src/vue/components/TOverlay.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
modelValueboolean
xnumberCaller-owned x position; no viewport clamp or flip placement is applied.
ynumberCaller-owned y position; no viewport clamp or flip placement is applied.
wnumber
hnumber
zIndexnumber15
titlestring""
contentstring""
styleStyleundefined
contentStyleStyleundefined

Events

TProgress

源码:src/vue/components/TFeedback.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
valuenumber
maxnumber100
labelstring""
showPercentbooleantrue
styleStyleundefined
barStyleStyleundefined

Events

TRadioGroup

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuestring""Controlled component value.
optionsreadonly TRadioOption[]Options rendered by the control.
styleStyleundefinedBase terminal cell style override.
activeStyleStyle() => ({ inverse: true })Style used for the active item or row.
disabledStyleStyle() => ({ dim: true })Style used for disabled content.

Events

名称Payload说明
update:modelValuestringEmitted when the controlled model value changes.
changestringEmitted when the component commits a value change.

TRenderLayer

源码:src/vue/components/TRenderLayer.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
zIndexnumber0

Events

TRenderPlane

源码:src/vue/components/TRenderPlane.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
planeTerminalRenderPlane"default"

Events

TRouterView

源码:src/vue/router/RouterView.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
routesTerminalRouteRecord[]
forceRemountbooleantrue

Events

TSelect

源码:src/vue/components/TSelect.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
optionsreadonly SelectOption[]() => []Options rendered by the control.
optionProviderTSelectOptionProviderundefinedAsync option provider called with the current query and an AbortSignal for stale requests.
querystringundefinedSearch query used by filtering or async providers.
modelValueTSelectModelValue0Controlled component value.
valueModeTSelectValueMode"index"Model value shape emitted by the select v-model.
activeIndexnumberundefinedControlled active option index.
multiplebooleanfalseEnables multi-select mode.
multipleEmitTSelectMultipleEmitMode"label"Payload shape used by multi-select change and confirm events: "label" emits labels, "value" emits option values, "index" emits indices, and "both" emits an object payload.
styleStyleundefinedBase terminal cell style override.
highlightStyleStyleundefinedStyle used for the highlighted row or match.
matchStyleStyleundefinedStyle used for matched text.
highlightMatchStyleStyleundefinedStyle used for highlighted text while the row is active.
autoFocusbooleanfalseRequests focus when the component becomes visible.
closeOnBlurbooleanfalseEmits close when focus leaves the component.
searchablebooleanfalseEmits query updates from typed characters; local options are not filtered automatically.
typeaheadbooleantrueEnables keyboard typeahead navigation.
debouncenumber0Delay before calling an async provider, in milliseconds.
emptyTextstring"No options"Text rendered when there are no rows or items.
loadingbooleanfalseShows the loading row; true also covers pending async option providers.
loadingTextstring"Loading..."Text rendered while async loading is pending.
errorTextstring"Unable to load options"Text rendered when async loading fails.
maxVisiblenumberundefinedMaximum number of option rows rendered at once.

Events

名称Payload说明
update:modelValuenumber | number[] | string | string[] | unknown | unknown[] | SelectOption | SelectOption[]Emitted when the controlled model value changes.
update:activeIndexnumberEmitted when the active option index changes.
update:querystringEmitted when the controlled query changes.
changestring | string[] | unknown[] | number[] | TSelectMultipleChangePayload | nullFor single select, emits the selected option label or null; valueMode only affects update:modelValue. For multiple select, the payload follows multipleEmit.
confirmstring[] | unknown[] | number[] | TSelectMultipleChangePayloadEmitted when multi-select commits the current selection.
closevoidEmitted when the component requests to close.
focusvoidEmitted when the component receives focus.
blurvoidEmitted when the component loses focus.
keydownTerminalKeyboardEventEmitted for keydown events.
loadError{ query: string; error: unknown }Emitted when the async option provider rejects; aborted stale requests do not emit.

TSlider

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuenumber0Controlled component value.
minnumber0Minimum numeric value.
maxnumber100Maximum numeric value.
stepnumber1Keyboard increment step.
disabledbooleanfalseDisables pointer and keyboard activation.
styleStyleundefinedBase terminal cell style override.
activeStyleStyle() => ({ fg: "cyanBright" })Style used for the active item or row.
disabledStyleStyle() => ({ dim: true })Style used for disabled content.

Events

名称Payload说明
update:modelValuenumberEmitted when the controlled model value changes.
changenumberEmitted when the component commits a value change.

TSpinner

源码:src/vue/components/TFeedback.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumberundefined
zIndexnumber0
framesreadonly string[]() => ["|", "/", "-", "\"]
frameIndexnumber0
labelstring""
runningbooleantrue
styleStyleundefined

Events

TSplitPane

源码:src/vue/components/TPanels.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
directionTSplitPaneDirection"horizontal"
sizesreadonly number[]
minSizesreadonly number[]() => []
separatorStyleStyle() => ({ dim: true })

Events

名称Payload说明
update:sizesnumber[]
resizenumber[]

Slots

名称Props说明
default{ panes: readonly TSplitPaneRect[] }Pane content renderer. The host renders pane children from the resolved pane rectangles.

TStatusBar

源码:src/vue/components/TNavigation.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
leftstring""
centerstring""
rightstring""
styleStyle() => ({ inverse: true })

Events

TSwitch

源码:src/vue/components/TForm.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
modelValuebooleanfalseControlled component value.
labelstring""Visible label text.
disabledbooleanfalseDisables pointer and keyboard activation.
styleStyleundefinedBase terminal cell style override.
activeStyleStyle() => ({ fg: "greenBright" })Style used for the active item or row.
disabledStyleStyle() => ({ dim: true })Style used for disabled content.

Events

名称Payload说明
update:modelValuebooleanEmitted when the controlled model value changes.
changebooleanEmitted when the component commits a value change.

TTable

源码:src/vue/components/TTable.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
columnsreadonly TTableColumn[]Table column definitions.
rowsreadonly TTableRow[]Rows are rendered from the top of the current viewport; TTable does not own
scrollTop or virtualization.
rowKeystring | ((row: TTableRow, index: number) => unknown)undefinedRow key field or resolver.
selectedRowKeyunknownundefinedControlled selected row key.
selectedRowKeysreadonly unknown[]undefinedControlled selected row keys for multi-select tables.
activeRowKeyunknownundefinedControlled active row key.
borderbooleanfalseDraws a border around the component.
headerbooleantrueShows the table header when enabled.
styleStyleundefinedBase terminal cell style override.
headerStyleStyleundefinedStyle override for table header cells.
borderStyleStyleundefinedStyle override for border cells.
selectedStyleStyleundefinedStyle used for selected rows or nodes.
activeStyleStyleundefinedStyle used for the active item or row.
emptyTextstring"No rows"Text rendered when there are no rows or items.
headerFocusablebooleanfalseMakes header cells keyboard focusable.
rowFocusablebooleanfalseMakes body rows keyboard focusable.

Events

名称Payload说明
rowClickTTableRowClickPayloadEmitted when a table row is clicked or confirmed.
headerClickTTableHeaderClickPayloadEmitted when a table header is clicked or confirmed.
rowKeydownTTableRowKeydownPayloadEmitted when a focused table row receives a keydown event.

TTabs

源码:src/vue/components/TPanels.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
zIndexnumber0
itemsreadonly TTabsItem[]
activeKeystring
styleStyleundefined
activeStyleStyle() => ({ inverse: true })
disabledStyleStyle() => ({ dim: true })

Events

名称Payload说明
update:activeKeystring
changeTTabsItem

TTag

源码:src/vue/components/TFeedback.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberundefinedWidth in terminal cells.
labelstringVisible label text.
toneTFeedbackTone"default"Semantic color tone.
zIndexnumber0Render and event ordering within the current plane.
styleStyleundefinedBase terminal cell style override.

Events

TText

源码:src/vue/components/TText.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
valuestringText content rendered into terminal cells.
wnumberundefinedWidth in terminal cells.
hnumberundefinedHeight in terminal cells.
styleStyleundefinedBase terminal cell style override.
clearbooleantrueClears the component rectangle before drawing content.
wrapbooleanfalseWraps text to the available cell width.
depsKeyunknownundefinedOptional key that participates in render-node dependency tracking.
Useful for forcing a repaint when the rendered output might change
even if value, style, and geometry are unchanged (e.g. external
terminal writes or higher-level virtualized row reuse).

Events

TThinkingView

源码:src/vue/components/TThinkingView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
titlestring"Thinking"
contentstring""
collapsedbooleanfalse
pulseFramenumber | nullnull
styleStyleundefined
headerStyleStyle() => DEFAULT_HEADER_STYLE
markerStyleStyleundefined
titleStyleStyleundefined
bodyStyleStyle() => DEFAULT_BODY_STYLE
focusablebooleanfalse
selectablebooleanundefined

Events

名称Payload说明
click
toggle

TToastViewport

源码:src/vue/components/TFeedback.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
xnumber0Fallback placement viewport x when no parent clip rect is available.
ynumber0Fallback placement viewport y when no parent clip rect is available.
offsetXnumber0
offsetYnumber0
wnumberToast item width in terminal cells.
viewportWnumberundefinedPlacement viewport width when no parent clip rect is available.
viewportHnumberundefinedPlacement viewport height when no parent clip rect is available.
zIndexnumber40
maxnumber3
placement"top-right" | "top-left" | "bottom-right" | "bottom-left""top-right"
itemsreadonly TToastItem[]
styleStyleundefined

Events

名称Payload说明
dismissstring

TToolCallView

源码:src/vue/components/TToolCallView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
titlestring
collapsedbooleanfalse
statusTToolCallStatus"pending"
suffixstring""
previewstring""
nestedbooleanfalse
selectedbooleanfalse
markerCollapsedstring"▸"
markerExpandedstring"▾"
statusDotstring"●"
previewPrefixstring" ⎿ "
styleStyleundefined
mutedStyleStyleundefined
headerStyleStyleundefined
collapsedStyleStyleundefined
expandedStyleStyleundefined
markerStyleStyleundefined
statusStyleStyleundefined
titleStyleStyleundefined
suffixStyleStyleundefined
previewStyleStyleundefined
focusablebooleanfalse
selectablebooleanundefined

Events

名称Payload说明
click
toggle

TToolLogView

源码:src/vue/components/TLogView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
sourceTLogDataSource
versionnumber
scrollTopnumberundefined
defaultScrollTopnumberundefined
styleStyleundefined
autoFocusbooleanfalse
selectablebooleantrue
autoStickToBottombooleantrue
overscannumber2
wrapbooleanfalse
visualIndexMode"estimated" | "exact""estimated"
visualIndexOptionsTLogViewVisualIndexOptionsundefined
ansibooleanfalse
linksbooleanfalseParses OSC8 links only with ansi=true; OSC8 links preserve parsed ANSI style and
do not inherit TLink theme defaults.
linkifyboolean | TLinkifyOptionsfalsePlain-text URL linkification for ansi=false rows; generated links inherit TLink
theme defaults before linkStyle.
linkStyleStyleundefinedLink style override. OSC8 defaults to underline-only over parsed ANSI style;
linkify also inherits TLink theme defaults.
keyboardLinksbooleanfalse
linkFocusStyleStyle() => ({ inverse: true })
searchQuerystring""
searchOptionsTLogViewSearchOptionsundefined
highlightMatchesbooleantrue
matchStyleStyle() => ({ inverse: true })
currentMatchStyleStyle() => ({ inverse: true, bold: true })
rowScrollModeRowScrollMode"off"

Events

名称Payload说明
scroll
update:scrollTop
update:searchQuery
search
searchMatch
searchMarkers
linkClick
linkFocus
linkActivate
visualIndex
focus
blur
keydown

TTooltip

源码:src/vue/components/TOverlay.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
modelValuebooleantrue
xnumber
ynumber
wnumberundefined
zIndexnumber30
contentstring
styleStyle() => ({ inverse: true })

Events

TTranscriptView

源码:src/vue/components/TTranscriptView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
sourceTTranscriptDataSource
versionnumber
scrollTopnumberundefined
defaultScrollTopnumber0
autoStickToBottombooleanfalse
selectablebooleantrue
wrapbooleanfalse
styleStyleundefined
hoverStyleStyleundefined
focusStyleStyleundefined
autoFocusbooleanfalse
focusablebooleantrue
wheelScrollbooleantrue
keyboardRegionsbooleantrue
rowScrollModeRowScrollMode"unsafe-full-row"

Events

名称Payload说明
scroll
update:scrollTop
rowClick
actionClick
linkClick
foldToggle
toolClick
hoverRegion

TTransition

源码:src/vue/components/TTransition.ts

API maturity: Advanced

Import: @simon_he/vue-tui/vue

Props

名称类型默认值必填说明
showboolean
durationnumber200
beforeEnterTransitionHookundefined
enterTransitionHookundefined
afterEnterTransitionHookundefined
beforeLeaveTransitionHookundefined
leaveTransitionHookundefined
afterLeaveTransitionHookundefined

Events

TTree

源码:src/vue/components/TTree.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
nodesreadonly TTreeNode[]Tree nodes.
expandedIdsreadonly string[]() => []Controlled expanded tree node ids.
selectedIdstring""Controlled selected tree node id.
styleStyleundefinedBase terminal cell style override.
selectedStyleStyle() => ({ inverse: true })Style used for selected rows or nodes.
disabledStyleStyle() => ({ dim: true })Style used for disabled content.
indentnumber2Indent width per tree depth.
selectableParentsbooleanfalseAllows expandable parent tree nodes to be selected from their label.

Events

名称Payload说明
update:expandedIdsstring[]Emitted when expanded tree node ids change.
update:selectedIdstringEmitted when the selected tree node id changes.
selectTTreeSelectPayloadEmitted when the active item is selected.
toggleTTreeTogglePayloadEmitted when a tree node expands or collapses.

TUserMessageView

源码:src/vue/components/TUserMessageView.ts

API maturity: Experimental

Import: @simon_he/vue-tui/agent

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumberundefined
zIndexnumber0
labelstring"user"
prefixstring"> "
metastring""
contentstring
indentnumber2
topBlankbooleantrue
bottomBlankbooleantrue
segmentsreadonly TUserMessageSegment[]() => []
styleStyle() => DEFAULT_BLOCK_STYLE
headerStyleStyle() => DEFAULT_HEADER_STYLE
prefixStyleStyle() => DEFAULT_LABEL_STYLE
labelStyleStyle() => DEFAULT_LABEL_STYLE
contentStyleStyleundefined
segmentStyleStyle() => DEFAULT_SEGMENT_STYLE
focusablebooleanfalse
selectablebooleanundefined

Events

TView

源码:src/vue/components/TView.ts

API maturity: Public

Import: @simon_he/vue-tui

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
scrollXnumber0Horizontal content offset in terminal cells.
scrollYnumber0Vertical content offset in terminal cells.
focusablebooleanfalseAdds the component to keyboard focus navigation.
selectablebooleanundefinedControls whether terminal text selection may start inside the view.
selectionScrollBy(deltaRows: number) => boolean | voidundefinedScroll callback used while a pointer selection reaches the viewport edge.
autoFocusbooleanfalseRequests focus when the component becomes visible.

Events

名称Payload说明
clickCaptureTerminalPointerEventEmitted for click events. Runs during capture.
clickTerminalPointerEventEmitted for click events.
dblclickCaptureTerminalPointerEventEmitted for double-click events. Runs during capture.
dblclickTerminalPointerEventEmitted for double-click events.
pointerdownCaptureTerminalPointerEventEmitted for pointer down events. Runs during capture.
pointerdownTerminalPointerEventEmitted for pointer down events.
pointerupCaptureTerminalPointerEventEmitted for pointer up events. Runs during capture.
pointerupTerminalPointerEventEmitted for pointer up events.
pointermoveCaptureTerminalPointerEventEmitted for pointer move events. Runs during capture.
pointermoveTerminalPointerEventEmitted for pointer move events.
pointerenterCaptureTerminalPointerEventEmitted when the pointer enters the component. Runs during capture.
pointerenterTerminalPointerEventEmitted when the pointer enters the component.
pointerleaveCaptureTerminalPointerEventEmitted when the pointer leaves the component. Runs during capture.
pointerleaveTerminalPointerEventEmitted when the pointer leaves the component.
wheelCaptureTerminalPointerEventEmitted for wheel events. Runs during capture.
wheelTerminalPointerEventEmitted for wheel events.
keydownCaptureTerminalKeyboardEventEmitted for keydown events. Runs during capture.
keydownTerminalKeyboardEventEmitted for keydown events.
keyupCaptureTerminalKeyboardEventEmitted for keyup events. Runs during capture.
keyupTerminalKeyboardEventEmitted for keyup events.
focusCapturevoidEmitted when the component receives focus. Runs during capture.
focusvoidEmitted when the component receives focus.
blurCapturevoidEmitted when the component loses focus. Runs during capture.
blurvoidEmitted when the component loses focus.

Slots

名称Props说明
defaultChildren rendered with this view's layout origin, clip rect, render stack, and event z-index context.

TVirtualList

源码:src/vue/components/TVirtualList.ts

API maturity: Experimental

Import: @simon_he/vue-tui/experimental

Props

名称类型默认值必填说明
xnumber
ynumber
wnumber
hnumber
zIndexnumber0
itemCountnumber
itemVersionnumber
getItem(index: number) => unknown
renderItem(item: unknown, index: number) => unknownundefined
modelValuenumber0
scrollTopnumberundefined
styleStyleundefined
activeStyleStyleundefined
autoFocusbooleanfalse
selectionText(item: unknown, index: number) => stringundefined
selectablebooleanfalse
rowScrollModeRowScrollMode"off"
terminalGraphicScrollIdleMsnumber96

Events

名称Payload说明
update:modelValue
update:scrollTop
change
itemClick
scroll
focus
blur
keydown

TVirtualMarkdown

源码:src/vue/components/TVirtualMarkdown.ts

API maturity: Public

Import: @simon_he/vue-tui/markdown

Props

名称类型默认值必填说明
xnumberLeft position in terminal cells.
ynumberTop position in terminal cells.
wnumberWidth in terminal cells.
hnumberHeight in terminal cells.
zIndexnumber0Render and event ordering within the current plane.
contentstring""Markdown source rendered when external blocks are not provided.
blocksreadonly TuiMarkdownBlock[]undefinedPrebuilt markdown blocks used instead of parsing content.
scrollTopnumber0Controlled top visual-row offset within the markdown viewport.
styleStyleundefinedBase terminal cell style override.
finalbooleantrueParses the markdown as a complete document when enabled.
streamingbooleanfalseCoalesces rapid content updates into frame-scheduled markdown rebuilds.
autoFocusbooleanfalseRequests focus when the component becomes visible.
selectablebooleantrueControls whether native terminal text selection may start inside the markdown viewport.
customHtmlTagsreadonly string[]undefinedAdditional HTML tag names accepted by the markdown parser.
themeTuiMarkdownThemeOverridesundefinedMarkdown theme token overrides for parsed blocks and inline segments.
imageRendererTuiMarkdownImageResolverundefinedOptional resolver for markdown image payloads before terminal graphics rendering.
imageMinWidthnumberundefinedMinimum markdown image render width in terminal cells.
imageMaxWidthnumberundefinedMaximum markdown image render width in terminal cells.
imageMinHeightnumberundefinedMinimum markdown image render height in terminal cells.
imageMaxHeightnumberundefinedMaximum markdown image render height in terminal cells.
imagePreserveAspectRatiobooleantruePreserves markdown image aspect ratio while fitting width and height bounds.
imageActionsbooleanfalseEnables pointer actions for rendered markdown images.
mathActionsbooleanfalseEnables pointer actions for rendered markdown math blocks.
linkActionsbooleanfalseEnables pointer actions for rendered markdown links.
imageOcclusionRectsreadonly Rect[]undefinedTerminal rectangles that markdown image layout treats as unavailable for graphics placement.

Events

名称Payload说明
update:scrollTopnumberEmitted when the top visible row offset should change.
scrollnumberEmitted when the visible scroll offset changes.
focusvoidEmitted when the component receives focus.
blurvoidEmitted when the component loses focus.
keydownTerminalKeyboardEventEmitted for keydown events.
imageActionTuiMarkdownImageActionPayloadEmitted when imageActions is enabled and a markdown image action is selected.
mathActionTuiMarkdownMathActionPayloadEmitted when mathActions is enabled and a markdown math action is selected.
linkActionTuiMarkdownLinkActionPayloadEmitted when linkActions is enabled and a markdown link action is selected.

Bug reports, feature requests, and documentation issues are tracked on GitHub Issues.