<!--components/Segmented/index.wxml-->
<view style="margin: 10rpx 20rpx">
    <view 
        wx:for="{{list}}" 
        wx:key="index" 
        class="item {{index === active ? 'active' : ''}}" 
        bind:tap="handleChange" 
        data-index="{{index}}"
    >
        {{ item }}
    </view>
</view>