-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Input/InputMenu/Select/SelectMenu): handle
avatar
prop
- Loading branch information
1 parent
df2013c
commit 53a3796
Showing
42 changed files
with
604 additions
and
828 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
4 changes: 2 additions & 2 deletions
4
docs/app/components/content/examples/input-menu/InputMenuIconExample.vue
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
4 changes: 2 additions & 2 deletions
4
docs/app/components/content/examples/input-menu/InputMenuOpenExample.vue
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<script setup lang="ts"> | ||
const open = ref(false) | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
const value = ref('Backlog') | ||
defineShortcuts({ | ||
o: () => open.value = !open.value | ||
}) | ||
</script> | ||
|
||
<template> | ||
<UInputMenu v-model="selected" v-model:open="open" :items="items" /> | ||
<UInputMenu v-model="value" v-model:open="open" :items="items" /> | ||
</template> |
4 changes: 2 additions & 2 deletions
4
docs/app/components/content/examples/input-menu/InputMenuSearchTermExample.vue
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<script setup lang="ts"> | ||
const searchTerm = ref('D') | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
const value = ref('Backlog') | ||
</script> | ||
|
||
<template> | ||
<UInputMenu v-model="selected" v-model:search-term="searchTerm" :items="items" /> | ||
<UInputMenu v-model="value" v-model:search-term="searchTerm" :items="items" /> | ||
</template> |
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
6 changes: 3 additions & 3 deletions
6
docs/app/components/content/examples/select-menu/SelectMenuIconExample.vue
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<script setup lang="ts"> | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
const value = ref('Backlog') | ||
</script> | ||
|
||
<template> | ||
<USelectMenu | ||
v-model="selected" | ||
v-model="value" | ||
:items="items" | ||
:ui="{ | ||
trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200' | ||
}" | ||
class="w-40" | ||
class="w-48" | ||
/> | ||
</template> |
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
4 changes: 2 additions & 2 deletions
4
docs/app/components/content/examples/select-menu/SelectMenuOpenExample.vue
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<script setup lang="ts"> | ||
const open = ref(false) | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
const value = ref('Backlog') | ||
defineShortcuts({ | ||
o: () => open.value = !open.value | ||
}) | ||
</script> | ||
|
||
<template> | ||
<USelectMenu v-model="selected" v-model:open="open" :items="items" class="w-40" /> | ||
<USelectMenu v-model="value" v-model:open="open" :items="items" class="w-48" /> | ||
</template> |
4 changes: 2 additions & 2 deletions
4
docs/app/components/content/examples/select-menu/SelectMenuSearchTermExample.vue
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<script setup lang="ts"> | ||
const searchTerm = ref('D') | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const selected = ref('Backlog') | ||
const value = ref('Backlog') | ||
</script> | ||
|
||
<template> | ||
<USelectMenu v-model="selected" v-model:search-term="searchTerm" :items="items" class="w-40" /> | ||
<USelectMenu v-model="value" v-model:search-term="searchTerm" :items="items" class="w-48" /> | ||
</template> |
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
5 changes: 3 additions & 2 deletions
5
docs/app/components/content/examples/select/SelectIconExample.vue
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<script setup lang="ts"> | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const value = ref('Backlog') | ||
</script> | ||
|
||
<template> | ||
<USelect | ||
default-value="Backlog" | ||
v-model="value" | ||
:items="items" | ||
:ui="{ | ||
trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200' | ||
}" | ||
class="w-40" | ||
class="w-48" | ||
/> | ||
</template> |
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
3 changes: 2 additions & 1 deletion
3
docs/app/components/content/examples/select/SelectOpenExample.vue
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<script setup lang="ts"> | ||
const open = ref(false) | ||
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done']) | ||
const value = ref('Backlog') | ||
defineShortcuts({ | ||
o: () => open.value = !open.value | ||
}) | ||
</script> | ||
|
||
<template> | ||
<USelect v-model:open="open" default-value="Backlog" :items="items" class="w-40" /> | ||
<USelect v-model="value" v-model:open="open" :items="items" class="w-48" /> | ||
</template> |
Oops, something went wrong.