@antify/ui 3.1.7 → 3.1.8
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.
|
@@ -41,8 +41,10 @@ const transitionName = computed(() => {
|
|
|
41
41
|
|
|
42
42
|
const classes = computed(() => ({
|
|
43
43
|
'left-0 top-0 items-start': props.position === CornerPosition.topLeft,
|
|
44
|
+
'left-[50%] -translate-x-1/2 top-0': props.position === CornerPosition.topCenter,
|
|
44
45
|
'right-0 top-0 items-end': props.position === CornerPosition.topRight,
|
|
45
46
|
'left-0 bottom-0 items-start': props.position === CornerPosition.bottomLeft,
|
|
47
|
+
'left-[50%] -translate-x-1/2 bottom-0': props.position === CornerPosition.bottomCenter,
|
|
46
48
|
'right-0 bottom-0 items-end': props.position === CornerPosition.bottomRight,
|
|
47
49
|
}));
|
|
48
50
|
</script>
|
|
@@ -13,8 +13,10 @@ var Position = exports.Position = /* @__PURE__ */(Position2 => {
|
|
|
13
13
|
})(Position || {});
|
|
14
14
|
var CornerPosition = exports.CornerPosition = /* @__PURE__ */(CornerPosition2 => {
|
|
15
15
|
CornerPosition2["topLeft"] = "topLeft";
|
|
16
|
+
CornerPosition2["topCenter"] = "topCenter";
|
|
16
17
|
CornerPosition2["topRight"] = "topRight";
|
|
17
18
|
CornerPosition2["bottomRight"] = "bottomRight";
|
|
19
|
+
CornerPosition2["bottomCenter"] = "bottomCenter";
|
|
18
20
|
CornerPosition2["bottomLeft"] = "bottomLeft";
|
|
19
21
|
return CornerPosition2;
|
|
20
22
|
})(CornerPosition || {});
|
|
@@ -7,8 +7,10 @@ export var Position = /* @__PURE__ */ ((Position2) => {
|
|
|
7
7
|
})(Position || {});
|
|
8
8
|
export var CornerPosition = /* @__PURE__ */ ((CornerPosition2) => {
|
|
9
9
|
CornerPosition2["topLeft"] = "topLeft";
|
|
10
|
+
CornerPosition2["topCenter"] = "topCenter";
|
|
10
11
|
CornerPosition2["topRight"] = "topRight";
|
|
11
12
|
CornerPosition2["bottomRight"] = "bottomRight";
|
|
13
|
+
CornerPosition2["bottomCenter"] = "bottomCenter";
|
|
12
14
|
CornerPosition2["bottomLeft"] = "bottomLeft";
|
|
13
15
|
return CornerPosition2;
|
|
14
16
|
})(CornerPosition || {});
|