@dataloop-ai/components 0.17.112 → 0.17.114
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/package.json
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
:id="uuid"
|
|
4
4
|
:style="cssVars"
|
|
5
5
|
class="root-container"
|
|
6
|
-
:class="{
|
|
6
|
+
:class="{
|
|
7
|
+
'root-container--s': isSmall,
|
|
8
|
+
[identifierClass]: true,
|
|
9
|
+
'fit-content': fitContent
|
|
10
|
+
}"
|
|
7
11
|
>
|
|
8
12
|
<div
|
|
9
13
|
v-show="!!title.length || !!tooltip.length"
|
|
@@ -1159,4 +1163,7 @@ export default defineComponent({
|
|
|
1159
1163
|
padding-top: 3px;
|
|
1160
1164
|
}
|
|
1161
1165
|
}
|
|
1166
|
+
.fit-content > * {
|
|
1167
|
+
max-width: fit-content;
|
|
1168
|
+
}
|
|
1162
1169
|
</style>
|
|
@@ -166,13 +166,13 @@
|
|
|
166
166
|
/>
|
|
167
167
|
With Fit
|
|
168
168
|
<dl-select
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
:options="[
|
|
170
|
+
{ label: 'Option 1', value: 1 },
|
|
171
|
+
{ label: 'Option 2, longer one', value: 2 },
|
|
172
|
+
{ label: 'Option 3', value: 3 }
|
|
173
|
+
]"
|
|
171
174
|
size="m"
|
|
172
|
-
|
|
173
|
-
search
|
|
174
|
-
capitalized-options
|
|
175
|
-
fit-container
|
|
175
|
+
fit-content
|
|
176
176
|
/>
|
|
177
177
|
With Label and sub label
|
|
178
178
|
<dl-select
|
|
@@ -101,8 +101,8 @@ export function getAnchorProps(el: HTMLElement, offset: number[]) {
|
|
|
101
101
|
bottom,
|
|
102
102
|
width,
|
|
103
103
|
height,
|
|
104
|
-
middle: left + (right - left) / 2,
|
|
105
|
-
center: top + (bottom - top) / 2
|
|
104
|
+
middle: left + (right - left) / 2 + offset[0] ?? 0,
|
|
105
|
+
center: top + (bottom - top) / 2 + offset[1] ?? 0
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|