oenapi doc (#493)

* mongo init

* perf: mongo connect

* docs

* fix: select file

* format

* remove seed

* doc format

* doc

* perf: tts model type

* doc

* upload time

* doc

* doc

* doc
This commit is contained in:
Archer
2023-11-20 13:43:33 +08:00
committed by GitHub
parent 0df5152202
commit b05dd0fde1
37 changed files with 883 additions and 663 deletions

View File

@@ -27,7 +27,6 @@ const MySelect = (
selectRef: any
) => {
const ref = useRef<HTMLButtonElement>(null);
const SelectRef = useRef<HTMLDivElement>(null);
const menuItemStyles = {
borderRadius: 'sm',
py: 2,
@@ -40,13 +39,6 @@ const MySelect = (
const { isOpen, onOpen, onClose } = useDisclosure();
const selectItem = useMemo(() => list.find((item) => item.value === value), [list, value]);
useOutsideClick({
ref: SelectRef,
handler: () => {
onClose();
}
});
return (
<Menu
autoSelect={false}
@@ -56,13 +48,6 @@ const MySelect = (
strategy={'fixed'}
matchWidth
>
{/* <Box
ref={SelectRef}
position={'relative'}
onClick={() => {
isOpen ? onClose() : onOpen();
}}
> */}
<MenuButton
as={Button}
ref={ref}