-
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.
- Loading branch information
Showing
4 changed files
with
269 additions
and
186 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
playground/Coalesce.Web.Vue3/src/examples/c-select-many-to-many/styling.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,33 @@ | ||
<template> | ||
<h1>c-select slots</h1> | ||
<v-row> | ||
<v-col> | ||
<c-select-many-to-many :model="caseVm" for="caseProducts"> | ||
<template #prepend> | ||
<v-chip>v-input</v-chip> | ||
</template> | ||
<template #append-inner> | ||
<v-chip>v-field</v-chip> | ||
</template> | ||
<template #default> Default - shouldn't be seen </template> | ||
|
||
<template #selected-item="{ item }"> | ||
<div class="bg-purple text-white pa-2 mx-2">{{ item.name }}</div> | ||
</template> | ||
<template #list-item="{ item }"> | ||
<div class="bg-indigo text-white pa-2 mx-2">{{ item.name }}</div> | ||
</template> | ||
</c-select-many-to-many> | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { Case, Person } from "@/models.g"; | ||
import { CaseViewModel, PersonListViewModel } from "@/viewmodels.g"; | ||
import { modelDisplay, useBindToQueryString } from "coalesce-vue"; | ||
import { ref } from "vue"; | ||
const caseVm = new CaseViewModel(); | ||
caseVm.$load(14); | ||
</script> |
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.