feat(agent): allow clicking tag to quick-fill description

main
sp mac bookpro 2605 2026-05-24 19:36:56 +08:00
parent cf4791b34d
commit 0793d8549e
1 changed files with 11 additions and 0 deletions

View File

@ -838,12 +838,23 @@ export default function AgentEditor() {
{['客服助理', '内容创作', '数据分析', '私人教练'].map((label) => (
<span
key={label}
onClick={() => form.setFieldsValue({ description: label })}
style={{
padding: '6px 10px',
borderRadius: 999,
background: 'var(--color-surface-2)',
color: 'var(--color-text-secondary)',
fontSize: 12.5,
cursor: 'pointer',
transition: 'all 0.2s',
}}
onMouseEnter={(e) => {
e.currentTarget.style.background = 'var(--color-border)';
e.currentTarget.style.color = 'var(--color-text)';
}}
onMouseLeave={(e) => {
e.currentTarget.style.background = 'var(--color-surface-2)';
e.currentTarget.style.color = 'var(--color-text-secondary)';
}}
>
{label}