-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(notice-bar): support direction attr
- Loading branch information
Showing
16 changed files
with
239 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<t-notice-bar visible="{{true}}" prefixIcon="null" content="提示文字描述提示文字描述提示文字描述"></t-notice-bar> | ||
<t-notice-bar visible="{{true}}" prefixIcon="null" content="这是一条普通的通知信息"></t-notice-bar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<t-notice-bar | ||
visible="{{true}}" | ||
prefixIcon="sound" | ||
suffixIcon="chevron-right" | ||
content="提示文字描述提示文字描述提示文字描述" | ||
t-class="external-class" | ||
t-class-prefix-icon="external-class-prefix-icon" | ||
></t-notice-bar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.external-class { | ||
color: #ffffff !important; | ||
background-color: #a6a6a6 !important; | ||
opacity: 1 !important; | ||
background: rgba(243, 243, 243, 1) !important; | ||
} | ||
|
||
.external-class-prefix-icon { | ||
color: rgba(0, 0, 0, 0.9) !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
<t-notice-bar | ||
visible="{{true}}" | ||
prefixIcon="null" | ||
content="提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述" | ||
></t-notice-bar> | ||
|
||
<t-notice-bar | ||
visible="{{true}}" | ||
content="提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述" | ||
></t-notice-bar> | ||
|
||
<t-notice-bar | ||
visible="{{true}}" | ||
suffixIcon="chevron-right" | ||
content="提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述" | ||
></t-notice-bar> | ||
|
||
<!-- slot实现自定义content内容 --> | ||
<t-notice-bar visible="{{true}}"> | ||
<view slot="content"> | ||
提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述提示文字描述 | ||
<view class="extra" bind:tap="clickDetail"> 详情 </view> | ||
</view> | ||
<view slot="suffixIcon"> | ||
<t-icon name="close"></t-icon> | ||
<t-icon name="close" size="44rpx"></t-icon> | ||
</view> | ||
</t-notice-bar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.extra { | ||
display: inline-block !important; | ||
font-weight: 700 !important; | ||
border-bottom: 2rpx solid !important; | ||
display: inline-block; | ||
font-weight: 700; | ||
border-bottom: 2rpx solid; | ||
color: #0052d9; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
<t-notice-bar | ||
visible="{{visible}}" | ||
suffixIcon="close" | ||
content="这是一条普通的通知信息" | ||
bind:click="click" | ||
></t-notice-bar> | ||
|
||
<t-notice-bar | ||
visible="{{visible}}" | ||
suffixIcon="chevron-right" | ||
content="提示文字描述提示文字描述提示文字描述" | ||
content="这是一条普通的通知信息" | ||
bind:click="click" | ||
></t-notice-bar> | ||
|
||
<t-notice-bar visible="{{visible}}" bind:click="click"> | ||
<view slot="content"> 这是一条普通的通知信息 </view> | ||
<view slot="extra" class="extra">文字按钮</view> | ||
</t-notice-bar> | ||
|
||
<t-notice-bar visible="{{visible}}" suffixIcon="close" bind:click="click"> | ||
<view slot="content"> 提示文字描述提示文字描述 </view> | ||
<view slot="content"> 这是一条普通的通知信息 </view> | ||
<view slot="extra" class="extra">详情</view> | ||
</t-notice-bar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
<view class="demo"> | ||
<view class="demo-title">NoticeBar 公告栏</view> | ||
<view class="demo-desc"> 在导航栏下方,用于给用户显示提示消息 </view> | ||
<t-demo title="01 类型" desc="基础静态公告栏"> | ||
<view class="demo-desc"> 在导航栏下方,用于给用户显示提示消息。 </view> | ||
<t-demo title="组件类型"> | ||
<view class="demo-section__desc">纯文字的公告栏</view> | ||
<view class="box"> | ||
<base /> | ||
</view> | ||
|
||
<view class="demo-section__desc">带图标静态公告栏</view> | ||
<view class="demo-section__desc">带图标的公告栏</view> | ||
<view class="box"> | ||
<iconDemo /> | ||
</view> | ||
|
||
<view class="demo-section__desc">带操作公告栏</view> | ||
<view class="demo-section__desc">带操作的公告栏</view> | ||
<view class="box"> | ||
<event /> | ||
</view> | ||
|
||
<view class="demo-section__desc">滚动公告栏</view> | ||
<view class="demo-section__desc">自定义样式的公告栏</view> | ||
<view class="box"> | ||
<scrolling /> | ||
<custom /> | ||
</view> | ||
|
||
<view class="demo-section__desc">自定义样式</view> | ||
<view class="demo-section__desc">自定义内容的公告栏</view> | ||
<view class="box"> | ||
<custom /> | ||
<customization /> | ||
</view> | ||
</t-demo> | ||
<t-demo title="02 状态" desc="多行文字消息栏"> | ||
<t-demo title="组件状态" desc="公告栏类型有普通(info)、警示(warning)、成功(success)、错误(error)"> | ||
<view class="box"> | ||
<theme /> | ||
</view> | ||
</t-demo> | ||
|
||
<view class="demo-section__desc">自定义样式</view> | ||
<t-demo title="03 可滚动公告栏" desc="可滚动公告栏有水平(horizontal)和垂直(vertical)"> | ||
<view class="box"> | ||
<customization /> | ||
<scrolling /> | ||
</view> | ||
</t-demo> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ Component({ | |
loop: -1, | ||
delay: 0, | ||
}, | ||
content: ['君不见', '高堂明镜悲白发', '朝如青丝暮成雪', '人生得意须尽欢', '莫使金樽空对月'], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.