---
order: 4
navTitle: capabilities.json
---
# capabilities.json

`capabilities.json`文件定义了组件扩展的交互、查询和属性配置信息。

```json
{
	"supportActions": true|false,
	"actionTriggerTypes": ["..."],
    "dataViewMappings": {...},
	"properties": {...},
    "ppteditor": {...}
}
```

## 配置选项

#### supportActions

是否支持添加交互，默认支持，如果不支持则属性栏面板不会显示交互标签。如菜单的分割线不支持添加交互。

#### actionTriggerTypes

组件支持的交互触发类型。包括：

- click - 单击
- dblclick - 双击
- contextmenu - 右键
- hover - 鼠标移入
- input - 输入。和change不同，input是用户输入后不需要失去焦点就会触发
- change - 内容变化
- beforechange - 内容变化前
- focus - 聚焦
- mouseover - 鼠标移入
- mouseout - 鼠标移出
- enter - 回车
- didloadfile - 页面加载完成
- beforeleave - 离开页面前

#### dataViewMappings

参考[数据映射配置](component-datamapping.md)。

#### properties

参考[组件属性配置](../../references/component-properties.md)。

#### ppteditor

参考[设计器属性面板配置](../../references/component-ppteditor.md)。
