This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bar charts * Update package.json * Search Dropdown * Add circle icon option
- Loading branch information
1 parent
ec35392
commit ae7f7e9
Showing
4 changed files
with
424 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Search Dropdown | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
|
||
const options = ref([]); | ||
const text = ref(""); | ||
const onSelected = (option) => { | ||
options.value.push(option); | ||
}; | ||
</script> | ||
|
||
<DemoContainer> | ||
{{options}} | ||
{{text}} | ||
|
||
<SearchDropdown | ||
placeholder="Search for dependencies" | ||
@on-selected="onSelected" | ||
v-model="text" | ||
:options="[ | ||
{ | ||
title: 'Project 1', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 2', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 3', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 3', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 1', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 2', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 3', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
}, | ||
{ | ||
title: 'Project 3', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
id: 'ejnfwfinj', | ||
} | ||
]" | ||
/> | ||
|
||
</DemoContainer> | ||
|
||
```vue | ||
<SearchDropdown | ||
placeholder="Search for dependencies" | ||
@on-selected="onSelected" | ||
v-model="text" | ||
disabled | ||
render-up | ||
circled-icons | ||
:options="[ | ||
{ | ||
title: 'Project 1', | ||
subtitle: 'Author 1', | ||
icon: 'https://cdn.modrinth.com/data/pzd7e1y0/a00d7bc1cec363bb4e678da82f33da5708e8a30a.png', | ||
... | ||
}, | ||
... | ||
]" | ||
/> | ||
``` |
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
Oops, something went wrong.