Skip to content
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>