spz-recently-viewed

Display a list of recently viewed products.

布局

<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>

A string of the product id. If it is specified, this id will be removed from the id of the most recently viewed product.

Specifies the length of the product ids. Its default value is 16.

Specifies an spz-list id. If the element is mounted, it calls the refresh API of the spz-list to refresh the list.

It will be added this attribute when there are no recently viewed products.

本页目录