@1337exp/taoui 5.23.1 → 5.23.2
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/CHANGELOG.md +6 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.23.2
|
|
4
|
+
|
|
5
|
+
Nothing to migrate; the defaults do not change.
|
|
6
|
+
|
|
7
|
+
- **TaoCopy: the arrow of the tip points at the button at the edge of the window.** When the tip was pushed in from the viewport edge, its arrow stayed in the middle of the tip and no longer pointed at the trigger. It now takes its place from where the trigger falls on the tip (kept off the rounded corners), and it moves to the top edge when the tip flips below the button.
|
|
8
|
+
|
|
3
9
|
## 5.23.1
|
|
4
10
|
|
|
5
11
|
Nothing to migrate; the defaults do not change.
|
package/dist/index.js
CHANGED
|
@@ -3328,7 +3328,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3328
3328
|
const copied = ref(false);
|
|
3329
3329
|
const triggerRef = ref(null);
|
|
3330
3330
|
const tipRef = ref(null);
|
|
3331
|
-
const { style: tipStyle } = useFloating(triggerRef, tipRef, () => copied.value && props.tip, { placement: "top", gap: 8 });
|
|
3331
|
+
const { style: tipStyle, side, anchorOffset } = useFloating(triggerRef, tipRef, () => copied.value && props.tip, { placement: "top", gap: 8 });
|
|
3332
|
+
const tipStyleWithArrow = computed(() => ({ ...tipStyle.value, "--tao-copy-arrow": `${anchorOffset.value.x}px` }));
|
|
3332
3333
|
let hideTimer = 0;
|
|
3333
3334
|
let visibleObserver = null;
|
|
3334
3335
|
function hideTip() {
|
|
@@ -3390,16 +3391,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3390
3391
|
key: 0,
|
|
3391
3392
|
ref_key: "tipRef",
|
|
3392
3393
|
ref: tipRef,
|
|
3393
|
-
class: "tao-copy__tip",
|
|
3394
|
+
class: normalizeClass(["tao-copy__tip", { "tao-copy__tip--below": unref(side) === "bottom" }]),
|
|
3394
3395
|
role: "status",
|
|
3395
|
-
style: normalizeStyle(
|
|
3396
|
-
}, toDisplayString(doneText.value),
|
|
3396
|
+
style: normalizeStyle(tipStyleWithArrow.value)
|
|
3397
|
+
}, toDisplayString(doneText.value), 7)) : createCommentVNode("", true)
|
|
3397
3398
|
]))
|
|
3398
3399
|
], 2);
|
|
3399
3400
|
};
|
|
3400
3401
|
}
|
|
3401
3402
|
});
|
|
3402
|
-
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-
|
|
3403
|
+
const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-e181129d"]]);
|
|
3403
3404
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
3404
3405
|
...{ name: "TaoContainer" },
|
|
3405
3406
|
__name: "TaoContainer",
|