1
1
<template >
2
2
<div class =" page" >
3
- <div class =" page" >
4
- <div class =" page__hd" >
5
- <div class =" page__title" >Button</div >
6
- <div class =" page__desc" >按钮,WeUI采用小程序原生的按钮为主体,加入一些间距的样式。</div >
7
- </div >
8
- <div class =" page__bd page__bd_spacing" >
9
- <button class =" weui-btn" type =" primary" >页面主操作 Normal</button >
10
- <button class =" weui-btn" type =" primary" disabled =" true" >页面主操作 Disabled</button >
11
-
12
- <button class =" weui-btn" type =" default" >页面次要操作 Normal</button >
13
- <button class =" weui-btn" type =" default" disabled =" true" >页面次要操作 Disabled</button >
14
-
15
- <button class =" weui-btn" type =" warn" >警告类操作 Normal</button >
16
- <button class =" weui-btn" type =" warn" disabled =" true" >警告类操作 Disabled</button >
3
+ <div class =" page__hd" >
4
+ <div class =" page__title" >Button</div >
5
+ <div class =" page__desc" >按钮,WeUI采用小程序原生的按钮为主体,加入一些间距的样式。</div >
6
+ </div >
7
+ <div class =" page__bd page__bd_spacing" >
8
+ <button class =" weui-btn" type =" primary" >页面主操作</button >
9
+ <button class =" weui-btn" type =" primary" disabled =" true" >页面主操作</button >
17
10
18
- <div class =" button-sp-area" >
19
- <button class =" weui-btn" type =" primary" plain =" true" >按钮</button >
20
- <button class =" weui-btn" type =" primary" disabled =" true" plain =" true" >按钮</button >
11
+ <button class =" weui-btn" type =" default" >页面次要操作</button >
12
+ <button class =" weui-btn" type =" default" disabled =" true" >页面次要操作</button >
21
13
22
- <button class =" weui-btn" type =" default " plain = " true " >按钮 </button >
23
- <button class =" weui-btn" type =" default " disabled =" true" plain = " true " >按钮 </button >
14
+ <button class =" weui-btn" type =" warn " >警告类操作 </button >
15
+ <button class =" weui-btn" type =" warn " disabled =" true" >警告类操作 </button >
24
16
25
- < button class =" weui-btn mini-btn " type = " primary " size = " mini " >按钮</ button >
26
- <button class =" weui-btn mini-btn" type =" default " size =" mini" >按钮</button >
27
- <button class =" weui-btn mini-btn" type =" warn " size =" mini" >按钮</button >
28
- </ div >
17
+ < div class =" button-sp-area " >
18
+ <button class =" weui-btn mini-btn" type =" primary " size =" mini" >按钮</button >
19
+ <button class =" weui-btn mini-btn" type =" default " size =" mini" >按钮</button >
20
+ <button class = " weui-btn mini-btn " type = " warn " size = " mini " >按钮</ button >
29
21
</div >
30
22
</div >
31
23
</div >
@@ -42,6 +34,13 @@ export default {
42
34
}
43
35
44
36
</script >
45
- <style >
46
-
37
+ <style scoped>
38
+ .button-sp-area {
39
+ margin : 0 auto ;
40
+ padding-top : 15px ;
41
+ text-align :center ;
42
+ }
43
+ .mini-btn {
44
+ margin : 0 4px ;
45
+ }
47
46
</style >
0 commit comments