-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa3d597
commit a75ddea
Showing
4 changed files
with
45 additions
and
16 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
3 changes: 2 additions & 1 deletion
3
app/src/routes/(backstage)/(library)/data-entry/chip-field/Disabled.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 lang="ts" setup> | ||
import { ref } from 'vue'; | ||
import { XChipField, XCheckbox } from '@x/ui'; | ||
import { XChipField, XDivider, XCheckbox } from '@x/ui'; | ||
const values = ref<string[]>([]); | ||
const disabled = ref(true); | ||
</script> | ||
|
||
<template> | ||
<XChipField v-model:value="values" label="Example label" placeholder="Type here..." :disabled /> | ||
<XDivider /> | ||
<XCheckbox v-model:value="disabled">disabled</XCheckbox> | ||
</template> |
20 changes: 20 additions & 0 deletions
20
app/src/routes/(backstage)/(library)/data-entry/chip-field/Invalid.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue'; | ||
import { XChipField, XDivider, XCheckbox } from '@x/ui'; | ||
const values = ref<string[]>([]); | ||
const invalid = ref(true); | ||
const errorMessage = ref('Incorrect entry'); | ||
</script> | ||
|
||
<template> | ||
<XChipField | ||
v-model:value="values" | ||
label="Example label" | ||
placeholder="Type here..." | ||
required | ||
:invalid="invalid && errorMessage" | ||
/> | ||
<XDivider /> | ||
<XCheckbox v-model:value="invalid">invalid</XCheckbox> | ||
</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