/* * Author: 黎永顺 * Description: * Date: 2022-05-19 15:18:09 * LastEditTime: 2022-06-29 10:06:13 */ import React from "react"; import { WeaCheckbox, WeaDialog, WeaInputSearch, WeaLocaleProvider } from "ecCom"; import { Button } from "antd"; import "./index.less"; const getLabel = WeaLocaleProvider.getLabel; export default class SelectItemModal extends React.Component { constructor(props) { super(props); this.state = { searchValue: "" }; } componentWillReceiveProps(nextProps, nextContext) { if ( nextProps.visible !== this.props.visible && !nextProps.visible ) this.setState({ searchValue: "" }); } render() { const { searchValue } = this.state; const { title, onSearchItemSet, onShowOnlyChecked, children, onMoreOpts, onSave, ...extra } = this.props; const btns = []; const moreBtn = { datas: [ { key: "recovery", content: getLabel(385270, "恢复默认设置"), icon: , onClick: key => onMoreOpts(key) }, { key: "setting", content: getLabel(543377, "设为默认设置"), icon: , onClick: key => onMoreOpts(key) } ] }; const titleComp =