-
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 dot-position prop (#366)
* 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. * feat:(n-carousel): add dotPosition prop * feat:(n-carousel): add test and fix code * feat:(n-carousel): fix code * feat:(n-carousel): fix code * feat:(n-carousel): fix code and remove console
- Loading branch information
Showing
9 changed files
with
207 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Set Dot Placement | ||
|
||
Set `dot-placement` to change the indication point position. | ||
|
||
```html | ||
<n-carousel dot-placement="left" style="height: 240px;" autoplay> | ||
<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: 100%; | ||
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,32 @@ | ||
# 更改指示点位置 | ||
|
||
设定 `dot-placement` 来更改指示点位置。 | ||
|
||
```html | ||
<n-carousel dot-placement="left" style="height: 240px;" autoplay> | ||
<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: 100%; | ||
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
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