-
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(switch): switch组件的Skyline适配 (#2967)
* feat(switch): switch组件的Skyline适配 * fix(switch): 新增skyline版本入口
- Loading branch information
Showing
6 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"navigationBarTitleText": "Switch", | ||
"usingComponents": { | ||
"t-demo": "../../../components/demo-block", | ||
"base": "../base", | ||
"label": "../label", | ||
"color": "../color", | ||
"status": "../status", | ||
"size": "../size" | ||
}, | ||
"renderer": "skyline", | ||
"componentFramework": "glass-easel", | ||
"disableScroll": true | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
page { | ||
--td-cell-height: 112rpx; | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Page({}); |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<view class="skyline"> | ||
<t-navbar title="Switch" leftArrow /> | ||
<scroll-view scroll-y type="list" class="scroll-view"> | ||
<view class="demo-title">Switch 开关</view> | ||
<view class="demo-desc">用于控制某个功能的开启和关闭。</view> | ||
|
||
<t-demo title="01 组件类型" desc="基础开关"> | ||
<base /> | ||
</t-demo> | ||
|
||
<t-demo desc="带描述开关"> | ||
<label /> | ||
</t-demo> | ||
|
||
<t-demo desc="自定义颜色开关"> | ||
<color /> | ||
</t-demo> | ||
|
||
<t-demo title="02 组件状态"> | ||
<status /> | ||
</t-demo> | ||
|
||
<t-demo title="03 组件样式" desc="开关尺寸"> | ||
<size /> | ||
</t-demo> | ||
</scroll-view> | ||
</view> |