Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 修复SwiperItem[className]不生效的问题 (#1371)
Browse files Browse the repository at this point in the history
* fix: 修复swiper-item 添加class不生效问题

* fix: add some test
  • Loading branch information
PlutoCA authored Nov 19, 2020
1 parent 6d71827 commit 977704c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/remax-wechat/templates/children.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%_ if (id === 'swiper') { _%>
<block wx:for="{{i.children}}" wx:key="*this">
<swiper-item item-id="{{i.nodes[item].props.itemId}}" key="{{i.nodes[item].props.key}}">
<swiper-item class="{{i.nodes[item].props.class}}" item-id="{{i.nodes[item].props.itemId}}" key="{{i.nodes[item].props.key}}">
<block wx:for="{{i.nodes[item].children}}" wx:key="*this" wx:for-item="sItem">
<template is="{{'REMAX_TPL_' + (tid + 1) + '_CONTAINER'}}" data="{{i: i.nodes[item].nodes[sItem], a: a, tid: tid + 1 }}" />
</block>
Expand All @@ -25,4 +25,4 @@
<block wx:for="{{i.children}}" wx:key="*this">
<template is="{{'REMAX_TPL_' + (tid + 1) + '_CONTAINER'}}" data="{{i: i.nodes[item], a: a, tid: tid + 1 }}" />
</block>
<%_ } _%>
<%_ } _%>

1 comment on commit 977704c

@vercel
Copy link

@vercel vercel bot commented on 977704c Nov 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.