fixed product-display template
This commit is contained in:
parent
d9c781d834
commit
c917acec5d
@ -25,7 +25,7 @@ app.component('product-display', {
|
|||||||
<li v-for="detail in details">{{ detail }}</li>
|
<li v-for="detail in details">{{ detail }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="color-circle"
|
<div class="color-box"
|
||||||
v-for="(variant, index) in variants"
|
v-for="(variant, index) in variants"
|
||||||
:key="variant.id"
|
:key="variant.id"
|
||||||
:style="{ backgroundColor: variant.color }"
|
:style="{ backgroundColor: variant.color }"
|
||||||
@ -41,11 +41,9 @@ app.component('product-display', {
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<review-list :reviews="reviews"></review-list>
|
<review-list :reviews="reviews"></review-list>
|
||||||
<review-form @review-submitted="addReview" ></review-form>
|
<review-form @review-submitted="addReview" ></review-form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user