@mxmweb/aichat 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,10 @@ import { default as React } from 'react';
2
2
  /**
3
3
  * 文件类型图标获取函数
4
4
  * 优先使用用户传入的 styles.theme.icons,如果没有配置则使用 zui-icon 的默认图标
5
- * 默认图标使用 Files/xxx_color 格式的新图标系统
5
+ * 支持两种形式的自定义图标:
6
+ * 1. React 组件形式:<Icon type="Files/pdf_color" size={18} />
7
+ * 2. 图片路径形式:字符串 URL
8
+ * 默认图标使用 Files/xxx_color 格式的新图标系统(zui-icon 新版本)
6
9
  * @param type 文件类型(如 'pdf', 'docx', 'jpg' 等)
7
10
  * @param styles 样式配置对象,可包含 theme.icons 自定义图标
8
11
  * @returns React.ReactNode 图标组件