feat: chat integration, tenant admin spec, backend chat service, miniprogram updates, DEMO moved to tmp, XCX-TEST removed, migrations & docs

This commit is contained in:
Neo
2026-03-20 09:02:10 +08:00
parent 3d2e5f8165
commit beb88d5bea
388 changed files with 6436 additions and 25458 deletions

View File

@@ -0,0 +1,38 @@
Component({
options: {
styleIsolation: 'shared',
},
/**
* ai-inline-icon — 行首 AI 小图标组件
*
* ## 用法
* 1. 在页面/组件的 .json 中注册:
* "ai-inline-icon": "/components/ai-inline-icon/ai-inline-icon"
*
* 2. 在 WXML 中使用:
* <!-- 固定配色 -->
* <ai-inline-icon color="indigo" />
*
* <!-- 页面随机配色(推荐) -->
* <ai-inline-icon color="{{aiColor}}" />
*
* ## color 可选值
* red | orange | yellow | blue | indigo默认| purple
*
* ## 样式来源
* 全局 app.wxss.ai-inline-icon + .ai-color-*
*
* ## 页面随机配色初始化(复制到 Page.onLoad
* const AI_COLORS = ['red','orange','yellow','blue','indigo','purple']
* const aiColor = AI_COLORS[Math.floor(Math.random() * AI_COLORS.length)]
* this.setData({ aiColor })
*/
properties: {
/** 颜色系列red | orange | yellow | blue | indigo | purple */
color: {
type: String,
value: 'indigo',
},
},
})