add selector

dev_new_shixunsrepository
tangjiang 5 years ago
parent 7f1dfe62e6
commit 9a97db2893

@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-12-30 13:51:19
* @LastEditors : tangjiang
* @LastEditTime : 2019-12-30 14:20:50
* @LastEditTime : 2019-12-30 14:28:17
*/
import './index.scss';
import React, { useState } from 'react';
@ -23,13 +23,22 @@ function KnowLedge (props) {
const [selectValue, setSelectValue] = useState(values);
// 渲染下拉选项
const renderOptions = () => {
}
const handleSelectChange = (value) => {
console.log(value);
}
// 渲染下拉列表
const renderSelect = (options, values) => {
return (
<Select
placeholder="请选择"
style={{ width: '100%' }}
onChange={handleSelectChange}
>
{renderOptions(options)}
</Select>
)
}

Loading…
Cancel
Save