> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 文档

文档组件是使用 [TinyMCE](https://github.com/tinymce/tinymce) 库进行编辑和展示在线富文本的组件.

在故事编辑界面, 点击工具栏中插入区域更多里的"**文档**", 在当前页面中创建一个文档(富文本)组件. 选中此组件后在右侧属性编辑栏中对其设置进行编辑:

## 数据配置

配置**数据源**和**模型**, 用于文档内插入指标的结果计算.

在文档中以格式 `{{[#INDICATOR_CODE]}}` 插入配置的模型里的指标, 在预览或者展示时系统会自动计算相应的数据结果显示在相应位置.

## 样式

样式配置里包含通用的组件样式设置.

## 示例

<iframe src="https://app.xpertai.cn/public/story/point/3869d5fb-6ecb-4981-998b-60331a62ee0b" width="100%" height="500px" frameBorder="0" scrolling="no" allowFullScreen />
