/* * @Author: lusx * @Date: 2020-04-22 11:11:59 * @Last Modified by: lusx * @Last Modified time: 2020-04-22 11:35:08 */ import { observer } from "mobx-react"; import { WeaTab, WeaLocaleProvider } from 'ecCom'; import { Button } from 'antd'; import { Condition } from '../list/listCondition'; const getLabel = WeaLocaleProvider.getLabel; @observer class TabComponent extends React.Component { render() { const { contentStore, account } = this.props; const { showSearchAd, tasksubform } = contentStore; const formParams = tasksubform.getFormParams() || {}; return ( { contentStore.setShowSearchAd(bool) }} hideSearchAd={() => contentStore.setShowSearchAd(false)} searchsAd={
} showSearchAd={showSearchAd} onSearch={v => { contentStore.getTaskSubList() }} onSearchChange={v => { contentStore.setFormFields({ taskname: { value: v } }) }} /> ) } getAdButtons = () => { const { contentStore } = this.props; const { getTaskSubList, setShowSearchAd, clearFormFields } = contentStore; return [ (), (), () ]; } } export { TabComponent }