建议修改:使用循环的 index 变量作为 key 是一种反优化
编译小程序时提示: 编译 组件文件 node_modules/mounted/src/components/PickerView/index.tsx 建议修改:使用循环的 index 变量作为 key 是一种反优化。参考:https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
189 | }
190 | return (<PickerView value={fullSelectedIndexes} className={m-picker-view ${disabled && 'm-picker-view_disabled'} ${className}} style={styles.view} indicatorStyle={height:${styles.indicator.height}} onPickStart={this.props.onPickStart} onPickEnd={this.props.onPickEnd} onChange={this.handleChange}>
191 | {normalizedData.map((colData, colIndex) => (<Block key={colIndex}> | ^^^^^^^^ 192 | <PickerViewColumn key={
column-${colIndex}}> 193 | {colData.map((item, itemIndex) => (<View key={itemIndex} className='m-picker-view__item'> 194 | <View className='m-picker-view__item__label'>
这个不用管哈 不影响