fix: replace deprecated antd Space direction→orientation
This commit is contained in:
@@ -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="选择教师"
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user