product-search
Autocomplete product search with real-time results.
<product-search
v-model="selectedProduct"
:impersonate-customer-id="customerId"
@change="handleProductChange"
/>Key Features:
Debounced search (300ms)
Keyboard navigation (arrow keys, enter)
Variant option display
Customer impersonation support
Clearable selection
Props:
product(Object) - Selected product (v-model)searchEndpoint(String) - API endpoint (default: 'platform-product-search')impersonateCustomerId(String) - Customer ID for pricing contextimpersonateShippingAddressId(String) - Shipping address for contextimpersonateEmployeeId(String) - Employee contextisOffer(Boolean) - Offer mode flagclearable(Boolean) - Show clear buttonfilter(Array) - Additional search filters
Events:
input- Product selection change (v-model)change- Product selection change
Last updated
Was this helpful?