-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(carousel): add arrow prop (#451)
* feat:n-input Support hidden password * feat(form): support require-mark-placement(#171) * Revert "feat(form): support require-mark-placement(#171)" This reverts commit 0627777. * Revert "feat:n-input Support hidden password" This reverts commit ea64917. * WIP * feat(carousel): add arrow prop * feat(carousel): fix code * feat(carousel): fix code and add test * feat(carousel): fix style * feat(carousel): add test
- Loading branch information
Showing
9 changed files
with
219 additions
and
0 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
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,30 @@ | ||
# Show Arrow Button | ||
|
||
```html | ||
<n-carousel show-arrow> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623372884.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623177220.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623152423.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
</n-carousel> | ||
``` | ||
|
||
```css | ||
.carousel-img { | ||
width: 100%; | ||
height: 240px; | ||
object-fit: cover; | ||
} | ||
``` |
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,30 @@ | ||
# 显示箭头按钮 | ||
|
||
```html | ||
<n-carousel show-arrow> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/fav/1623979004.jpg!/fw/600/quality/77/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623372884.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623177220.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
<img | ||
class="carousel-img" | ||
src="https://s.anw.red/news/1623152423.jpg!/both/800x450/quality/78/progressive/true/ignore-error/true" | ||
/> | ||
</n-carousel> | ||
``` | ||
|
||
```css | ||
.carousel-img { | ||
width: 100%; | ||
height: 240px; | ||
object-fit: cover; | ||
} | ||
``` |
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