2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

Merge branch 'master' into customizable-text

This commit is contained in:
Jeff Sagal
2021-08-01 12:38:43 -07:00
9 changed files with 658 additions and 615 deletions
+1
View File
@@ -19,6 +19,7 @@ export default {
required: true, required: true,
}, },
height: { height: {
type: [String, Number],
default: 250, default: 250,
}, },
}, },
+4 -1
View File
@@ -1,6 +1,9 @@
<template> <template>
<ul> <ul>
<li v-for="{ login, avatar_url, html_url, contributions } in contributors"> <li
v-for="{ login, avatar_url, html_url, contributions } in contributors"
:key="login"
>
<img :src="`${avatar_url}&s=75`" :alt="`${login}'s Avatar`" /> <img :src="`${avatar_url}&s=75`" :alt="`${login}'s Avatar`" />
<div> <div>
<a :href="html_url">@{{ login }}</a> <a :href="html_url">@{{ login }}</a>
+1 -1
View File
@@ -4,7 +4,7 @@
<th>Name</th> <th>Name</th>
<th>Country</th> <th>Country</th>
</tr> </tr>
<tr v-for="person in people"> <tr v-for="person in people" :key="person.name">
<td>{{ person.name }}</td> <td>{{ person.name }}</td>
<td> <td>
<v-select <v-select
+4 -4
View File
@@ -188,11 +188,11 @@
v-bind="configuration" v-bind="configuration"
placeholder="country objects, using option scoped slots" placeholder="country objects, using option scoped slots"
> >
<template slot="selected-option" slot-scope="{ label, value }"> <template slot="selected-option" slot-scope="option">
{{ label }} -- {{ value }} {{ option.label }} -- {{ option.value }}
</template> </template>
<template slot="option" slot-scope="{ label, value }"> <template slot="option" slot-scope="option">
{{ label }} ({{ value }}) {{ option.label }} ({{ option.value }})
</template> </template>
</v-select> </v-select>
</div> </div>
@@ -1,5 +1,6 @@
<template> <template>
<v-select> <v-select>
<!-- eslint-disable-next-line vue/no-unused-vars -->
<template #no-options="{ search, searching, loading }"> <template #no-options="{ search, searching, loading }">
This is the no options slot. This is the no options slot.
</template> </template>
@@ -1,4 +1,5 @@
<template> <template>
<!-- eslint-disable vue/no-unused-vars -->
<v-select :options="books" label="title"> <v-select :options="books" label="title">
<template <template
#selected-option-container="{ option, deselect, multiple, disabled }" #selected-option-container="{ option, deselect, multiple, disabled }"
+1 -1
View File
@@ -1,6 +1,6 @@
<template> <template>
<ul> <ul>
<li v-for="{ createdAt, login, avatarUrl } in sponsors"> <li v-for="{ createdAt, login, avatarUrl } in sponsors" :key="login">
<img :src="avatarUrl + '&s=150'" :alt="`@${login}'s avatar`" /> <img :src="avatarUrl + '&s=150'" :alt="`@${login}'s avatar`" />
<p> <p>
<a :href="`https://github.com/${login}`">@{{ login }}</a> <br /> <a :href="`https://github.com/${login}`">@{{ login }}</a> <br />
+643 -608
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -7,8 +7,10 @@ export default {
left, left,
width, width,
} = context.$refs.toggle.getBoundingClientRect() } = context.$refs.toggle.getBoundingClientRect()
let scrollX = window.scrollX || window.pageXOffset let scrollX = window.scrollX || window.pageXOffset
let scrollY = window.scrollY || window.pageYOffset let scrollY = window.scrollY || window.pageYOffset
el.unbindPosition = context.calculatePosition(el, context, { el.unbindPosition = context.calculatePosition(el, context, {
width: width + 'px', width: width + 'px',
left: scrollX + left + 'px', left: scrollX + left + 'px',