-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputNumber: add step-strictly attribute #15050
Conversation
Deploy preview for element ready! Built with commit 3f0780d |
doc for |
@island205 review 一下, |
5638c34
to
6487ed0
Compare
examples/docs/en-US/input-number.md
Outdated
export default { | ||
data() { | ||
return { | ||
num3: 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以直接使用 num,这个文档的其他的地方也可以改一下。
examples/docs/en-US/input-number.md
Outdated
@@ -69,6 +69,26 @@ Allows you to define incremental steps. | |||
``` | |||
::: | |||
|
|||
### Multiple of Step | |||
|
|||
:::demo The `multiple-of-step` attribute accepts a `boolean`. if this attribute is `true`, input value can not be anything but multiple of step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about: "input value can only be multiples of step
."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better, thanks
7abce2e
to
9342eaf
Compare
命名为 |
9342eaf
to
3f0780d
Compare
add multiple-of-step attribute
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.