Akaunting Select disabled options feature added

This commit is contained in:
Cüneyt Şentürk
2020-12-22 10:49:29 +03:00
parent ae4c0a2eea
commit 0dccc6df70
12 changed files with 60 additions and 0 deletions

View File

@ -154,6 +154,7 @@
<el-option v-if="!group" v-for="(option, index) in sortOptions"
:key="index"
:disabled="disabledOptions.includes(option.key)"
:label="option.value"
:value="option.key">
<span class="float-left">{{ option.value }}</span>
@ -168,6 +169,7 @@
<el-option
v-for="(label, value) in group_options"
:key="value"
:disabled="disabledOptions.includes(value)"
:label="label"
:value="value">
<span class="float-left">{{ label }}</span>
@ -272,6 +274,14 @@ export default {
options: null,
disabledOptions: {
type: Array,
default: function () {
return [];
},
description: "Selectbox Add New Item Feature"
},
option_sortable: {
type: String,
default: 'value',