Merge branch 'master' of https://gitee.com/izory/ZrAdminNetCore
This commit is contained in:
commit
3238cb8232
@ -2,9 +2,11 @@
|
|||||||
<div>
|
<div>
|
||||||
<template v-for="(item, index) in options">
|
<template v-for="(item, index) in options">
|
||||||
<template v-if="values.includes(item.dictValue)">
|
<template v-if="values.includes(item.dictValue)">
|
||||||
<span v-if="item.listClass == 'default' || item.listClass == ''" :key="item.dictValue" :index="index" :class="item.cssClass">{{ item.dictLabel }}</span>
|
<span v-if="item.listClass == 'default' || item.listClass == ''" :key="item.dictValue" :index="index" :class="item.cssClass">
|
||||||
<el-tag size="mini" v-else :disable-transitions="true" :key="item.dictValue" :index="index" :type="item.listClass == 'primary' ? '' : item.listClass" :class="item.cssClass">
|
{{ item.dictLabel }} <i v-if="showValue">#{{item.dictValue}}</i></span>
|
||||||
{{ item.dictLabel }}
|
<el-tag size="mini" v-else :disable-transitions="true" :key="item.dictValue" :index="index"
|
||||||
|
:type="item.listClass == 'primary' ? '' : item.listClass" :class="item.cssClass">
|
||||||
|
{{ item.dictLabel }}<i v-if="showValue">#{{item.dictValue}}</i>
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@ -20,6 +22,7 @@ export default {
|
|||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
value: [Number, String, Array, Boolean],
|
value: [Number, String, Array, Boolean],
|
||||||
|
showValue: false,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
values() {
|
values() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user