diff --git a/pc4mobx/hrmSalary/components/CustomSelect/index.js b/pc4mobx/hrmSalary/components/CustomSelect/index.js index ce218290..73bed78b 100644 --- a/pc4mobx/hrmSalary/components/CustomSelect/index.js +++ b/pc4mobx/hrmSalary/components/CustomSelect/index.js @@ -9,15 +9,60 @@ */ import React, { Component } from "react"; import { WeaLocaleProvider } from "ecCom"; +import classNames from "classnames"; +import { Button, Select } from "antd"; import "./index.less"; const getLabel = WeaLocaleProvider.getLabel; +const Option = Select.Option; class Index extends Component { - render() { - return ( -
+ constructor(props) { + super(props); + this.state = { + loading: false, data: [], activeKey: "", dropdownWidth: 200 + }; + this.selectedData = {}; + } + componentDidMount() { + const { dropdownWidth } = this.state; + const w = $(this.refs.customSelectMui).outerWidth(); + if (dropdownWidth < w) { + this.setState({ dropdownWidth: w }); + } + } + + render() { + const { data, dropdownWidth } = this.state; + const clsname = classNames({ + "mr12": true, + "wea-associative-search-mult": true + }); + return ( +
+ +
+
); }