更新记录

1.0.2(2021-01-29)

添加双向绑定

1.0.1(2020-11-26)

.

2.9.11(2020-11-26)

修复小程序 bug

添加右侧数量显示

查看更多

平台兼容性

使用说明

import sideCategory from '@/components/mochen-side-category/mochen-side-category.vue';
<!-- 引入  -->

components: {
    sideCategory
}

<!-- 注册 -->

<!-- 在页面中使用 -->

<side-category class="category"  v-model="currentIndex" :customNumStyle="{ color: 'red' }"  :list="list"  active-color="#4CD964" :width="100" actiive-height="80%" actiive-width="2%" @change="change">
    <view>
        分类
    </view>
</side-category>

<!-- 示例值 -->
data(){
    returl {
        list: [
            {
                name: '分类一',
                num: 10
            },
            {
                name: '分类一',
                num: 20
            }
        ],
        currentIndex : 1

    }
},
methods:{
    change(currentIndex){
        console.log(currentIndex)
    }
}

props: {
        list: {
            type: Array,
            default() {
                return [];
            }
        },
        listKey: {
            type: String,
            default: 'name'
        },
        listNumKey: {
            type: String,
            default: 'num'
        },
        customItemStyle: {
            // items style
            type: Object,
            default() {
                return {};
            }
        },
        customNumStyle: {
            // items style
            type: Object,
            default() {
                return {};
            }
        },
        width: {
            type: Number,
            default: 200
        },
        actiiveColor: {
            type: String,
            default: '#4CD964'
        },
        actiiveHeight: {
            type: String,
            default: '60%'
        },
        actiiveWidth: {
            type: String,
            default: '4px'
        }
    },

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问