feat(agent): allow clicking tag to quick-fill description
parent
cf4791b34d
commit
0793d8549e
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue