| | |
| | | type: Array, |
| | | default() { |
| | | return []; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | data() { |
| | | return {} |
| | | } |
| | | } |
| | | return {}; |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <tr v-for="(item, key) in list" :key="'key'+key"> |
| | | <td class="item-label">{{ item.label }}</td> |
| | | <td> |
| | | <hdw-light v-if="item.type === 'light'" :type="item.value1"></hdw-light> |
| | | <hdw-light |
| | | v-if="item.type === 'light'" |
| | | :type="item.value1" |
| | | ></hdw-light> |
| | | <span v-else> |
| | | {{ getLabelByValue(item.value1, item.list) }} |
| | | </span> |
| | | </td> |
| | | <td> |
| | | <hdw-light v-if="item.type === 'light'" :type="item.value1"></hdw-light> |
| | | <hdw-light |
| | | v-if="item.type === 'light'" |
| | | :type="item.value2" |
| | | ></hdw-light> |
| | | <span v-else> |
| | | {{ getLabelByValue(item.value2, item.list) }} |
| | | </span> |