tessl install tessl/npm-vant@4.9.0Mobile UI Components library built on Vue 3 with 100+ components
Agent Success
Agent success rate when using this tile
74%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.07x
Baseline
Agent success rate without this tile
69%
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