Mobile UI Components library built on Vue 3 with 100+ components
74
Build a price range filter component for an e-commerce application that allows users to select a minimum and maximum price range using an interactive slider interface.
Provides mobile UI components including range selection controls.
Props:
initialMin (Number, default: 0): The initial minimum price valueinitialMax (Number, default: 1000): The initial maximum price valueEvents:
change: Emitted when the range changes, providing an object with min and max propertiesFile: price-filter.test.ts
Description: Verify that the component renders with default values and allows range adjustment.
Test Steps:
Expected Result:
{ min: 100, max: 800 }File: price-filter.test.ts
Description: Verify that the component respects custom initial values.
Test Steps:
initialMin: 200 and initialMax: 600Expected Result:
File: price-filter.test.ts
Description: Verify that price marks are visible at key intervals.
Test Steps:
Expected Result:
Install with Tessl CLI
npx tessl i tessl/npm-vantdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10