更新
更旧
<!--
Copyright (c) 2008,2020 Silicon Labs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<template>
<div v-show="selectedEndpointId.length != 0">
<q-card flat square>
<div class="row">
<q-toolbar>
<q-toolbar-title style="font-weight: bolder;">
Endpoint 0x{{ this.endpointId[this.selectedEndpointId] }} Clusters
</q-toolbar-title>
</q-toolbar>
</div>
<div class="row bar align=left;">
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<q-btn
class="col-6 left"
align="left"
text-color="primary"
icon="add"
label="Add Custom ZCL"
flat
:ripple="false"
:unelevated="false"
:outline="none"
/>
<div class="row">
<div
style="
vertical-align: middle;
text-align: center;
padding: 10px 0 0 0;
"
>
Show
</div>
<div>
<q-select
outlined
v-model="test"
bg-color="white"
dense
class="col-2"
/>
</div>
</div>
<q-space />
<q-input
dense
outlined
bg-color="white"
class="col-4"
placeholder="Search Clusters"
>
<template v-slot:prepend>
<q-icon name="search" />
</template>
</q-input>
</div>
<q-list>
<div v-for="domain in domains" :key="domain">
<q-expansion-item :label="domain" icon="play_arrow">
This is the {{ domain }} clusters
</q-expansion-item>
</div>
</q-list>
</q-card>
</div>
</template>
<script>
export default {
name: 'ZclClusterManager',
computed: {
selectedEndpointId: {
get() {
return this.$store.state.zap.endpointTypeView.selectedEndpointType
},
},
endpointId: {
get() {
return this.$store.state.zap.endpointView.endpointId
},
},
endpointType: {
get() {
return this.$store.state.zap.endpointView.endpointType
},
},
domains: {
get() {
return [
...new Set(this.$store.state.zap.clusters.map((a) => a.domainName)),
]
},
},
},
methods: {},
data() {
return {
test: 'All Clusters',
}
},
}
</script>
<!-- Notice lang="scss" -->
<style lang="scss">
.bar {
background-color: $grey-4;
padding: 15px 15px 15px 15px;
}
</style>