customRender: (value, row, index) => {
let _this = this;
if(row.editable){
let option = _this.taskTree.map((item) => (
<a-select-option key={item.key} value={item.key}>
{item.title}
</a-select-option>
))
let op = <a-select style="width: -webkit-fill-available" label-in-value defaultValue={row.taskId}
onChange={(value) => _this.handleSelectChange(value, row)} show-search
filterOption={(inputValue, option) =>
option.componentOptions.children[0].text.toLowerCase().indexOf(inputValue.toLowerCase()) >= 0
}>
{option}
</a-select>
return op;
}
}
antdesign a-table customRender返回一个自定义内容,比如:a-select
最新推荐文章于 2024-04-29 23:47:34 发布