Files
PlayEdu/playedu-admin/src/compenents/select-range/select-deps-sub/index.tsx
2024-06-05 16:15:38 +08:00

34 lines
705 B
TypeScript

import { useState } from "react";
import { TreeDeps } from "../../tree-deps";
interface PropsInterface {
defaultkeys: any[];
open: boolean;
onSelected: (arr: any[], videos: any[]) => void;
}
export const SelectDepsSub = (props: PropsInterface) => {
const [init, setInit] = useState(true);
return (
<div
style={{
width: 528,
height: 458,
overflowY: "auto",
overflowX: "hidden",
}}
>
<TreeDeps
selected={props.defaultkeys}
refresh={props.open}
showNum={true}
type=""
onUpdate={(keys: any, nodes: any) => {
props.onSelected(keys, nodes);
}}
></TreeDeps>
</div>
);
};