web-backset.cn/apps/web-main/src/view/Course/index.tsx

37 lines
895 B
TypeScript
Raw Normal View History

2023-02-27 15:41:19 +08:00
import "./index.less";
import Player from "../../components/Player";
import { useMount } from "../../hook";
2023-02-27 18:01:37 +08:00
import { Select, Message } from "@arco-design/web-react";
const Option = Select.Option;
const options = ["全部", "最新的"];
import BsCard from "../../components/Card";
2023-02-27 15:41:19 +08:00
export default function Index() {
useMount(() => {});
return (
<div className="container course">
2023-02-27 18:01:37 +08:00
<div>
<BsCard />
</div>
<Select
placeholder="排序规则"
bordered={false}
style={{ width: 154 }}
onChange={(value) =>
Message.info({
content: `You select ${value}.`,
showIcon: true,
})
}
>
{options.map((option, index) => (
<Option key={option} disabled={index === 3} value={option}>
{option}
</Option>
))}
</Select>
2023-02-27 15:41:19 +08:00
</div>
);
}