| | |
| | | >
|
| | | <el-tag
|
| | | v-else
|
| | | :disable-transitions="true"
|
| | | :key="item.dictValue"
|
| | | :index="index"
|
| | | :type="item.listClass == 'primary' ? '' : item.listClass"
|
| | |
| | | type: Array,
|
| | | default: null,
|
| | | },
|
| | | value: [String, Array],
|
| | | value: [Number, String, Array],
|
| | | },
|
| | | computed: {
|
| | | values() {
|
| | | if (this.value) {
|
| | | return Array.isArray(this.value) ? this.value : [this.value];
|
| | | if (this.value !== null && typeof this.value !== 'undefined') {
|
| | | return Array.isArray(this.value) ? this.value : [String(this.value)];
|
| | | } else {
|
| | | return [];
|
| | | }
|
| | |
| | | .el-tag + .el-tag {
|
| | | margin-left: 10px;
|
| | | }
|
| | | </style> |
| | | </style>
|