From 5223edbcccfed84a33a706e5637ee65a61f377aa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 十二月 2021 18:00:39 +0800 Subject: [PATCH] 2021-12-22 --- src/components/normalform/modalform/mkSelect/index.jsx | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/normalform/modalform/mkSelect/index.jsx b/src/components/normalform/modalform/mkSelect/index.jsx index c5c6ad4..73c44d9 100644 --- a/src/components/normalform/modalform/mkSelect/index.jsx +++ b/src/components/normalform/modalform/mkSelect/index.jsx @@ -3,7 +3,6 @@ import { Select } from 'antd' import MKEmitter from '@/utils/events.js' -import './index.scss' class MKSelect extends Component { constructor(props) { @@ -116,8 +115,8 @@ onSelect={this.selectChange} onChange={(val) => val === undefined && this.selectChange('')} > - {options.map(option => - <Select.Option key={option.value || option.field} disabled={option.disabled} value={option.value || option.field}>{option.label || option.text}</Select.Option> + {options.map((option, i) => + <Select.Option key={i} disabled={option.disabled} value={option.value || option.field || ''}>{option.label || option.text}</Select.Option> )} </Select> ) -- Gitblit v1.8.0