@mptw/skylens-ui 1.4.31 → 1.4.33
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/app.vue +5 -1
- package/components/SLButton.vue +15 -6
- package/package.json +1 -1
package/app.vue
CHANGED
package/components/SLButton.vue
CHANGED
|
@@ -23,7 +23,7 @@ export default defineComponent({
|
|
|
23
23
|
size: {
|
|
24
24
|
type: String,
|
|
25
25
|
default: "",
|
|
26
|
-
validator: (val: string) => ["", "lg", "md", "sm", "xs"].includes(val),
|
|
26
|
+
validator: (val: string) => ["", "lg", "md", "sm", "xs", 'xxs'].includes(val),
|
|
27
27
|
},
|
|
28
28
|
color: {
|
|
29
29
|
type: String,
|
|
@@ -111,24 +111,33 @@ export default defineComponent({
|
|
|
111
111
|
.btn
|
|
112
112
|
@apply relative inline-flex items-center justify-center s("p-1.75") border border-transparent rounded bg-transparent text-base leading-normal s("focus:outline-none")
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
&.btn-lg
|
|
115
115
|
@apply s("px-7.75")
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
&.btn-md
|
|
118
118
|
@apply s("px-3.75")
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
&.btn-sm
|
|
121
121
|
@apply s("py-0.75") s("px-1.75")
|
|
122
122
|
|
|
123
123
|
.btn-content
|
|
124
124
|
@apply space-x-1
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
&.btn-xs
|
|
127
127
|
@apply s("py-0.75") s("px-1.75") text-xs
|
|
128
128
|
|
|
129
129
|
.btn-content
|
|
130
130
|
@apply space-x-1
|
|
131
131
|
|
|
132
|
+
&.btn-xxs
|
|
133
|
+
@apply s("p-0.75") text-sm
|
|
134
|
+
|
|
135
|
+
.btn-content
|
|
136
|
+
@apply space-x-1
|
|
137
|
+
|
|
138
|
+
.icon.btn-icon
|
|
139
|
+
@apply text-sm leading-none
|
|
140
|
+
|
|
132
141
|
&-white
|
|
133
142
|
@apply bg-white border-white text-gray-2 s("hover:bg-white") s("hover:border-white")
|
|
134
143
|
|
|
@@ -286,7 +295,7 @@ export default defineComponent({
|
|
|
286
295
|
@apply inline-flex items-center space-x-1
|
|
287
296
|
|
|
288
297
|
.icon.btn-icon
|
|
289
|
-
@apply text-xs
|
|
298
|
+
@apply inline-flex text-xs leading-none
|
|
290
299
|
|
|
291
300
|
.btn-loading
|
|
292
301
|
@apply absolute s('top-1/2') s('left-1/2') w-4 h-4 s('-translate-x-1/2') s('-translate-y-1/2') pointer-events-none hidden
|