|
74 | 74 | <h6 class="border-bottom pb-2 mt-3">Select Product</h6>
|
75 | 75 | <b-row>
|
76 | 76 | <b-col cols="6" sm="4" md="3" lg="2">
|
77 |
| - <div class="text-center"> |
78 |
| - <i class="fa fa-circle fa-2x text-primary"></i><br>Banner |
| 77 | + <div class="text-center" @click="setProduct('Banner')"> |
| 78 | + <i class="fa fa-circle fa-2x " |
| 79 | + :class="{'text-primary': (product === 'Banner'), 'text-secondary': (product !== 'Banner')}" |
| 80 | + ></i><br>Banner |
79 | 81 | </div>
|
80 | 82 | </b-col>
|
81 | 83 | <b-col cols="6" sm="4" md="3" lg="2">
|
82 |
| - <div class="text-center"> |
83 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Rigid |
| 84 | + <div class="text-center" @click="setProduct('Rigid')"> |
| 85 | + <i class="fa fa-circle fa-2x " |
| 86 | + :class="{'text-primary': (product === 'Rigid'), 'text-secondary': (product !== 'Rigid')}" |
| 87 | + ></i><br>Rigid |
84 | 88 | </div>
|
85 | 89 | </b-col>
|
86 | 90 | <b-col cols="6" sm="4" md="3" lg="2">
|
87 |
| - <div class="text-center"> |
88 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Textile |
| 91 | + <div class="text-center" @click="setProduct('Textile')"> |
| 92 | + <i class="fa fa-circle fa-2x " |
| 93 | + :class="{'text-primary': (product === 'Textile'), 'text-secondary': (product !== 'Textile')}" |
| 94 | + ></i><br>Textile |
89 | 95 | </div>
|
90 | 96 | </b-col>
|
91 | 97 | <b-col cols="6" sm="4" md="3" lg="2">
|
92 |
| - <div class="text-center"> |
93 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Unmounted |
| 98 | + <div class="text-center" @click="setProduct('Unmounted')"> |
| 99 | + <i class="fa fa-circle fa-2x " |
| 100 | + :class="{'text-primary': (product === 'Unmounted'), 'text-secondary': (product !== 'Unmounted')}" |
| 101 | + ></i><br>Unmounted |
94 | 102 | </div>
|
95 | 103 | </b-col>
|
96 | 104 |
|
97 | 105 | </b-row>
|
98 |
| - |
| 106 | +<div v-if="product !== ''"> |
99 | 107 | <h6 class="border-bottom pb-2 mt-3">Finishing</h6>
|
100 | 108 | <b-row>
|
101 | 109 | <b-col cols="6" sm="4" md="3" lg="2">
|
102 |
| - <div class="text-center"> |
103 |
| - <i class="fa fa-circle fa-2x text-primary"></i><br>Finished |
| 110 | + <div class="text-center" @click="setFinishing('Finished')"> |
| 111 | + <i |
| 112 | + class="fa fa-circle fa-2x" |
| 113 | + :class="{'text-primary': (finishing === 'Finished'), 'text-secondary': (finishing !== 'Finished')}" |
| 114 | + ></i><br>Finished |
104 | 115 | </div>
|
105 | 116 | </b-col>
|
106 | 117 | <b-col cols="6" sm="4" md="3" lg="2">
|
107 |
| - <div class="text-center"> |
108 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Framed |
| 118 | + <div class="text-center" @click="setFinishing('Framed')"> |
| 119 | + <i class="fa fa-circle fa-2x" |
| 120 | + :class="{'text-primary': (finishing === 'Framed'), 'text-secondary': (finishing !== 'Framed')}" |
| 121 | + ></i><br>Framed |
109 | 122 | </div>
|
110 | 123 | </b-col>
|
111 | 124 | <b-col cols="6" sm="4" md="3" lg="2">
|
112 |
| - <div class="text-center"> |
113 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Structure |
| 125 | + <div class="text-center" @click="setFinishing('Structure')"> |
| 126 | + <i class="fa fa-circle fa-2x" |
| 127 | + :class="{'text-primary': (finishing === 'Structure'), 'text-secondary': (finishing !== 'Structure')}" |
| 128 | + ></i><br>Structure |
114 | 129 | </div>
|
115 | 130 | </b-col>
|
116 | 131 |
|
117 | 132 | </b-row>
|
118 |
| - |
| 133 | +</div> |
| 134 | + <div v-if="finishing !== ''"> |
119 | 135 | <h6 class="border-bottom pb-2 mt-3">Sides</h6>
|
120 | 136 | <b-row>
|
121 | 137 | <b-col cols="6" sm="4" md="3" lg="2">
|
122 |
| - <div class="text-center"> |
123 |
| - <i class="fa fa-circle fa-2x text-primary"></i><br>Single Sided |
| 138 | + <div class="text-center" @click="setSides('Single Sided')"> |
| 139 | + <i class="fa fa-circle fa-2x " |
| 140 | + :class="{'text-primary': (sides === 'Single Sided'), 'text-secondary': (sides !== 'Single Sided')}"></i><br>Single Sided |
124 | 141 | </div>
|
125 | 142 | </b-col>
|
126 | 143 | <b-col cols="6" sm="4" md="3" lg="2">
|
127 |
| - <div class="text-center"> |
128 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Double Sided |
| 144 | + <div class="text-center" @click="setSides('Double Sided')"> |
| 145 | + <i class="fa fa-circle fa-2x " |
| 146 | + :class="{'text-primary': (sides === 'Double Sided'), 'text-secondary': (sides !== 'Double Sided')}" |
| 147 | + ></i><br>Double Sided |
129 | 148 | </div>
|
130 | 149 | </b-col>
|
131 | 150 |
|
132 | 151 | </b-row>
|
| 152 | + </div> |
| 153 | + <div v-if="sides !== ''"> |
133 | 154 |
|
134 | 155 | <h6 class="border-bottom pb-2 mt-3">Lite</h6>
|
135 | 156 | <b-row>
|
136 | 157 | <b-col cols="6" sm="4" md="3" lg="2">
|
137 |
| - <div class="text-center"> |
138 |
| - <i class="fa fa-circle fa-2x text-primary"></i><br>Frontlit |
| 158 | + <div class="text-center" @click="setLight('Frontlit')"> |
| 159 | + <i class="fa fa-circle fa-2x " |
| 160 | + :class="{'text-primary': (light === 'Frontlit'), 'text-secondary': (light !== 'Frontlit')}" |
| 161 | + ></i><br>Frontlit |
139 | 162 | </div>
|
140 | 163 | </b-col>
|
141 | 164 | <b-col cols="6" sm="4" md="3" lg="2">
|
142 |
| - <div class="text-center"> |
143 |
| - <i class="fa fa-circle fa-2x text-secondary"></i><br>Backlit |
| 165 | + <div class="text-center" @click="setLight('Backlit')"> |
| 166 | + <i class="fa fa-circle fa-2x" |
| 167 | + :class="{'text-primary': (light === 'Backlit'), 'text-secondary': (light !== 'Backlit')}" |
| 168 | + ></i><br>Backlit |
144 | 169 | </div>
|
145 | 170 | </b-col>
|
146 | 171 |
|
147 | 172 | </b-row>
|
148 |
| - |
| 173 | + </div> |
149 | 174 |
|
150 | 175 | </b-card>
|
151 | 176 |
|
|
181 | 206 | data () {
|
182 | 207 | return {
|
183 | 208 | selected: [], // Must be an array reference!
|
184 |
| - show: true |
| 209 | + show: true, |
| 210 | + product: '', |
| 211 | + finishing: '', |
| 212 | + sides: '', |
| 213 | + light: '' |
185 | 214 | }
|
186 | 215 | },
|
187 | 216 | methods: {
|
188 |
| - click () { |
| 217 | + setProduct (value) { |
| 218 | + this.product = value |
| 219 | + this.finishing = '' |
| 220 | + this.sides = '' |
| 221 | + this.light = '' |
| 222 | + // do nothing |
| 223 | + }, |
| 224 | + setFinishing (value) { |
| 225 | + this.finishing = value; |
| 226 | + this.sides = '' |
| 227 | + this.light = '' |
| 228 | + // do nothing |
| 229 | + }, |
| 230 | + setSides (value) { |
| 231 | + this.sides = value |
| 232 | + this.light = '' |
| 233 | + // do nothing |
| 234 | + }, |
| 235 | + setLight (value) { |
| 236 | + this.light = value |
189 | 237 | // do nothing
|
190 | 238 | }
|
191 | 239 | }
|
|
0 commit comments