描述:在表格筛选得searchForm中,若有一个下拉框的选中值为1,后面的输入框才显示,

否则不显示

 

//在xx.data.ts中
export const searchFormSchema: FormSchema[] = [
 {
    label: '编号',
    field: 'orderNo',
    component: 'Input'
  },
 {
    label: '下拉框,
    field: 'curSel',
    component: 'JDictSelectTag',
    componentProps:{
      dictCode:'selectcCode',
      showChooseOption:false,
    }
  },
  {
    label: 'Create',
    field: 'create',
    component: 'Input',
    //只有下拉框选中了1才会显示
    ifShow: ({ values }) => {
        return values.curSel== '1';
      },
  },
];

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐