-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from FriedRiceNoodles/docs/dropdown
docs(dropdown): added html source code
- Loading branch information
Showing
9 changed files
with
139 additions
and
7 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
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,25 @@ | ||
<b-dropdown margin="15" style="margin-right: 10px;"> | ||
<b-button>Hover me!</b-button> | ||
<div slot="drop" style="width: 380px; padding: 10px; box-sizing: border-box; background: #ccc;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</div> | ||
<div style="position: absolute; width: 12px; height: 12px; background-color: #ccc; z-index: -1;" class="arrow" | ||
slot="arrow"></div> | ||
</b-dropdown> | ||
|
||
<b-dropdown margin="15" placement="topRight"> | ||
<b-button>topRight</b-button> | ||
<div slot="drop" style="width: 600px; background: #ccc;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</div> | ||
<div style="position: absolute; width: 12px; height: 12px; background-color: #ccc; z-index: -1;" class="arrow" | ||
slot="arrow"></div> | ||
</b-dropdown> |
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,13 @@ | ||
<b-dropdown> | ||
<b-button>Hover me!</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> |
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,85 @@ | ||
<div style="display: flex; gap: 10px; flex-wrap: wrap;"> | ||
<b-dropdown placement="bottomLeft"> | ||
<b-button>bottomLeft(default)</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
|
||
<b-dropdown placement="bottom"> | ||
<b-button>bottom</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
|
||
<b-dropdown placement="bottomRight"> | ||
<b-button>bottomRight</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
|
||
<b-dropdown placement="topLeft"> | ||
<b-button>topLeft</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
|
||
<b-dropdown placement="top"> | ||
<b-button>top</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
|
||
<b-dropdown placement="topRight"> | ||
<b-button>topRight</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> | ||
</div> |
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,13 @@ | ||
<b-dropdown trigger-action="click"> | ||
<b-button>Click me!</b-button> | ||
<b-menu slot="drop" style="max-width: 200px;"> | ||
<b-menu-item>Option 1</b-menu-item> | ||
<b-menu-item>Option 2</b-menu-item> | ||
<b-menu-item>Option 3</b-menu-item> | ||
<b-menu-item>Option 4</b-menu-item> | ||
<b-menu-item>Option 5</b-menu-item> | ||
<b-divider></b-divider> | ||
<b-menu-item>Option A</b-menu-item> | ||
<b-menu-item>Option B</b-menu-item> | ||
</b-menu> | ||
</b-dropdown> |