# 按钮 - Button
# 示例
# 代码
点击查看源码
<template>
<div id="app">
<div class="button-list">
<van-button>按钮</van-button>
<van-button type="primary">按钮</van-button>
<van-button type="success">按钮</van-button>
<van-button type="info">按钮</van-button>
<van-button type="warning">按钮</van-button>
<van-button type="danger">按钮</van-button>
<hr />
<van-button plain>按钮</van-button>
<van-button plain type="primary">按钮</van-button>
<van-button plain type="success">按钮</van-button>
<van-button plain type="info">按钮</van-button>
<van-button plain type="warning">按钮</van-button>
<van-button plain type="danger">按钮</van-button>
<hr />
<van-button icon="van-icon-check" round>按钮</van-button>
<van-button icon="van-icon-check" round type="primary">按钮</van-button>
<van-button icon="van-icon-check" round type="success">按钮</van-button>
<van-button icon="van-icon-check" round type="info">按钮</van-button>
<van-button icon="van-icon-check" round type="warning">按钮</van-button>
<van-button icon="van-icon-check" round type="danger">按钮</van-button>
<hr />
<van-button icon="van-icon-ice-cream" circle></van-button>
<van-button icon="van-icon-ice-cream" circle type="primary"></van-button>
<van-button icon="van-icon-ice-cream" circle type="success"></van-button>
<van-button icon="van-icon-ice-cream" circle type="info"></van-button>
<van-button icon="van-icon-ice-cream" circle type="warning"></van-button>
<van-button icon="van-icon-ice-cream" circle type="danger"></van-button>
<hr />
<van-button icon="van-icon-ice-cream" plain circle></van-button>
<van-button icon="van-icon-check" plain circle type="primary"></van-button>
<van-button icon="van-icon-check" plain circle type="success"></van-button>
<van-button icon="van-icon-check" plain circle type="info"></van-button>
<van-button icon="van-icon-check" plain circle type="warning"></van-button>
<van-button icon="van-icon-check" plain circle type="danger"></van-button>
</div>
</div>
</template>
<script>
export default {
name: "App",
components:{
},
};
</script>
<style lang="scss" >
</style>
1
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
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
# API
参数 | 说明 |
---|---|
type | 按钮类型:primary , success , info , warning ,danger |
plain | 是否朴素按钮 |
disabled | 是否禁用按钮 |
round | 是否圆角按钮 |
circle | 是否圆型按钮 |