7fa943eb
梁灏
init
|
1
|
<template>
|
f1b3ed30
梁灏
Button add circle...
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<h4>基本</h4>
<br><br>
<Button-group>
<i-button>取消</i-button>
<i-button type="primary">确定</i-button>
</Button-group>
<Button-group>
<i-button disabled>昨日</i-button>
<i-button disabled>今日</i-button>
<i-button disabled>明日</i-button>
</Button-group>
<Button-group>
<i-button type="primary">L</i-button>
<i-button>M</i-button>
<i-button type="ghost">M</i-button>
<i-button type="dashed">R</i-button>
</Button-group>
<br><br>
<h4>配合图标</h4>
<br><br>
<Button-group>
<i-button type="primary">
<Icon type="chevron-left"></Icon>
前进
</i-button>
<i-button type="primary">
后退
<Icon type="chevron-right"></Icon>
</i-button>
</Button-group>
<Button-group>
<i-button type="primary" icon="ios-skipbackward"></i-button>
<i-button type="primary" icon="ios-skipforward"></i-button>
</Button-group>
<Button-group>
<i-button type="ghost" icon="ios-color-wand-outline"></i-button>
<i-button type="ghost" icon="ios-sunny-outline"></i-button>
<i-button type="ghost" icon="ios-crop"></i-button>
<i-button type="ghost" icon="ios-color-filter-outline"></i-button>
</Button-group>
<br><br>
<h4>圆角</h4>
<br><br>
<Button-group shape="circle">
<i-button type="primary">
<Icon type="chevron-left"></Icon>
前进
</i-button>
<i-button type="primary">
后退
<Icon type="chevron-right"></Icon>
</i-button>
</Button-group>
<Button-group shape="circle">
<i-button type="primary" icon="ios-skipbackward"></i-button>
<i-button type="primary" icon="ios-skipforward"></i-button>
</Button-group>
<Button-group shape="circle">
<i-button type="ghost" icon="ios-color-wand-outline"></i-button>
<i-button type="ghost" icon="ios-sunny-outline"></i-button>
<i-button type="ghost" icon="ios-crop"></i-button>
<i-button type="ghost" icon="ios-color-filter-outline"></i-button>
</Button-group>
<Button-group shape="circle" size="large">
<i-button type="primary" icon="ios-skipbackward"></i-button>
<i-button type="primary" icon="ios-skipforward"></i-button>
</Button-group>
<Button-group shape="circle" size="large">
<i-button type="ghost" icon="ios-color-wand-outline"></i-button>
<i-button type="ghost" icon="ios-sunny-outline"></i-button>
<i-button type="ghost" icon="ios-crop"></i-button>
<i-button type="ghost" icon="ios-color-filter-outline"></i-button>
</Button-group>
<Button-group shape="circle" size="small">
<i-button type="primary" icon="ios-skipbackward"></i-button>
<i-button type="primary" icon="ios-skipforward"></i-button>
</Button-group>
<Button-group shape="circle" size="small">
<i-button type="ghost" icon="ios-color-wand-outline"></i-button>
<i-button type="ghost" icon="ios-sunny-outline"></i-button>
<i-button type="ghost" icon="ios-crop"></i-button>
<i-button type="ghost" icon="ios-color-filter-outline"></i-button>
</Button-group>
<br><br>
|
698e3b61
梁灏
iButton add some ...
|
86
87
88
89
90
91
92
|
<i-button type="primary" icon="ios-search" shape="circle" size="small"></i-button>
<i-button type="primary" icon="ios-search" shape="circle"></i-button>
<i-button type="primary" icon="ios-search" shape="circle" size="large"></i-button>
<i-button type="primary" icon="ios-search" shape="circle" size="small">搜索</i-button>
<i-button type="primary" icon="ios-search" shape="circle">搜索</i-button>
<i-button type="primary" icon="ios-search" shape="circle" size="large">搜索</i-button>
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
93
94
95
|
<i-button>Default</i-button>
<i-button type="primary">Primary</i-button>
<i-button type="ghost">Ghost</i-button>
|
698e3b61
梁灏
iButton add some ...
|
96
97
98
|
<i-button type="dashed">Dashed</i-button>
<i-button type="text">文字按钮</i-button>
<i-button type="text" disabled>文字按钮</i-button>
|
e1596b7e
梁灏
add Button UI
|
99
|
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
100
101
102
|
<i-button type="primary" size="large">Large</i-button>
<i-button type="primary">Default</i-button>
<i-button type="primary" size="small">Small</i-button>
|
e1596b7e
梁灏
add Button UI
|
103
|
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
104
105
|
<i-button>Default</i-button>
<i-button disabled>Default(Disabled)</i-button>
|
e1596b7e
梁灏
add Button UI
|
106
|
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
107
108
|
<i-button type="primary">Primary</i-button>
<i-button type="primary" disabled>Primary(Disabled)</i-button>
|
e1596b7e
梁灏
add Button UI
|
109
|
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
110
111
|
<i-button type="ghost">Ghost</i-button>
<i-button type="ghost" disabled>Ghost(Disabled)</i-button>
|
e1596b7e
梁灏
add Button UI
|
112
|
<br><br>
|
698e3b61
梁灏
iButton add some ...
|
113
114
115
|
<i-button type="dashed">dashed</i-button>
<i-button type="dashed" disabled>dashed(Disabled)</i-button>
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
116
117
|
<i-button type="primary" shape="circle" icon="ios-search"></i-button>
<i-button type="primary" icon="ios-search">搜索</i-button>
|
e1596b7e
梁灏
add Button UI
|
118
|
<br><br>
|
d6342fe1
jingsam
fixed ie bug
|
119
|
<i-button type="ghost" shape="circle">
|
e1596b7e
梁灏
add Button UI
|
120
|
<Icon type="search"></Icon>
|
d6342fe1
jingsam
fixed ie bug
|
121
122
|
</i-button>
<i-button type="ghost">
|
e1596b7e
梁灏
add Button UI
|
123
124
|
<Icon type="search"></Icon>
搜索
|
d6342fe1
jingsam
fixed ie bug
|
125
126
|
</i-button>
<i-button type="ghost" shape="circle" size="large">
|
e1596b7e
梁灏
add Button UI
|
127
|
<Icon type="search"></Icon>
|
d6342fe1
jingsam
fixed ie bug
|
128
129
|
</i-button>
<i-button type="ghost" shape="circle" size="small">
|
e1596b7e
梁灏
add Button UI
|
130
|
<Icon type="search"></Icon>
|
d6342fe1
jingsam
fixed ie bug
|
131
|
</i-button>
|
e1596b7e
梁灏
add Button UI
|
132
|
<br><br><br>
|
d6342fe1
jingsam
fixed ie bug
|
133
134
135
136
|
<i-button type="primary" loading>Loading...</i-button>
<i-button type="primary" loading size="large">Loading...</i-button>
<i-button type="primary" loading size="small">Loading...</i-button>
<i-button type="primary" :loading="loading" @click="toLoading">
|
e1596b7e
梁灏
add Button UI
|
137
138
|
<span v-if="!loading">Click me!</span>
<span v-else>Loading...</span>
|
d6342fe1
jingsam
fixed ie bug
|
139
140
|
</i-button>
<i-button type="primary" :loading="loading2" icon="checkmark-round" @click="toLoading2">
|
e1596b7e
梁灏
add Button UI
|
141
142
|
<span v-if="!loading2">Click me!</span>
<span v-else>Loading...</span>
|
d6342fe1
jingsam
fixed ie bug
|
143
|
</i-button>
|
e1596b7e
梁灏
add Button UI
|
144
145
|
<h4>基本</h4>
<Button-group size="large">
|
d6342fe1
jingsam
fixed ie bug
|
146
147
|
<i-button>取消</i-button>
<i-button type="primary">确定</i-button>
|
e1596b7e
梁灏
add Button UI
|
148
|
</Button-group>
|
7fa943eb
梁灏
init
|
149
|
<Button-group>
|
d6342fe1
jingsam
fixed ie bug
|
150
151
152
|
<i-button type="primary">L</i-button>
<i-button>M</i-button>
<i-button type="ghost">R</i-button>
|
698e3b61
梁灏
iButton add some ...
|
153
|
<i-button type="dashed">R</i-button>
|
e1596b7e
梁灏
add Button UI
|
154
155
156
|
</Button-group>
<h4>配合图标</h4>
<Button-group>
|
d6342fe1
jingsam
fixed ie bug
|
157
|
<i-button type="primary">
|
e1596b7e
梁灏
add Button UI
|
158
159
|
<Icon type="chevron-left"></Icon>
前进
|
d6342fe1
jingsam
fixed ie bug
|
160
161
|
</i-button>
<i-button type="primary">
|
e1596b7e
梁灏
add Button UI
|
162
163
|
后退
<Icon type="chevron-right"></Icon>
|
d6342fe1
jingsam
fixed ie bug
|
164
|
</i-button>
|
e1596b7e
梁灏
add Button UI
|
165
166
|
</Button-group>
<Button-group>
|
d6342fe1
jingsam
fixed ie bug
|
167
168
|
<i-button type="primary" icon="cloud"></i-button>
<i-button type="primary" icon="upload"></i-button>
|
7fa943eb
梁灏
init
|
169
|
</Button-group>
|
7fa943eb
梁灏
init
|
170
171
|
</template>
<script>
|
698e3b61
梁灏
iButton add some ...
|
172
|
import { Button, Icon, Input, Switch, Radio, Checkbox, InputNumber, Row, Col, Page } from 'iview';
|
7fa943eb
梁灏
init
|
173
174
175
176
177
178
|
const ButtonGroup = Button.Group;
const RadioGroup = Radio.Group;
const CheckboxGroup = Checkbox.Group;
export default {
components: {
|
d6342fe1
jingsam
fixed ie bug
|
179
|
iButton: Button,
|
7fa943eb
梁灏
init
|
180
181
182
183
184
185
186
187
188
189
190
|
ButtonGroup,
Icon,
iInput: Input,
Switch,
Radio,
RadioGroup,
Checkbox,
CheckboxGroup,
InputNumber,
Row,
iCol: Col,
|
698e3b61
梁灏
iButton add some ...
|
191
|
Page
|
7fa943eb
梁灏
init
|
192
193
|
},
props: {
|
d6342fe1
jingsam
fixed ie bug
|
194
|
|
7fa943eb
梁灏
init
|
195
196
197
|
},
data () {
return {
|
e1596b7e
梁灏
add Button UI
|
198
|
loading: false,
|
72493927
梁灏
fixed bug: Can no...
|
199
200
|
loading2: false,
model6: ''
|
d6342fe1
jingsam
fixed ie bug
|
201
|
}
|
7fa943eb
梁灏
init
|
202
|
},
|
7fa943eb
梁灏
init
|
203
|
methods: {
|
e1596b7e
梁灏
add Button UI
|
204
205
|
toLoading () {
this.loading = true;
|
7fa943eb
梁灏
init
|
206
|
},
|
e1596b7e
梁灏
add Button UI
|
207
208
|
toLoading2 () {
this.loading2 = true;
|
7fa943eb
梁灏
init
|
209
210
211
212
|
}
}
}
</script>
|