Skip to content

Commit

Permalink
fix(card): price颜色未覆盖
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1206 committed Nov 8, 2023
1 parent 4660eaf commit 2665bd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/nutui/components/card/card.vue
Expand Up @@ -36,7 +36,9 @@ export default defineComponent({
<NutPrice v-if="price" :price="price" />
</slot>
<slot name="origin">
<NutPrice v-if="vipPrice" class="nut-card__right__price__origin" :price="vipPrice" />
<view class="nut-card__right__price__origin">
<NutPrice v-if="vipPrice" :price="vipPrice" />
</view>
</slot>
</div>
<div class="nut-card__right__other">
Expand Down
3 changes: 2 additions & 1 deletion packages/nutui/components/card/index.scss
Expand Up @@ -63,7 +63,7 @@
}

.nut-card__right__price__origin {
&.nut-price {
:deep(.nut-price) {
margin-left: 2px;
color: #d2a448;

Expand All @@ -80,6 +80,7 @@
}
}
}

}

.nut-card__right__other {
Expand Down

1 comment on commit 2665bd1

@vercel
Copy link

@vercel vercel bot commented on 2665bd1 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.