@opentinyvue/vue-guide 3.24.0 → 3.25.0
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/lib/pc.js +5 -3
- package/package.json +5 -5
package/lib/pc.js
CHANGED
|
@@ -49,7 +49,7 @@ function _regenerator() {
|
|
|
49
49
|
function d(r4, n4) {
|
|
50
50
|
for (c3 = r4, u3 = n4, t = 0; !y && f2 && !o4 && t < p.length; t++) {
|
|
51
51
|
var o4, i4 = p[t], d2 = G.p, l = i4[2];
|
|
52
|
-
r4 > 3 ? (o4 = l === n4) && (
|
|
52
|
+
r4 > 3 ? (o4 = l === n4) && (u3 = i4[(c3 = i4[4]) ? 5 : (c3 = 3, 3)], i4[4] = i4[5] = e) : i4[0] <= d2 && ((o4 = r4 < 2 && d2 < i4[1]) ? (c3 = 0, G.v = n4, G.n = i4[1]) : d2 < l && (o4 = r4 < 3 || i4[0] > n4 || n4 > l) && (i4[4] = r4, i4[5] = n4, G.n = l, c3 = 0));
|
|
53
53
|
}
|
|
54
54
|
if (o4 || r4 > 1) return a;
|
|
55
55
|
throw y = true, n4;
|
|
@@ -159,9 +159,11 @@ function getSide(placement) {
|
|
|
159
159
|
function getAlignment(placement) {
|
|
160
160
|
return placement.split("-")[1];
|
|
161
161
|
}
|
|
162
|
+
var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
162
163
|
function getSideAxis(placement) {
|
|
163
|
-
return
|
|
164
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
164
165
|
}
|
|
166
|
+
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
165
167
|
function convertValueToCoords(_x, _x2) {
|
|
166
168
|
return _convertValueToCoords.apply(this, arguments);
|
|
167
169
|
}
|
|
@@ -179,7 +181,7 @@ function _convertValueToCoords() {
|
|
|
179
181
|
side = getSide(placement);
|
|
180
182
|
alignment = getAlignment(placement);
|
|
181
183
|
isVertical = getSideAxis(placement) === "y";
|
|
182
|
-
mainAxisMulti =
|
|
184
|
+
mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
183
185
|
crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
184
186
|
rawValue = evaluate(options, state);
|
|
185
187
|
_ref = typeof rawValue === "number" ? {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-guide",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.25.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@floating-ui/dom": "^1.0.10",
|
|
12
|
-
"@opentinyvue/utils": "~3.
|
|
13
|
-
"@opentinyvue/vue-common": "~3.
|
|
14
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.
|
|
12
|
+
"@opentinyvue/utils": "~3.25.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.25.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.25.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.25.0",
|
|
16
16
|
"shepherd.js": "11.1.1"
|
|
17
17
|
},
|
|
18
18
|
"types": "index.d.ts"
|