更新记录
1.0.0(2024-03-24) 下载此版本
初次提交
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
× | √ | - | - | × | × | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
× | × | × | × | × | × | - | × | × | × | × |
如何使用
插槽传入盒子即可使用,row是每一个分类的数据
<category-list :list="dataList" @onGoodItem="onGoodItem">
<template #custom="{ row }">
<listBox v-for="(item, index) in row.foods" :key="index" :data="item"></listBox>
</template>
</category-list>
</template>
数据格式
数据格式没有太大的要求,后续会增加自定义数据字段的prop,增加灵活性,目前是固定死的,标题是name。