-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(module:button): adjustment loading
- Loading branch information
1 parent
a7aa51b
commit f069f6b
Showing
11 changed files
with
124 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<h2>按钮</h2> | ||
<ex-default></ex-default> | ||
<!-- <h2>按钮</h2> --> | ||
<!-- <ex-default></ex-default> --> | ||
|
||
<ex-disabled></ex-disabled> | ||
<!-- <ex-disabled></ex-disabled> --> | ||
|
||
<ex-group></ex-group> | ||
<!-- <ex-group></ex-group> --> | ||
|
||
<ex-icon></ex-icon> | ||
<!-- <ex-icon></ex-icon> --> | ||
|
||
<ex-loading></ex-loading> | ||
|
||
<ex-size></ex-size> | ||
<!-- <ex-size></ex-size> --> | ||
|
||
<ex-text></ex-text> | ||
<!-- <ex-text></ex-text> --> |
33 changes: 33 additions & 0 deletions
33
src/main/test/modules/button/loading/loading.component.html
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,3 +1,36 @@ | ||
<div class="row"> | ||
<x-button icon="fto-save" type="primary" [loading]="loading" (click)="save()">保存</x-button> | ||
</div> | ||
|
||
<div class="row"> | ||
<x-button [loading]="loading">默认按钮</x-button> | ||
<x-button type="primary" [loading]="loading">主要按钮</x-button> | ||
<x-button type="success" [loading]="loading">成功按钮</x-button> | ||
<x-button type="warning" [loading]="loading">警告按钮</x-button> | ||
<x-button type="danger" [loading]="loading">危险按钮</x-button> | ||
<x-button type="info" [loading]="loading">信息按钮</x-button> | ||
</div> | ||
<div class="row"> | ||
<x-button plain [loading]="loading">朴素按钮</x-button> | ||
<x-button type="primary" plain [loading]="loading">主要按钮</x-button> | ||
<x-button type="success" plain [loading]="loading">成功按钮</x-button> | ||
<x-button type="warning" plain [loading]="loading">警告按钮</x-button> | ||
<x-button type="danger" plain [loading]="loading">危险按钮</x-button> | ||
<x-button type="info" plain [loading]="loading">信息按钮</x-button> | ||
</div> | ||
<div class="row"> | ||
<x-button round [loading]="loading">圆角按钮</x-button> | ||
<x-button type="primary" round [loading]="loading">主要按钮</x-button> | ||
<x-button type="success" round [loading]="loading">成功按钮</x-button> | ||
<x-button type="warning" round [loading]="loading">警告按钮</x-button> | ||
<x-button type="danger" round [loading]="loading">危险按钮</x-button> | ||
<x-button type="info" round [loading]="loading">信息按钮</x-button> | ||
</div> | ||
<div class="row"> | ||
<x-button icon="fto-search" circle [loading]="loading"></x-button> | ||
<x-button icon="fto-edit-3" type="primary" circle [loading]="loading"></x-button> | ||
<x-button icon="fto-check" type="success" circle [loading]="loading"></x-button> | ||
<x-button icon="fto-star" type="warning" circle [loading]="loading"></x-button> | ||
<x-button icon="fto-trash-2" type="danger" circle [loading]="loading"></x-button> | ||
<x-button icon="fto-trash" type="info" circle [loading]="loading"></x-button> | ||
</div> |
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,5 +1,5 @@ | ||
<!-- <ex-default></ex-default> --> | ||
<ex-multiple></ex-multiple> | ||
<ex-default></ex-default> | ||
<!-- <ex-multiple></ex-multiple> --> | ||
<!-- <ex-search></ex-search> --> | ||
<!-- <ex-size></ex-size> --> | ||
<!-- <ex-scroll></ex-scroll> --> |
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