-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form:number): add prefix & unit properties (#189)
- Loading branch information
Showing
4 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: number | ||
subtitle: Input Number | ||
type: Widgets | ||
--- | ||
|
||
Enter a number within certain range with the mouse or keyboard. | ||
|
||
## API | ||
|
||
### schema | ||
|
||
| Property | Description | Type | Default | | ||
| -------------------- | --------------------------------------------------- | --------- | ------- | | ||
| `[minimum]` | min value | `number` | - | | ||
| `[exclusiveMinimum]` | Indicate whether minimum are exclusive of the value | `boolean` | - | | ||
| `[maximum]` | max value | `number` | - | | ||
| `[exclusiveMaximum]` | Indicate whether maximum are exclusive of the value | `boolean` | - | | ||
| `[multipleOf]` | Restricted to a multiple of a given number, | `number` | `1` | | ||
|
||
### ui | ||
|
||
| Property | Description | Type | Default | | ||
| ------------- | -------------------------------------------------------- | ---- | ------- | | ||
| `[prefix]` | Prefix, simplifying the use of `nzFormatter`, `nzParser` | - | - | | ||
| `[unit]` | Unit, simplifying the use of `nzFormatter`, `nzParser` | - | - | | ||
| `[formatter]` | Specifies the format of the value presented | - | - | | ||
| `[parser]` | Specifies the value extracted from nzFormatter | - | - | | ||
| `[precision]` | precision of input value | - | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters