-
Notifications
You must be signed in to change notification settings - Fork 275
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
171 additions
and
71 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); | ||
} |
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,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="01 组件类型"> | ||
<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="02 组件状态" desc="普通/成功/警示/错误"> | ||
<view class="box"> | ||
<theme /> | ||
</view> | ||
</t-demo> | ||
|
||
<view class="demo-section__desc">自定义样式</view> | ||
<t-demo title="03 可滚动公告栏" desc="水平/垂直"> | ||
<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
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.