UNPKG

1.52 kBJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/extends";
2import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3import _createClass from "@babel/runtime/helpers/createClass";
4import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6import _inherits from "@babel/runtime/helpers/inherits";
7import React, { Component } from 'react';
8import DropDownList from "@beisen-platform/dropdown-list";
9
10var Edit_Filters =
11/*#__PURE__*/
12function (_Component) {
13 _inherits(Edit_Filters, _Component);
14
15 function Edit_Filters() {
16 _classCallCheck(this, Edit_Filters);
17
18 return _possibleConstructorReturn(this, _getPrototypeOf(Edit_Filters).apply(this, arguments));
19 }
20
21 _createClass(Edit_Filters, [{
22 key: "render",
23 value: function render() {
24 var _this$props = this.props,
25 isMinWidth = _this$props.isMinWidth,
26 status = _this$props.status,
27 DropDownData = _this$props.DropDownData,
28 showDropDown = _this$props.showDropDown;
29 return React.createElement("div", null, status == 'edit' && showDropDown == true ? React.createElement("div", {
30 ref: "autoTreeDropdown",
31 className: isMinWidth ? 'dropdownMin' : "dropDownList"
32 }, React.createElement(DropDownList, _extends({}, DropDownData, {
33 onChange: this.props.changeFilter
34 }))) : '');
35 }
36 }]);
37
38 return Edit_Filters;
39}(Component);
40
41export { Edit_Filters as default };
\No newline at end of file