Commit cd5fb7d6 authored by chenshouchao's avatar chenshouchao

test: selectTest

parent 118f7da8
...@@ -5,6 +5,7 @@ import classnames from "classnames"; ...@@ -5,6 +5,7 @@ import classnames from "classnames";
import { useState } from "react"; import { useState } from "react";
import FileSelect from "@/components/FileSelect"; import FileSelect from "@/components/FileSelect";
import moment from "moment"; import moment from "moment";
// import MySelect, { optionsTransform } from "@/components/mui/MySelect";
import fileSelectIcon from "@/assets/project/fileSelect.svg"; import fileSelectIcon from "@/assets/project/fileSelect.svg";
type ConfigFormProps = { type ConfigFormProps = {
...@@ -38,6 +39,27 @@ const ConfigForm = (props: ConfigFormProps) => { ...@@ -38,6 +39,27 @@ const ConfigForm = (props: ConfigFormProps) => {
setName(e.target.value); setName(e.target.value);
}; };
// const options = [
// {
// key: '1aaaaa',
// value: 'a'
// },
// {
// key: 'bbbbbb',
// value: 'b'
// },
// {
// key: 'cccccc',
// value: 'c'
// },
// {
// key: 'dddddd',
// value: 'd'
// },
// ]
// const [selectValue, setSelectValue] = useState('b')
return ( return (
<div className={styles.formBox}> <div className={styles.formBox}>
<div className={styles.templateDescBox}> <div className={styles.templateDescBox}>
...@@ -99,6 +121,7 @@ const ConfigForm = (props: ConfigFormProps) => { ...@@ -99,6 +121,7 @@ const ConfigForm = (props: ConfigFormProps) => {
</div> </div>
</div> </div>
</div> </div>
{/* <MySelect value={selectValue}></MySelect> */}
<FileSelect <FileSelect
onClose={handleFileSelectOnClose} onClose={handleFileSelectOnClose}
open={fileSelectOpen} open={fileSelectOpen}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment