-
Notifications
You must be signed in to change notification settings - Fork 2
#58 - Add UISelect component #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5539dd8
#58 - Add Select component
nandi95 9a47222
#58 - wip Testing component
nandi95 de8da93
#58 wip: testing
nandi95 2615628
Merge branch 'main' into feature/58
nandi95 0847a3c
#58 - fixed select
nandi95 65c9e5f
#58 - Added tests
nandi95 cf81098
#58 -fixed autofocus
nandi95 bd84848
#58 - accessibility fixes, text/lint fixes
nandi95 a85eda0
#58 - Fixed esc keydown action
nandi95 f5e5f67
#58 - removed unused import
nandi95 6a949ee
#58 - PR fixes
nandi95 b16a8d1
Merge branch 'main' into feature/58
nandi95 2665d17
Merge branch 'main' into feature/58
nandi95 e3c85e2
#58 - added arrow navigation
nandi95 b0df9cf
#58 - fixed test
nandi95 c3fc569
#58 - Added missing test
nandi95 232035c
Merge branch 'main' into feature/58
nandi95 5b3dfb7
#58 - bump dependencies
nandi95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| # vueish | ||
| Vue UI Library | ||
|
|
||
| Install: | ||
| - add `style="position: relative"` to the body tag |
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,58 @@ | ||
| <template> | ||
| <UISelect v-model="selected" | ||
| :options="options" | ||
| placeholder="Please select..." /> | ||
|
|
||
| <UISelect v-model="multiSelected" | ||
| multi | ||
| class="my-12" | ||
| no-clear | ||
| :options="options" | ||
| placeholder="Please select..." /> | ||
|
|
||
| <UISelect v-model="multiSelected" | ||
| multi | ||
| disabled | ||
| :options="options" | ||
| placeholder="Please select..." /> | ||
| </template> | ||
|
|
||
| <script lang="ts"> | ||
| import { defineComponent, ref } from 'vue'; | ||
| import UISelect from '@components/select/UISelect.vue'; | ||
|
|
||
| const options = [ | ||
| { | ||
| id: 1, | ||
| name: 'Bruce Banner' | ||
| }, | ||
| { | ||
| id: 2, | ||
| name: 'Bruce Wayne' | ||
| }, | ||
| { | ||
| id: 3, | ||
| name: 'Bruce Lee' | ||
| }, | ||
| { | ||
| id: 4, | ||
| name: 'Brucie Bonus' | ||
| } | ||
| ]; | ||
|
|
||
| export default defineComponent({ | ||
| // eslint-disable-next-line vue/no-reserved-component-names | ||
| name: 'Select', | ||
| components: { UISelect }, | ||
| setup() { | ||
| const selected = ref(null); | ||
| const multiSelected = ref(null); | ||
|
|
||
| return { | ||
| selected, | ||
| multiSelected, | ||
| options | ||
| }; | ||
| } | ||
| }); | ||
| </script> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.