@mptw/skylens-ui 1.4.26 → 1.4.27
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/components/SLButton.vue +5 -2
- package/package.json +1 -1
package/components/SLButton.vue
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
button(:type='type', :class='btnClass' :disabled="disabled")
|
|
3
3
|
.btn-content
|
|
4
4
|
slot
|
|
5
|
-
SLIcon(v-if='icon !== ""', :icon='icon')
|
|
5
|
+
SLIcon.btn-icon(v-if='icon !== ""', :icon='icon')
|
|
6
6
|
span(v-if='title !== ""') {{ title }}
|
|
7
|
-
SLIcon(v-if='postIcon !== ""', :icon='postIcon')
|
|
7
|
+
SLIcon.btn-icon(v-if='postIcon !== ""', :icon='postIcon')
|
|
8
8
|
.btn-loading
|
|
9
9
|
.loading
|
|
10
10
|
div
|
|
@@ -285,6 +285,9 @@ export default defineComponent({
|
|
|
285
285
|
.btn-content
|
|
286
286
|
@apply inline-flex items-center space-x-2
|
|
287
287
|
|
|
288
|
+
.icon.btn-icon
|
|
289
|
+
@apply text-xs
|
|
290
|
+
|
|
288
291
|
.btn-loading
|
|
289
292
|
@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
|
|
290
293
|
|