Mobile UI Components library built on Vue 3 with 100+ components
74
Build a product category selection interface that allows users to browse and select products from a hierarchical category tree. The interface should display categories on the left side and their subcategories/products on the right side.
Create a Vue 3 component that implements the following functionality:
Your component should work with a hierarchical data structure where:
The interface must:
Implement the following selection rules:
Your implementation should work with data structured like this example:
const categories = [
{
text: 'Electronics',
children: [
{ text: 'Smartphone', id: 'elec-1' },
{ text: 'Laptop', id: 'elec-2', badge: '5' },
{ text: 'Tablet', id: 'elec-3', disabled: true }
]
},
{
text: 'Clothing',
children: [
{ text: 'T-Shirt', id: 'cloth-1' },
{ text: 'Jeans', id: 'cloth-2' },
{ text: 'Jacket', id: 'cloth-3', dot: true }
]
}
];Create the following file:
src/ProductSelector.vue - Vue component implementing the category selector @generatesYour implementation must pass the following test cases:
Provides mobile UI components for Vue 3 including hierarchical selection support.
@satisfied-by
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