spz-recently-viewed
Display a list of recently viewed products.
布局
Layouts
跳转到“Layouts”Usage
跳转到“Usage”<spz-recently-viewed
layout="container"
count="18"
product-id=""
list-id="recently-viewed-list"
></spz-recently-viewed>
<spz-list id="recently-viewed-list" ...>
<!-- ... -->
</spz-list>
Attributes
跳转到“Attributes”product-id
跳转到“product-id”A string of the product id. If it is specified, this id will be removed from the id of the most recently viewed product.
count
跳转到“count”Specifies the length of the product ids. Its default value is 16
.
list-id
跳转到“list-id”Specifies an spz-list
id. If the element is mounted, it calls the refresh
API of the spz-list
to refresh the list.
data-empty
跳转到“data-empty”It will be added this attribute when there are no recently viewed products.