techSelect.jsx 467 B

12345678910111213141516171819
  1. import React from 'react';
  2. import { Cascader } from 'antd';
  3. import { techList } from '../../DicTechList.js';
  4. const TechSelect = React.createClass({
  5. onChange(value, s) {
  6. if (s.length > 0) {
  7. this.props.techzone(s[0].label, s[1].label, s[2].label);
  8. }
  9. },
  10. render() {
  11. return (
  12. <Cascader placeholder="请选择领域" options={techList} onChange={this.onChange} />
  13. )
  14. }
  15. });
  16. export default TechSelect;