mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
oh wow it works I guess
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Button from '~/components/Button.vue'
|
import Button from '~/components/Button.vue'
|
||||||
import TimelineSvg from '~/components/TimelineSvg.vue'
|
import TimelineSvg from '~/components/TimelineSvg.vue'
|
||||||
import VueSelect from 'vue-select'
|
import VueSelect from '~/components/VueSelect.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -84,7 +84,7 @@ import VueSelect from 'vue-select'
|
|||||||
></div>
|
></div>
|
||||||
<div class="pl-4 pt-4">
|
<div class="pl-4 pt-4">
|
||||||
<div class="mt-6 flex items-start px-1 text-sm">
|
<div class="mt-6 flex items-start px-1 text-sm">
|
||||||
<vue-select :options="['hello']" />
|
<VueSelect :options="['hello']" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import VueSelect from '../../src/index.js'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VueSelect v-bind="$attrs" />
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<script setup>
|
||||||
|
import VueSelect from '~/components/VueSelect.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VueSelect v-bind="$attrs" />
|
||||||
|
</template>
|
||||||
@@ -1,9 +1,3 @@
|
|||||||
<script setup>
|
|
||||||
import vSelect from 'vue-select';
|
|
||||||
import ReducerNestedValue from '@/components/ReducerNestedValue.vue';
|
|
||||||
import ReducedWithNoMatchingOption from '@/components/ReducedWithNoMatchingOption.vue';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
## Getting and Setting
|
## Getting and Setting
|
||||||
|
|
||||||
### `v-model`
|
### `v-model`
|
||||||
@@ -75,7 +69,10 @@ is true, `v-model` and `value` must be an array.
|
|||||||
<v-select multiple v-model="selected" :options="['Canada','United States']" />
|
<v-select multiple v-model="selected" :options="['Canada','United States']" />
|
||||||
```
|
```
|
||||||
|
|
||||||
<v-select multiple :options="['Canada','United States']" />
|
::vue-select{options=['Canada','United States'],multiple=true}
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
|
||||||
## Transforming Selections
|
## Transforming Selections
|
||||||
|
|
||||||
@@ -151,7 +148,7 @@ To allow input that's not present within the options, set the `taggable` prop to
|
|||||||
<v-select taggable multiple />
|
<v-select taggable multiple />
|
||||||
```
|
```
|
||||||
|
|
||||||
<v-select taggable multiple />
|
<vue-select taggable multiple />
|
||||||
|
|
||||||
If you want added tags to be pushed to the options array, set `push-tags` to true.
|
If you want added tags to be pushed to the options array, set `push-tags` to true.
|
||||||
|
|
||||||
@@ -159,7 +156,7 @@ If you want added tags to be pushed to the options array, set `push-tags` to tru
|
|||||||
<v-select taggable multiple push-tags />
|
<v-select taggable multiple push-tags />
|
||||||
```
|
```
|
||||||
|
|
||||||
<v-select taggable multiple push-tags />
|
<vue-select taggable multiple push-tags />
|
||||||
|
|
||||||
### Using `taggable` & `reduce` together
|
### Using `taggable` & `reduce` together
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { resolve } from 'path'
|
||||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
css: ['~/assets/styles/fonts.css'],
|
css: ['~/assets/styles/fonts.css'],
|
||||||
@@ -35,6 +36,15 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
vite: {
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
// resolve the aliases used in the vue-select build
|
||||||
|
'@': resolve(__dirname, '../src'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
// @see https://github.com/tailwindlabs/headlessui/discussions/1545#discussioncomment-2871517
|
// @see https://github.com/tailwindlabs/headlessui/discussions/1545#discussioncomment-2871517
|
||||||
transpile: ['@headlessui/vue'],
|
transpile: ['@headlessui/vue'],
|
||||||
|
|||||||
Reference in New Issue
Block a user