XinYueXiao changed the title 🐛[BUG] 🐛[BUG]使用ProFormSelect 时,当labelInValue-true, 多选时选中查询结果label ,和直接选中返回的label不一致 Sep 6, 2023 wk544863858 commented May 8, 2024 同样遇到该问题,有解决掉了吗? @XinYueXiao wk544863858 commented May 11, 2024 • edited 同样遇...
🧐 问题描述 根据 Ant Design 的 Select 组件,有 maxCount 属性限制最大多选数量,但是在 ProFormSelect 中无法使用该属性。 💻 示例代码 <ProFormSelect name="purifierBrand" colProps={{ md: 12, xl: 4 }} label="品牌" request={getFilter.run} mode="multiple" de
上述代码中,通过设置mode属性为multiple,可以实现多选功能。同时,使用Select.Option组件定义了三个选择项:Reading、Music和Sports。 # 4.自定义样式 proformselect组件提供了多种自定义样式的方法,可以根据需求进行样式调整。下面是一些常见的自定义样式示例: 4.1修改宽度 可以通过设置width属性来调整组件的宽度,下面的示例...
ProFormDependency 和 ProFormSelect 组合使用时,不是每次修改依赖值都会触发ProFormSelect 的request远程请求函数。 代码: <ProFormDependency name={['attendance_org_id']}> {({ attendance_org_id }) => { // 1处 return ( <ProFormSelect debounceTime={300} name="dayoff_id" showSearch label='标题...
// 多选情况且用户有选择 return value.map((item, index) => { const optionItem = option?.[index]; const optionItem = option?.[index] as DefaultOptionType; const dataItem = optionItem?.['data-item'] || {}; return { ...dataItem, @@ -182,17 +182,19 @@ const SearchSelect = <T...