---
title: "Ext.tip.QuickTip"
description: "xtype 为 quicktip 的 Ext JS 原生组件参考。"
---

> Documentation Index
> Fetch the complete documentation index at: https://ag.879818327.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Ext.tip.QuickTip

源码定义：`ext-all-debug.js:59326`。分类：基础组件与提示。

## 创建示例

```javascript
var component = Ext.create("Ext.tip.QuickTip", {
  xtype: "quicktip",
  interceptTitles: false,
  shrinkWrapDock: true,
  tagConfig: {,
  title: '&#160;',
  renderTo: Ext.getBody()
});
```

## 属性

| 属性 | 类型 | 默认值 | 说明 | 配置示例 |
| --- | --- | --- | --- | --- |
| `interceptTitles` | `Boolean` | `false` | 控制是否启用 `interceptTitles` 行为。 | `interceptTitles: false` |
| `shrinkWrapDock` | `Boolean` | `true` | 控制是否启用 `shrinkWrapDock` 行为。 | `shrinkWrapDock: true` |
| `tagConfig` | `Object` | `{` | 配置组件的 `tagConfig` 选项。 | `tagConfig: {` |
| `title` | `String` | `'&#160;'` | 面板或窗口显示的标题。 | `title: '&#160;'` |

## 方法

| 方法 | 参数 | 说明 | 调用示例 |
| --- | --- | --- | --- |
| `initComponent` | `` | 初始化组件及其子项。 执行时会保留父类默认行为、更新 `target`、`targets` 状态。源码涉及 `callParent()`。 | `component.initComponent()` |
| `register` | `config` | 注册当前组件。 | `component.register(...)` |
| `unregister` | `el` | 注销当前组件。 | `component.unregister(...)` |
| `cancelShow` | `el` | 取消 `show`。源码涉及 `isVisible()`、`hide()`、`clearTimer()`。 | `component.cancelShow(...)` |
| `getTipCfg` | `e` | 读取并返回 `tipCfg`。 | `component.getTipCfg(...)` |
| `onTargetOver` | `e` | 处理 `targetOver` 回调。 执行时会更新 `targetXY`、`activeTarget` 状态。源码涉及 `targetTextEmpty()`、`onShowVeto()`、`clearTimer()`、`show()`。 | `component.onTargetOver(...)` |
| `onTargetOut` | `e` | 处理 `targetOut` 回调。 执行时会更新 `hideDelay` 状态。源码涉及 `getTipCfg()`、`clearTimer()`、`delayHide()`。 | `component.onTargetOut(...)` |
| `targetTextEmpty` | `` | 处理 `targetTextEmpty` 操作。 | `component.targetTextEmpty()` |
| `show` | `` | 显示组件。 执行时会保留父类默认行为。源码涉及 `targetTextEmpty()`、`onShowVeto()`、`callParent()`。 | `component.show()` |
| `showAt` | `xy` | 显示 `at`。 执行时会保留父类默认行为、刷新界面或布局、更新 `activeTarget`、`autoHide` 状态。源码涉及 `render()`、`suspendLayouts()`、`setTitle()`、`update()`。 | `component.showAt(...)` |
| `hide` | `` | 隐藏组件。 执行时会保留父类默认行为。源码涉及 `callParent()`。 | `component.hide()` |

## 事件

源码中未找到该组件自身注册的事件；可监听继承事件。

Source: https://ag.879818327.xyz/ext/basic/tip-quicktip/index.mdx
