@v1nt1248/3nclient-lib 0.1.83 → 0.1.84
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/dist/style.css +1 -1
- package/dist/ui3n-components.js +353 -350
- package/package.json +1 -1
- package/src/components/ui3n-chip/ui3n-chip.vue +13 -3
package/package.json
CHANGED
|
@@ -24,14 +24,24 @@ const slots = useSlots();
|
|
|
24
24
|
const $css = useCssModule();
|
|
25
25
|
|
|
26
26
|
const height = computed(() => `${props.height}px`);
|
|
27
|
-
const iconHeight = computed(() =>
|
|
28
|
-
|
|
27
|
+
const iconHeight = computed(() => Number(props.height) - 4);
|
|
28
|
+
|
|
29
29
|
const maxWidth = computed(() => `${props.maxWidth}px`);
|
|
30
30
|
const bgColor = computed(() => props.color);
|
|
31
31
|
const textSize = computed(() => `${props.textSize}px`);
|
|
32
32
|
const textColor = computed(() => props.textColor);
|
|
33
33
|
const hasLeftSlot = computed(() => !!slots.left);
|
|
34
34
|
|
|
35
|
+
const padding = computed(() => {
|
|
36
|
+
const padValue = Math.round(Number(props.height) / 3);
|
|
37
|
+
|
|
38
|
+
if (hasLeftSlot.value) {
|
|
39
|
+
return `0 ${padValue}px 0 4px`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return `0 ${padValue}px`;
|
|
43
|
+
});
|
|
44
|
+
|
|
35
45
|
const mainCssClasses = computed(() => {
|
|
36
46
|
const val = [$css.ui3nChip];
|
|
37
47
|
|
|
@@ -76,7 +86,7 @@ function onClick() {
|
|
|
76
86
|
position: relative;
|
|
77
87
|
display: flex;
|
|
78
88
|
height: v-bind('height');
|
|
79
|
-
padding:
|
|
89
|
+
padding: v-bind('padding');
|
|
80
90
|
width: max-content;
|
|
81
91
|
max-width: v-bind('maxWidth');
|
|
82
92
|
background-color: v-bind('bgColor');
|