sprintify-ui 0.8.56 → 0.8.57
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/sprintify-ui.es.js +5 -4
- package/package.json +1 -1
- package/src/components/BaseTabs.vue +20 -13
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -44987,11 +44987,12 @@ const U7 = /* @__PURE__ */ Yo(P7, [["render", H7]]), V7 = { class: "flex-shrink-
|
|
|
44987
44987
|
l.value.style.transform = `translateX(${m}px)`, l.value.style.width = `${f}px`;
|
|
44988
44988
|
return;
|
|
44989
44989
|
}
|
|
44990
|
-
|
|
44990
|
+
const g = `translateX(${m}px)`, v = `${f}px`;
|
|
44991
|
+
l.value.animate ? l.value.animate(
|
|
44991
44992
|
[
|
|
44992
44993
|
{
|
|
44993
|
-
transform:
|
|
44994
|
-
width:
|
|
44994
|
+
transform: g,
|
|
44995
|
+
width: v
|
|
44995
44996
|
}
|
|
44996
44997
|
],
|
|
44997
44998
|
{
|
|
@@ -44999,7 +45000,7 @@ const U7 = /* @__PURE__ */ Yo(P7, [["render", H7]]), V7 = { class: "flex-shrink-
|
|
|
44999
45000
|
easing: "ease-in-out",
|
|
45000
45001
|
fill: "both"
|
|
45001
45002
|
}
|
|
45002
|
-
);
|
|
45003
|
+
) : (l.value.style.transform = g, l.value.style.width = v);
|
|
45003
45004
|
}
|
|
45004
45005
|
return (u, d) => (A(), $("div", b9, [
|
|
45005
45006
|
d[0] || (d[0] = M("div", { class: "absolute bottom-0 left-0 h-px w-full bg-slate-300" }, null, -1)),
|
package/package.json
CHANGED
|
@@ -146,19 +146,26 @@ function animateLine(animate = true) {
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
const transformPx = `translateX(${x}px)`;
|
|
150
|
+
const widthPx = `${width}px`;
|
|
151
|
+
|
|
152
|
+
if (lineRef.value.animate) {
|
|
153
|
+
lineRef.value.animate(
|
|
154
|
+
[
|
|
155
|
+
{
|
|
156
|
+
transform: transformPx,
|
|
157
|
+
width: widthPx,
|
|
158
|
+
}
|
|
159
|
+
],
|
|
151
160
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
);
|
|
162
|
-
|
|
161
|
+
duration: 200,
|
|
162
|
+
easing: 'ease-in-out',
|
|
163
|
+
fill: 'both',
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
} else {
|
|
167
|
+
lineRef.value.style.transform = transformPx;
|
|
168
|
+
lineRef.value.style.width = widthPx;
|
|
169
|
+
}
|
|
163
170
|
}
|
|
164
171
|
</script>
|