|
|
@ -1,25 +1,12 @@ |
|
|
|
<template> |
|
|
|
<ElCheckboxGroup |
|
|
|
v-bind="$attrs" |
|
|
|
v-on="$listeners" |
|
|
|
class="ElCheckboxGroup" |
|
|
|
:style="{ gap }" |
|
|
|
> |
|
|
|
<ElCheckbox |
|
|
|
v-for="item in options" |
|
|
|
:disabled="item.disabled" |
|
|
|
:label="item[id] || item[label]" |
|
|
|
:key="item[id] || item[label]" |
|
|
|
> |
|
|
|
<slot :name="item[id] || item[label]" :data="item" |
|
|
|
>{{ item[label] }} |
|
|
|
<ElCheckboxGroup v-bind="$attrs" v-on="$listeners" class="ElCheckboxGroup" :style="{ gap }"> |
|
|
|
<ElCheckbox v-for="item in options" :disabled="item.disabled" :label="item[id] || item[label]" |
|
|
|
:key="item[id] || item[label]"> |
|
|
|
<slot :name="item[id] || item[label]" :data="item">{{ item[label] }} |
|
|
|
</slot> |
|
|
|
<div v-if="showIcon"> |
|
|
|
<img |
|
|
|
v-if="item.deviceState == '0' || item.deviceState == null" |
|
|
|
src="@/assets/jihe/images/offline.svg" |
|
|
|
class="state" |
|
|
|
/> |
|
|
|
<img v-if="item.deviceState == '0' || item.deviceState == null" src="@/assets/jihe/images/offline.svg" |
|
|
|
class="state" /> |
|
|
|
<img v-else src="@/assets/jihe/images/online.svg" class="state" /> |
|
|
|
</div> |
|
|
|
</ElCheckbox> |
|
|
@ -70,7 +57,6 @@ export default { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 6px; |
|
|
|
width: 87px; |
|
|
|
|
|
|
|
.el-checkbox__input { |
|
|
|
line-height: 0; |
|
|
|