other components... (2)
This commit is contained in:
51
src/components/CMySelect/CMySelect.vue
Executable file
51
src/components/CMySelect/CMySelect.vue
Executable file
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<div class="text-center">
|
||||
<div v-if="useinput">
|
||||
<q-select
|
||||
:multiple="multiple"
|
||||
rounded
|
||||
outlined
|
||||
:input-class="myclass"
|
||||
v-model="myvalue"
|
||||
:use-input="useinput"
|
||||
input-debounce="0"
|
||||
@new-value="newvaluefunc"
|
||||
new-value-mode="add-unique"
|
||||
:options="options"
|
||||
:option-value="optval"
|
||||
:option-label="optlab"
|
||||
@input="changeval"
|
||||
:label="label"
|
||||
:dense="dense"
|
||||
>
|
||||
</q-select>
|
||||
</div>
|
||||
<div v-else>
|
||||
<q-select
|
||||
:multiple="multiple"
|
||||
rounded
|
||||
outlined
|
||||
:dense="dense"
|
||||
:input-class="myclass"
|
||||
v-model="myvalue"
|
||||
:options="options"
|
||||
:option-value="optval"
|
||||
:option-label="optlab"
|
||||
@input="changeval"
|
||||
:label="label"
|
||||
emit-value
|
||||
map-options
|
||||
style="min-width: 170px; max-width: 400px;"
|
||||
>
|
||||
|
||||
</q-select>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CMySelect.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CMySelect.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user