mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 06:02:48 +08:00
选择视频、课件组件重构
This commit is contained in:
parent
2fa7a1dd4e
commit
e95343fe0a
@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Row, Col, Empty, Table, Pagination } from "antd";
|
import { Row, Col, Empty, Table } from "antd";
|
||||||
import type { ColumnsType } from "antd/es/table";
|
import type { ColumnsType } from "antd/es/table";
|
||||||
import { resource } from "../../api";
|
import { resource } from "../../api";
|
||||||
import styles from "./index.module.less";
|
import styles from "./index.module.less";
|
||||||
@ -192,27 +192,6 @@ export const UploadCoursewareSub = (props: PropsInterface) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Row
|
|
||||||
style={{
|
|
||||||
paddingLeft: 10,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{videoList.length > 0 && total > 10 && (
|
|
||||||
<Col
|
|
||||||
span={24}
|
|
||||||
style={{ display: "flex", flexDirection: "row-reverse" }}
|
|
||||||
>
|
|
||||||
<Pagination
|
|
||||||
onChange={(currentPage, currentSize) => {
|
|
||||||
setPage(currentPage);
|
|
||||||
setSize(currentSize);
|
|
||||||
}}
|
|
||||||
defaultCurrent={page}
|
|
||||||
total={total}
|
|
||||||
/>
|
|
||||||
</Col>
|
|
||||||
)}
|
|
||||||
</Row>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</>
|
</>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Row, Col, Empty, Table, Pagination } from "antd";
|
import { Row, Col, Empty, Table } from "antd";
|
||||||
import type { ColumnsType } from "antd/es/table";
|
import type { ColumnsType } from "antd/es/table";
|
||||||
import { resource } from "../../api";
|
import { resource } from "../../api";
|
||||||
import styles from "./index.module.less";
|
import styles from "./index.module.less";
|
||||||
@ -192,27 +192,6 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Row
|
|
||||||
style={{
|
|
||||||
paddingLeft: 10,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{videoList.length > 0 && total > 10 && (
|
|
||||||
<Col
|
|
||||||
span={24}
|
|
||||||
style={{ display: "flex", flexDirection: "row-reverse" }}
|
|
||||||
>
|
|
||||||
<Pagination
|
|
||||||
onChange={(currentPage, currentSize) => {
|
|
||||||
setPage(currentPage);
|
|
||||||
setSize(currentSize);
|
|
||||||
}}
|
|
||||||
defaultCurrent={page}
|
|
||||||
total={total}
|
|
||||||
/>
|
|
||||||
</Col>
|
|
||||||
)}
|
|
||||||
</Row>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</>
|
</>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user