-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reafactor: update input components to composition-api * reafactor: update dropdown component to composition-api * refactor: dropdown active prop * docs: update component documentations * docs: remove unused inspector classes * chore: remove unnecessary dependency * fix: #513 * fix: #570 * fix: #530 * fix: #516 * fix: #515
- Loading branch information
Showing
105 changed files
with
8,837 additions
and
8,364 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
12 changes: 9 additions & 3 deletions
12
packages/docs-next/.vitepress/theme/examples/datepicker/programmatically.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,20 @@ | ||
<script setup> | ||
import { ref } from "vue"; | ||
const active = ref(false); | ||
</script> | ||
|
||
<template> | ||
<section> | ||
<o-field> | ||
<o-field expanded> | ||
<o-datepicker | ||
ref="datepicker" | ||
v-model:active="active" | ||
expanded | ||
placeholder="Select a date" /> | ||
<o-button | ||
icon-left="calendar" | ||
type="primary" | ||
@click="$refs.datepicker.toggle()" /> | ||
@click="active = !active" /> | ||
</o-field> | ||
</section> | ||
</template> |
4 changes: 3 additions & 1 deletion
4
packages/docs-next/.vitepress/theme/examples/datepicker/range.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,5 +1,7 @@ | ||
<script setup> | ||
const date = new Date(); | ||
import { ref } from "vue"; | ||
const date = ref(); | ||
</script> | ||
|
||
<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
16 changes: 14 additions & 2 deletions
16
packages/docs-next/.vitepress/theme/examples/datetimepicker/inspector.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
40 changes: 20 additions & 20 deletions
40
packages/docs-next/.vitepress/theme/examples/dropdown/base.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,64 +1,64 @@ | ||
<template> | ||
<section class="odocs-spaced"> | ||
<o-dropdown aria-role="list"> | ||
<o-dropdown> | ||
<template #trigger="{ active }"> | ||
<o-button | ||
variant="primary" | ||
label="Click me!" | ||
:icon-right="active ? 'caret-up' : 'caret-down'" /> | ||
</template> | ||
|
||
<o-dropdown-item aria-role="listitem" label="Action" /> | ||
<o-dropdown-item aria-role="listitem" label="Another action" /> | ||
<o-dropdown-item aria-role="listitem" label="Something else" /> | ||
<o-dropdown-item label="Action" /> | ||
<o-dropdown-item label="Another action" /> | ||
<o-dropdown-item label="Something else" /> | ||
</o-dropdown> | ||
|
||
<o-dropdown :triggers="['hover']" aria-role="list"> | ||
<o-dropdown :triggers="['hover']"> | ||
<template #trigger="{ active }"> | ||
<o-button | ||
variant="info" | ||
label="Hover me!" | ||
:icon-right="active ? 'caret-up' : 'caret-down'" /> | ||
</template> | ||
|
||
<o-dropdown-item aria-role="listitem" label="Action" /> | ||
<o-dropdown-item aria-role="listitem" label="Another action" /> | ||
<o-dropdown-item aria-role="listitem" label="Something else" /> | ||
<o-dropdown-item label="Action" /> | ||
<o-dropdown-item label="Another action" /> | ||
<o-dropdown-item label="Something else" /> | ||
</o-dropdown> | ||
|
||
<o-dropdown disabled aria-role="list"> | ||
<o-dropdown disabled> | ||
<template #trigger="{ active }"> | ||
<o-button | ||
label="Disabled" | ||
:icon-right="active ? 'caret-up' : 'caret-down'" /> | ||
</template> | ||
|
||
<o-dropdown-item aria-role="listitem" label="Action" /> | ||
<o-dropdown-item aria-role="listitem" label="Another action" /> | ||
<o-dropdown-item aria-role="listitem" label="Something else" /> | ||
<o-dropdown-item label="Action" /> | ||
<o-dropdown-item label="Another action" /> | ||
<o-dropdown-item label="Something else" /> | ||
</o-dropdown> | ||
|
||
<o-dropdown aria-role="list"> | ||
<o-dropdown> | ||
<template #trigger> | ||
<div> | ||
Custom | ||
<o-icon variant="success" icon="caret-down" role="button" /> | ||
</div> | ||
</template> | ||
|
||
<o-dropdown-item aria-role="listitem" label="Action" /> | ||
<o-dropdown-item aria-role="listitem" label="Another action" /> | ||
<o-dropdown-item aria-role="listitem" label="Something else" /> | ||
<o-dropdown-item label="Action" /> | ||
<o-dropdown-item label="Another action" /> | ||
<o-dropdown-item label="Something else" /> | ||
</o-dropdown> | ||
|
||
<o-dropdown :triggers="['contextmenu']" aria-role="list"> | ||
<o-dropdown :triggers="['contextmenu']"> | ||
<template #trigger> | ||
<o-button label="Right click" role="button" /> | ||
</template> | ||
|
||
<o-dropdown-item aria-role="listitem" label="Action" /> | ||
<o-dropdown-item aria-role="listitem" label="Another action" /> | ||
<o-dropdown-item aria-role="listitem" label="Something else" /> | ||
<o-dropdown-item label="Action" /> | ||
<o-dropdown-item label="Another action" /> | ||
<o-dropdown-item label="Something else" /> | ||
</o-dropdown> | ||
</section> | ||
</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
Oops, something went wrong.