import React from 'react'; import { WeaInputSearch, WeaCheckbox } from 'ecCom' import { Row , Col, Modal, Dropdown, Menu, Button } from "antd" import SelectItemsWrapper from './selectItemsWrapper' export const items = [ { key: "1", title: "测试", checked: false }, { key: "2", title: "测试2", checked: true } ] export default class SelectItemModal extends React.Component { constructor(props) { super(props) this.state = { searchValue: "" } } handleShowChecked(value) { value = value == 1 ? true : false this.props.onShowChecked(value) } handleMenuClick(e) { if(e.key == "1") { //恢复默认设置 this.props.onRestoreDefault() } else if(e.key == "2") { this.props.onSetDefault() } else if(e.key == "3") { } } render(){ const menu = ( this.handleMenuClick(e)}> 恢复默认设置 设置默认设置 {/* 操作日志 */} ); return (
导入字段设置 { this.setState({searchValue: value}) }} onSearch={(value) => { this.props.onSearch(value) }} />
{this.props.children}
{this.handleShowChecked(value)}}/>
更多
) } }