wl-design-mobile 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/btn/lambo-big-button.vue +12 -12
- package/btn/lambo-medium-button.vue +12 -11
- package/btn/lambo-small-button.vue +10 -10
- package/package.json +1 -1
package/README.md
ADDED
package/btn/lambo-big-button.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="btns">
|
|
3
|
-
<ul class="
|
|
3
|
+
<ul class="big-btn-ul">
|
|
4
4
|
<van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading" :plain="plain"
|
|
5
|
-
:type="type" class="
|
|
6
|
-
<slot name="
|
|
5
|
+
:type="type" class="big-btn" size="large" @click="handleClick"> {{ text }}
|
|
6
|
+
<slot name="extend"></slot>
|
|
7
7
|
</van-button>
|
|
8
8
|
|
|
9
9
|
</ul>
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
type: Boolean,
|
|
29
29
|
default: false
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
text: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: '大号按钮'
|
|
34
34
|
},
|
|
@@ -68,19 +68,19 @@ export default {
|
|
|
68
68
|
<style scoped>
|
|
69
69
|
@import "../styles/index.less";
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
.big-btn {
|
|
72
72
|
height: 38px;
|
|
73
73
|
border-radius: 3px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/*填充按钮primary类型按钮样式 */
|
|
77
|
-
/deep/ .
|
|
77
|
+
/deep/ .big-btn-ul .van-button--primary {
|
|
78
78
|
background: var(--scl-blue);
|
|
79
79
|
border: 1px solid var(--scl-blue);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/*填充按钮primary类型不可用按钮样式 */
|
|
83
|
-
/deep/ .
|
|
83
|
+
/deep/ .big-btn-ul .van-button--disabled {
|
|
84
84
|
cursor: not-allowed;
|
|
85
85
|
opacity: 1;
|
|
86
86
|
background-color: var(--scl-gray-6);
|
|
@@ -89,34 +89,34 @@ export default {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/*按钮文字样式*/
|
|
92
|
-
/deep/ .
|
|
92
|
+
/deep/ .big-btn-ul .van-button__text {
|
|
93
93
|
font-size: 14px;
|
|
94
94
|
padding: 10px 0px;
|
|
95
95
|
font-family: 微软雅黑, serif Regular;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/*线框按钮按钮样式*/
|
|
99
|
-
/deep/ .
|
|
99
|
+
/deep/ .big-btn-ul .van-button--plain.van-button--info {
|
|
100
100
|
color: var(--scl-blue);
|
|
101
101
|
border: 1px solid var(--scl-blue);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/*线框按钮不可用按钮样式*/
|
|
105
|
-
/deep/ .
|
|
105
|
+
/deep/ .big-btn-ul .van-button--plain.van-button--info.van-button--disabled {
|
|
106
106
|
color: #000000;
|
|
107
107
|
border: 1px solid var(--scl-gray-6);
|
|
108
108
|
background-color: #ffffff;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/*无框类型按钮样式 */
|
|
112
|
-
/deep/ .
|
|
112
|
+
/deep/ .big-btn-ul .van-button--default {
|
|
113
113
|
background: var(--scl-white-1);
|
|
114
114
|
border: 1px solid var(--scl-white-1);
|
|
115
115
|
color: var(--scl-blue);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/*无框按钮不可用按钮样式*/
|
|
119
|
-
/deep/ .
|
|
119
|
+
/deep/ .big-btn-ul .van-button--default.van-button--disabled {
|
|
120
120
|
color: #000000;
|
|
121
121
|
border: 1px solid var(--scl-white-1);
|
|
122
122
|
background-color: var(--scl-white-1);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="btns">
|
|
3
|
-
<ul class="
|
|
3
|
+
<ul class="mid-btn-ul">
|
|
4
4
|
<van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading" :plain="plain"
|
|
5
|
-
:type="type" class="
|
|
5
|
+
:type="type" class="mid-btn" size="normal" @click="handleClick"> {{ text }}
|
|
6
|
+
<slot name="extend"></slot>
|
|
6
7
|
</van-button>
|
|
7
8
|
</ul>
|
|
8
9
|
</div>
|
|
@@ -66,19 +67,19 @@ export default {
|
|
|
66
67
|
<style scoped>
|
|
67
68
|
@import "../styles/index.less";
|
|
68
69
|
|
|
69
|
-
.
|
|
70
|
+
.mid-btn {
|
|
70
71
|
height: 30px;
|
|
71
72
|
border-radius: 3px;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
/*填充按钮primary类型按钮样式 */
|
|
75
|
-
/deep/ .
|
|
76
|
+
/deep/ .mid-btn-ul .van-button--primary {
|
|
76
77
|
background: var(--scl-blue);
|
|
77
78
|
border: 1px solid var(--scl-blue);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/*填充按钮primary类型不可用按钮样式 */
|
|
81
|
-
/deep/ .
|
|
82
|
+
/deep/ .mid-btn-ul .van-button--disabled {
|
|
82
83
|
cursor: not-allowed;
|
|
83
84
|
opacity: 1;
|
|
84
85
|
background-color: var(--scl-gray-6);
|
|
@@ -87,34 +88,34 @@ export default {
|
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
/*按钮文字样式*/
|
|
90
|
-
/deep/ .
|
|
91
|
-
font-size:
|
|
91
|
+
/deep/ .mid-btn-ul .van-button__text {
|
|
92
|
+
font-size: 12px;
|
|
92
93
|
padding: 10px 0px;
|
|
93
94
|
font-family: 微软雅黑, serif Regular;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/*线框按钮按钮样式*/
|
|
97
|
-
/deep/ .
|
|
98
|
+
/deep/ .mid-btn-ul .van-button--plain.van-button--info {
|
|
98
99
|
color: var(--scl-blue);
|
|
99
100
|
border: 1px solid var(--scl-blue);
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
/*线框按钮不可用按钮样式*/
|
|
103
|
-
/deep/ .
|
|
104
|
+
/deep/ .mid-btn-ul .van-button--plain.van-button--info.van-button--disabled {
|
|
104
105
|
color: #000000;
|
|
105
106
|
border: 1px solid var(--scl-gray-6);
|
|
106
107
|
background-color: #ffffff;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/*无框类型按钮样式 */
|
|
110
|
-
/deep/ .
|
|
111
|
+
/deep/ .mid-btn-ul .van-button--default {
|
|
111
112
|
background: var(--scl-white-1);
|
|
112
113
|
border: 1px solid var(--scl-white-1);
|
|
113
114
|
color: var(--scl-blue);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
/*无框按钮不可用按钮样式*/
|
|
117
|
-
/deep/ .
|
|
118
|
+
/deep/ .mid-btn-ul .van-button--default.van-button--disabled {
|
|
118
119
|
color: #000000;
|
|
119
120
|
border: 1px solid var(--scl-white-1);
|
|
120
121
|
background-color: var(--scl-white-1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="btns">
|
|
3
|
-
<ul class="
|
|
3
|
+
<ul class="small-button-ul">
|
|
4
4
|
<van-button :disabled="disabled" :icon="icon" :icon-position="position" :loading="loading" :plain="plain"
|
|
5
|
-
:type="type" class="
|
|
5
|
+
:type="type" class="small-button" size="small" @click="handleClick"> {{ text }}
|
|
6
6
|
</van-button>
|
|
7
7
|
</ul>
|
|
8
8
|
</div>
|
|
@@ -66,19 +66,19 @@ export default {
|
|
|
66
66
|
<style scoped>
|
|
67
67
|
@import "../styles/index.less";
|
|
68
68
|
|
|
69
|
-
.
|
|
69
|
+
.small-button {
|
|
70
70
|
height: 27px;
|
|
71
71
|
border-radius: 3px;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/*填充按钮primary类型按钮样式 */
|
|
75
|
-
/deep/ .
|
|
75
|
+
/deep/ .small-button-ul .van-button--primary {
|
|
76
76
|
background: var(--scl-blue);
|
|
77
77
|
border: 1px solid var(--scl-blue);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/*填充按钮primary类型不可用按钮样式 */
|
|
81
|
-
/deep/ .
|
|
81
|
+
/deep/ .small-button-ul .van-button--disabled {
|
|
82
82
|
cursor: not-allowed;
|
|
83
83
|
opacity: 1;
|
|
84
84
|
background-color: var(--scl-gray-6);
|
|
@@ -87,34 +87,34 @@ export default {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/*按钮文字样式*/
|
|
90
|
-
/deep/ .
|
|
90
|
+
/deep/ .small-button-ul .van-button__text {
|
|
91
91
|
font-size: 11px;
|
|
92
92
|
padding: 10px 0px;
|
|
93
93
|
font-family: 微软雅黑, serif Regular;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/*线框按钮按钮样式*/
|
|
97
|
-
/deep/ .
|
|
97
|
+
/deep/ .small-button-ul .van-button--plain.van-button--info {
|
|
98
98
|
color: var(--scl-blue);
|
|
99
99
|
border: 1px solid var(--scl-blue);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/*线框按钮不可用按钮样式*/
|
|
103
|
-
/deep/ .
|
|
103
|
+
/deep/ .small-button-ul .van-button--plain.van-button--info.van-button--disabled {
|
|
104
104
|
color: #000000;
|
|
105
105
|
border: 1px solid var(--scl-gray-6);
|
|
106
106
|
background-color: #ffffff;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/*无框类型按钮样式 */
|
|
110
|
-
/deep/ .
|
|
110
|
+
/deep/ .small-button-ul .van-button--default {
|
|
111
111
|
background: var(--scl-white-1);
|
|
112
112
|
border: 1px solid var(--scl-white-1);
|
|
113
113
|
color: var(--scl-blue);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/*无框按钮不可用按钮样式*/
|
|
117
|
-
/deep/ .
|
|
117
|
+
/deep/ .small-button-ul .van-button--default.van-button--disabled {
|
|
118
118
|
color: #000000;
|
|
119
119
|
border: 1px solid var(--scl-white-1);
|
|
120
120
|
background-color: var(--scl-white-1);
|