problem description
take the sku component as an example, some messages are not needed for the project. Need to be removed, the official definition of this part of the slot name value is sku-messages. How to hide this part gracefully? I think it can be done only on the < van-sku/ > tag of the parent element without changing the source code inside the component. Here is the label.
related codes
< template >
<div class="sku-container">
<van-sku
v-model="showStepper"
:sku="skuData.sku"
:goods="skuData.goods_info"
:goods-id="skuData.goods_id"
:hide-stock="skuData.sku.hide_stock"
:quota="skuData.quota"
:quota-used="skuData.quota_used"
:custom-stepper-config="customStepperConfig"
:message-config="messageConfig"
@buy-clicked="onBuyClicked"
@add-cart="onAddCartClicked"
/>
<van-button type="primary" @click="showStepper = true" block>123</van-button>
</div>
< / template >