Screening筛选控件对应的筛选条件没有渲染

  • UI 组件版本:0.8.78

  • 运行环境:自主搭建

  • 问题描述:
    Screening筛选控件对应的筛选条件没有渲染,ScreeningItem的optionRenderer不会进行页面渲染,optionRenderer对应的record也不打印
    页面代码:
    <ScreeningItem
    name=“materialClassList”
    optionRenderer={({record}) =>{
    console.log(record);
    return record.data.materialClassCode;
    }}
    />
    <ScreeningItem
    name=“factoryList”
    optionRenderer={({record}) =>{
    console.log(record);
    return record.data.factoryName;
    }}
    />
    <ScreeningItem
    name=“warehouseList”
    optionRenderer={({record}) =>{
    console.log(record);
    return record.data.warehouseName;
    }}
    />

    对应的DS文件:import { SpotService } from ‘…/…/…/utils/config’;

const spotService = SpotService.SpotOrderService;

function handleDataSetChange({ record}) {
console.log(record);
}

const FactoryDS = () => ({
autoCreate: true,
autoQuery: true,
selection: false,
data: [{ materialClassList: [‘钢材’, ‘水泥’] }],
fields: [
{
name: ‘materialClassList’,
type: ‘object’,
label: ‘分类’,
},
{
name: ‘factoryList’,
type: ‘object’,
label: ‘厂家’,
},
{
name: ‘warehouseList’,
type: ‘object’,
label: ‘交货地’,
},
],
transport: {
read: () => {
return {
url: ${spotService}/v1/homepage-spots/homepage-all-conditions,
method: ‘GET’,
};
},
},
events: {
update: handleDataSetChange,
},
});

export default FactoryDS;
DS的值: