mip-filter filter
mip-filter filter
Filter component, adaptive pc and wise width. mipengine.org has a reference to
example
Filtering function that supports positioning filter items from hash.
<mip-filter mip-filter-filterWrap=".filter" mip-filter-itemWrap=".filter-item-wrap" mip-filter-enableHash="true"> <sidebar class="filter"> <div class="filter-result"></div> <ul class="filter-list"> <li class="filter-title"> <div class="filter-link" data-filtertype="all">(all)查看全部<span class="filter-num">3</span></div> </li> <li class="filter-title"> <div class="filter-link" data-filtertype="widget">(widget)组件<span class="filter-num">2</span></div> </li> <li class="filter-title"> <div class="filter-link" data-filtertype="layout">(layout)组件布局<span class="filter-num">1</span></div> </li> </ul> </sidebar> <div class="filter-item-wrap"> <div class="filter-item" data-filtertype="widget"> <span>(widget) 组件新增</span> </div> <div class="filter-item" data-filtertype="layout"> <span>(layout)广告组件 layout 升级</span> </div> <div class="filter-item" data-filtertype="widget"> <span>(widget)测试版发布</span> </div> </div> </mip-filter>
Attribute
mip-filter-filterWrap
Description: Filter button DOM
Required option: Yes
Type: String
Value: document.querySelector() can fill in the content, such as ".box ”
mip-filter-itemWrap
Description: Filter item DOM
Required option: Yes
Type: String
Value: document.querySelector() can be filled in Content, such as ".box"
mip-filter-enableHash
Description: Whether to support hash control
Required option: No,
Type: String
Values: true, false
Default value: true