-
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(button): using new style (#993)
- Loading branch information
Showing
32 changed files
with
305 additions
and
298 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,8 @@ | ||
<view class="box"> | ||
<t-button t-class="external-class" theme="primary" block disabled="{{disabled}}">强按钮</t-button> | ||
<t-button t-class="external-class" theme="primary" variant="outline" block disabled="{{disabled}}">弱按钮</t-button> | ||
<t-button t-class="external-class" variant="outline" block disabled="{{disabled}}">次按钮</t-button> | ||
<t-button t-class="external-class" theme="primary" icon="app" variant="outline" block disabled="{{disabled}}" | ||
>带图标按钮</t-button | ||
> | ||
<t-button t-class="external-class" theme="danger" block disabled="{{disabled}}">强告警按钮</t-button> | ||
<t-button t-class="external-class" theme="danger" variant="outline" block disabled="{{disabled}}" | ||
>弱告警按钮</t-button | ||
> | ||
<t-button theme="primary" size="large" disabled="{{disabled}}">主按钮</t-button> | ||
<t-button theme="light" size="large" disabled="{{disabled}}">浅按钮</t-button> | ||
<t-button size="large" disabled="{{disabled}}">默认按钮</t-button> | ||
<view style="height: 32rpx" /> | ||
<t-button theme="primary" size="large" variant="outline" disabled="{{disabled}}">描边按钮</t-button> | ||
<t-button theme="primary" size="large" variant="text" disabled="{{disabled}}">文字按钮</t-button> | ||
</view> | ||
|
||
<view class="full-width"> | ||
<view class="box"> | ||
<t-button t-class="external-class" ghost block disabled="{{disabled}}">幽灵按钮</t-button> | ||
</view> | ||
</view> | ||
|
||
<view class="box"> | ||
<t-button t-class="external-class" theme="primary" variant="text" block disabled="{{disabled}}">文字按钮</t-button> | ||
</view> | ||
<t-button t-class="external-class no-border-radius" theme="primary" size="large" block disabled="{{disabled}}" | ||
>通栏按钮</t-button | ||
> | ||
<t-button-group> | ||
<t-button t-class="external-class no-border-radius no-border" size="large" block disabled="{{disabled}}" | ||
>次按钮</t-button | ||
> | ||
<t-button t-class="external-class no-border-radius" theme="primary" size="large" block disabled="{{disabled}}" | ||
>主按钮</t-button | ||
> | ||
</t-button-group> |
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 @@ | ||
Component({}); |
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,6 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": { | ||
"t-button": "tdesign-miniprogram/button/button" | ||
} | ||
} |
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 @@ | ||
<view class="box"> | ||
<t-button theme="primary" size="large" block>填充按钮</t-button> | ||
</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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.box { | ||
margin: 0 32rpx; | ||
} |
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.