Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复NoticeBar 通告栏background-color属性,应按文档写为background-color而非backgroundc… #367

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/notice-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Component({
value: false
},
// 背景颜色
backgroundcolor: {
backgroundColor: {
type: String,
value: '#fefcec'
},
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/notice-bar/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</i-notice-bar>
</i-panel>
<i-panel title="自定义颜色 通告栏">
<i-notice-bar backgroundcolor="#99cc66" color="#ffff66">
<i-notice-bar background-color="#99cc66" color="#ffff66">
2018年世界杯,将于6月14日至7月15日举行
</i-notice-bar>
</i-panel>
Expand Down
6 changes: 3 additions & 3 deletions src/notice-bar/index.wxml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<view wx:if="{{ show }}" class="i-class i-noticebar" style="color: {{ color }}; background-color: {{ backgroundcolor }}">
<view wx:if="{{ show }}" class="i-class i-noticebar" style="color: {{ color }}; background-color: {{ backgroundColor }}">
<i-icon wx:if="{{ icon }}" type="{{ icon }}" size="24" color="{{color}}" class="i-noticebar-icon"></i-icon>
<view class="i-noticebar-content-wrap">
<view class="i-noticebar-content {{loop?'i-noticebar-content-loop':''}}" animation="{{ animationData }}">
<slot></slot>
<slot></slot>
</view>
</view>
<i-icon wx:if="{{closable}}" class="i-noticebar-operation" type="close" size="20" color="{{color}}" bindtap="handleClose"></i-icon>
</view>
</view>