选择视频、课件组件重构

This commit is contained in:
unknown 2023-07-31 11:06:45 +08:00
parent 2fa7a1dd4e
commit e95343fe0a
2 changed files with 2 additions and 44 deletions

View File

@ -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>
</> </>

View File

@ -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>
</> </>