feat: 模型 vision 能力检测,不支持时禁用图片上传

- model-bar.js: 新增 setVisionAvailable() 控制图片按钮状态
- model-bar.js: 导出 isVisionAvailable() 供其他组件查询
- input-area.js: 点击图片按钮时校验 vision 能力
- input-area.js: 发送消息时二次校验,防止绕过
- style.css: .icon-btn.disabled 灰显不可点击样式
This commit is contained in:
Metona
2026-04-04 21:30:47 +08:00
parent 35a3b5815f
commit d82455b079
3 changed files with 52 additions and 3 deletions
+9
View File
@@ -226,6 +226,15 @@ body::before {
box-shadow: 0 4px 18px rgba(0, 245, 212, 0.4);
}
.icon-btn.disabled,
.icon-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
transform: none;
box-shadow: none;
pointer-events: none;
}
.icon-btn:active {
transform: scale(0.95);
}