0.0.19 • Published 4 years ago

@retailwe/ui-goods-category v0.0.19

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

商品分类

引入

"usingComponents": {
  "goods-category": "@retailwe/goods-category/index"
}

代码演示

<wr-goods-category custom-class="goods-category-class" category="{{list}}" initActive="{{0}}" bindchange="onChange"></wr-goods-category>
interface categoryItem {
  name: string;
  thumbnail: string;
  children?: categoryItem[];
}

入参

参数说明类型默认值是否必要
category评分categoryItem[][]
initActive激活的卡页一级索引,二级索引 Array[]
level分类等级Number3
isSlotRight是否开启右侧插槽,开启后右侧需自己加载数据Boolean3

|

Events

事件是否必要说明
change返回索引[]
changCategoryisSlotRight为false时,返回当前点击分类的数据

外部样式类

类名说明
custom-class根节点样式类
0.0.18

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago