| | |
| | | pinyin.setOptions({ checkPolyphone: false, charCase: 1 }); |
| | | let name = this.props.label |
| | | let key = this.props.key |
| | | let data = this.data.map(item => { |
| | | let objitem = { disabled: false, ...item } |
| | | if (this.disabledData.length !== 0) { |
| | | this.disabledData.forEach(element => { |
| | | if (objitem[name] === element) objitem.disabled = true |
| | | }); |
| | | } |
| | | return objitem |
| | | }) |
| | | if(this.data){ |
| | | let data = this.data.map(item => { |
| | | let objitem = { disabled: false, ...item } |
| | | if (this.disabledData.length !== 0) { |
| | | this.disabledData.forEach(element => { |
| | | if (objitem[name] === element) objitem.disabled = true |
| | | }); |
| | | } |
| | | return objitem |
| | | }) |
| | | return |
| | | } |
| | | return data.map(item => { |
| | | let pinYin = pinyin.getFullChars(item[this.props.label]) |
| | | let renPing = pinyin.getCamelChars(item[this.props.label]) |