1 | import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
2 | import _createClass from "@babel/runtime/helpers/createClass";
|
3 | import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
4 | import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
5 | import _inherits from "@babel/runtime/helpers/inherits";
|
6 | import React, { Component } from 'react';
|
7 | import { getBtnData, getSelectedData } from './constant';
|
8 | import SelectedComponent from '@beisen-platform/selected-component';
|
9 | import BaseButton from '@beisen-platform/base-button';
|
10 |
|
11 | var Search_Filters =
|
12 |
|
13 | function (_Component) {
|
14 | _inherits(Search_Filters, _Component);
|
15 |
|
16 | function Search_Filters() {
|
17 | _classCallCheck(this, Search_Filters);
|
18 |
|
19 | return _possibleConstructorReturn(this, _getPrototypeOf(Search_Filters).apply(this, arguments));
|
20 | }
|
21 |
|
22 | _createClass(Search_Filters, [{
|
23 | key: "render",
|
24 | value: function render() {
|
25 | var _this$props = this.props,
|
26 | isSearchAutoTreeEdit = _this$props.isSearchAutoTreeEdit,
|
27 | DropDownData = _this$props.DropDownData,
|
28 | showDropDown = _this$props.showDropDown,
|
29 | _this$props$isPanelSh = _this$props.isPanelShow,
|
30 | isPanelShow = _this$props$isPanelSh === void 0 ? true : _this$props$isPanelSh;
|
31 |
|
32 | if (isSearchAutoTreeEdit && showDropDown) {
|
33 | return React.createElement("div", {
|
34 | className: "auto-tree__panel-bottom ".concat(isPanelShow ? 'border-top-1px' : '')
|
35 | }, React.createElement("div", {
|
36 | className: "selectedComponent"
|
37 | }, React.createElement(SelectedComponent, getSelectedData(this.props.changeFilter, DropDownData)), React.createElement("div", {
|
38 | className: "submitBtn"
|
39 | }, React.createElement(BaseButton, getBtnData("default", "small", "确定", this.props.handelSubmit)))));
|
40 | } else {
|
41 | return null;
|
42 | }
|
43 | }
|
44 | }]);
|
45 |
|
46 | return Search_Filters;
|
47 | }(Component);
|
48 |
|
49 | export { Search_Filters as default }; |
\ | No newline at end of file |