fix: replace deprecated antd Space direction→orientation

This commit is contained in:
2026-07-05 21:59:00 +08:00
parent 4520737196
commit 1cb2137f61
2 changed files with 2 additions and 2 deletions

View File

@@ -461,7 +461,7 @@ const ClassDetailPage: React.FC = () => {
onOk={handleAddTeacher}
onCancel={() => setTeacherModalOpen(false)}
>
<Space direction="vertical" style={{ width: '100%' }}>
<Space orientation="vertical" style={{ width: '100%' }}>
<Select
style={{ width: '100%' }}
placeholder="选择教师"

View File

@@ -74,7 +74,7 @@ const PermissionsPage: React.FC = () => {
onChange={(e) => !e.target.value && setSearch('')}
/>
</div>
<Space direction="vertical" style={{ width: '100%' }} size={16}>
<Space orientation="vertical" style={{ width: '100%' }} size={16}>
{filteredTree.map((group) => (
<Card
key={group.group}