@retailwe/ui-filter-popup

0.0.18 • Public • Published

商品筛选弹窗

引入

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

代码演示

<wr-filter-popup  show="{{show}}"  bind:showFilterPopupClose="showFilterPopupClose" bind:reset="reset" bind:confirm="confirm">
    <view slot="filterSlot">
        <view class="price-container">
        <view class="price-between">价格区间</view>
        <view class="price-ipts-wrap">
            <input type="number" class="price-ipt {{minSalePriceFocus ? 'focus' : ''}} {{minActive ? 'active' : ''}}" bindfocus="handleMinPriceFocus" bindblur="handleMinPriceBlur" placeholder="最低价" value="{{minVal}}" bindinput="onMinValAction" />
            <text class="price-divided"></text>
            <input type="number" class="price-ipt {{maxSalePriceFocus ? 'focus' : ''}} {{maxActive ? 'active' : ''}}" bindfocus="handleMaxPriceFocus" bindblur="handleMaxPriceBlur" placeholder="最高价" value="{{maxVal}}" bindinput="onMaxValAction" />
        </view>
        </view>
    </view>
</wr-filter-popup>


入参

参数 说明 类型 默认值 是否必要
show 显示隐藏 Boolean false

Events

事件 是否必要 说明
showFilterPopupClose 关闭弹窗
reset 重设参数
confirm 筛选确认

外部样式类

类名 说明
wr-class 筛选内容根节点样式类

slot

name 说明
filterSlot 筛选内容插槽

Readme

Keywords

none

Package Sidebar

Install

npm i @retailwe/ui-filter-popup

Weekly Downloads

9

Version

0.0.18

License

none

Unpacked Size

4.89 kB

Total Files

6

Last publish

Collaborators

  • jeannehuang
  • gaterking
  • rachelrgao