File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
<i-panel title="一般用法"></i-panel>
2
2
3
+ <i-button bind:click="handleClick" inline>行内按钮</i-button>
4
+ <i-button bind:click="handleClick" inline type="primary">行内按钮</i-button>
5
+ <i-button bind:click="handleClick" inline type="success">行内按钮</i-button>
6
+
3
7
<i-button bind:click="handleClick">默认按钮</i-button>
4
8
<i-button bind:click="handleClick" type="error" long="true">联通两边按钮</i-button>
5
9
<i-button bind:click="handleClick" type="primary">Primary</i-button>
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ Component({
7
7
type : String ,
8
8
value : '' ,
9
9
} ,
10
+ inline : {
11
+ type : Boolean ,
12
+ value : false
13
+ } ,
10
14
// default, large, small
11
15
size : {
12
16
type : String ,
Original file line number Diff line number Diff line change 116
116
color : @btn-disable-color !important ;
117
117
background : @btn-disable-bg !important ;
118
118
}
119
+
120
+ &-inline {
121
+ display : inline-block ;
122
+ }
119
123
}
120
124
@keyframes btn- spin {
121
125
0% {
Original file line number Diff line number Diff line change 1
1
<button
2
- class="i-class i-btn {{ long ? 'i-btn-long' : '' }} {{ 'i-btn-' + size }} {{ 'i-btn-' + type }} {{ 'i-btn-' + shape }} {{ loading ? 'i-btn-loading' : '' }} {{ disabled ? 'i-btn-disabled' : ''}}"
2
+ class="i-class i-btn {{ long ? 'i-btn-long' : '' }} {{ 'i-btn-' + size }} {{ 'i-btn-' + type }} {{ 'i-btn-' + shape }} {{ loading ? 'i-btn-loading' : '' }} {{ disabled ? 'i-btn-disabled' : ''}} {{ inline ? 'i-btn-inline' : '' }} "
3
3
bindtap="handleTap"
4
4
open-type="{{ openType }}"
5
5
app-parameter="{{ appParameter }}"
You can’t perform that action at this time.
0 commit comments