0.0.21 • Published 4 years ago

@retailwe/ui-promotion-popup v0.0.21

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

促销弹窗

引入

"usingComponents": {
  "wr-promotion-popup": "@retailwe/promotion-popup/index"
}

代码演示

  <wr-promotion-popup list="{{activityList}}" bind:closePromotionPopup="closePromotionPopup" show="{{isShowPromotionPop}}"></wr-promotion-popup>
  // Events
  closePromotionPopup() {
    this.setData({
      isShowPromotionPop: false,
    });
  }
  promotionChange(e) {
    const { index } = e.detail;
    console.log('index:', index);
  }

入参

参数说明类型默认值是否必要
list促销列表Array[]
show显示隐藏Boolean''
title弹窗标题String'促销说明'

list 促销列表说明

参数说明类型默认值是否必要
tag标签名String''
linkText跳转按钮文案String''
label促销内容String‘’

Events

事件是否必要说明
promotionChange按钮回调, 返回索引
closePromotionPopup弹窗关闭

外部样式类

类名说明
wr-class根节点样式类

slot

name说明
promotion-bottom弹窗底部插槽
0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

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