ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

ProFormSelect doesn't have a loading state #8465

Open Ladvace opened 5 months ago

Ladvace commented 5 months ago

Steps to reproduce

<ProFormSelect disabled={!merchandiseSector} loading={subMerchandiseSectors.isLoading} options={apidata.data?.map((item) => ({ value: item.id, label: item.description, }))} />

What is expected?

to have a loading state

What is actually happening?

not having a loading state

Environment Info
antd 5.17.4
React 18.2.0
System MacOs
Browser Chrome, Arc

PS: I figure out that it's missing a lot of things from the normal select, such as labelInValue and others, what's the purpose of ProFormSelect over a normal Select then? how can I use a select in a StepsForm.StepForm

fnoopv commented 5 months ago
<ProFormSelect
                label='Application Type'
                name='app_net_type'
                fieldProps={{
                  loading: true,
                  labelInValue: true,
                }}
              />