-
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 (#1036)
- Loading branch information
Showing
19 changed files
with
291 additions
and
139 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
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="{{false}}" 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> |
Oops, something went wrong.