分离左侧快速操作面板

This commit is contained in:
xianyi
2025-12-16 10:12:28 +08:00
parent 5b8e74c072
commit bf864de805
4 changed files with 162 additions and 81 deletions

View File

@@ -0,0 +1,35 @@
interface NoteModalProps {
noteText: string;
onNoteChange: (v: string) => void;
onClose: () => void;
}
export const NoteModal = ({ noteText, onNoteChange, onClose }: NoteModalProps) => {
return (
<div className='fixed inset-0 z-40 flex items-center justify-center bg-black/30'>
<div className='w-[560px] max-w-[95vw] bg-white rounded-3xl shadow-xl overflow-hidden text-sm'>
<div className='px-4 py-3 border-b flex items-center justify-between'>
<div className='font-semibold'></div>
<button className='text-xs text-gray-500' onClick={onClose}>
</button>
</div>
<div className='px-4 py-4 bg-gray-50/60'>
<div className='space-y-3 text-xs text-gray-700'>
<div></div>
<textarea
className='w-full rounded-2xl border px-3 py-2 text-xs outline-none focus:ring-2 focus:ring-gray-200 min-h-[96px]'
placeholder='例如:客户有既往疾病史、沟通偏好、特殊关怀需求等,可在此记录。'
value={noteText}
onChange={(e) => onNoteChange(e.target.value)}
/>
<div className='text-right text-[11px] text-gray-500'>
</div>
</div>
</div>
</div>
</div>
);
};