ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Slider prop `step` does not include `null` as possible type in TS

Open Owen-Tsai opened this issue 1 year ago β€’ 1 comments
trafficstars

  • [x] I have searched the issues of this repository and believe (hopefully) that this is not a duplicate.

Version

4.2.3

Environment

Vue 3.4.29, AntD 4.2.3

Reproduction link

Not applicable

Steps to reproduce

<ASlider
  :step="null"
  ^^^^^ 不能将 null εˆ†ι…η»™ number | undefined
/>

What is expected?

null should be included in step prop types.

What is actually happening?

TS server throws an error when you trying to assign null to step.

Owen-Tsai avatar Jun 20 '24 04:06 Owen-Tsai

The problem will be viewed

webvs2 avatar Jun 21 '24 03:06 webvs2

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 21 '24 02:08 github-actions[bot]