-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add slots for input-number box value manipulation icons
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 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
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
32 changes: 32 additions & 0 deletions
32
packages/web-vue/components/input-number/__demo__/step-icon.md
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,32 @@ | ||
```yaml | ||
title: | ||
zh-CN: 自定义图标 | ||
en-US: Step Icon | ||
``` | ||
## zh-CN | ||
通过指定 `plus` 和 `minus` 插槽来修改数值增减操作的图标。 | ||
|
||
--- | ||
|
||
## en-US | ||
|
||
To Add the icons for the increment and decrement operations by specifying the `plus` and `minus` slots. | ||
|
||
--- | ||
|
||
```vue | ||
<template> | ||
<a-space direction="vertical" size="large"> | ||
<a-input-number :style="{width:'320px'}" placeholder="Please enter something" allow-clear> | ||
<template #plus> | ||
<icon-plus /> | ||
</template> | ||
<template #minus> | ||
<icon-minus /> | ||
</template> | ||
</a-input-number> | ||
</a-space> | ||
</template> | ||
``` |
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