spz-cart
When to Use
When you need to display shopping cart data, typically used on a shopping cart page or a shopping cart sidebar popup.
Code Demonstration
Basic Usage
Properties
Methods
render
Renders the shopping cart content, no parameters required.
update
Updates a specific shopping cart item.
delete
Deletes a specific shopping cart item.
checkout
Check out the shopping cart items into an order, no parameters required.
Events
mounted
This event is automatically triggered when the shopping cart is first rendered.
cartEmpty
This event is automatically triggered when the shopping cart is empty.
cartChange
This event is automatically triggered when deleting, decreasing/increasing the quantity of products in the shopping cart.
cartDelete
This event is automatically triggered when a product is deleted from the shopping cart.
cartIncrease
This event is automatically triggered when the quantity of a product in the shopping cart is increased.
cartDecrease
This event is automatically triggered when the quantity of a product in the shopping cart is decreased.
AI Summary (LLM Ready)
- Component ID:
spz-cart - One-line purpose: Implements a shopping cart.
- Detected attribute rows: 0
- Detected method subsections: 4
- Detected event subsections: 6
- Top attribute names: none (needs manual completion)
- Top method names:
render,update,delete,checkout - Top event names:
mounted,cartEmpty,cartChange,cartDelete,cartIncrease,cartDecrease - Reading order: start from usage/examples, then verify attributes, methods, and events.
- Related docs: /en/guide/actions-and-events/ , /en/guide/layouts/