@opentiny/tiny-robot 0.3.0-alpha.7 → 0.3.0-alpha.9
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/dropdown-menu/index.js +38 -33
- package/dist/index.d.ts +26 -14
- package/dist/index3.js +69 -64
- package/dist/style.css +1 -1
- package/dist/suggestion-popover/index.js +160 -154
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { B as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as M, mergeModels as f, useModel as B, computed as a, ref as x, watch as R, createBlock as E, openBlock as i, unref as T, withCtx as v, createElementVNode as D, createElementBlock as w, Fragment as H, renderList as L, toDisplayString as P, renderSlot as b } from "vue";
|
|
2
|
+
import { o as I, a as h } from "../index2.js";
|
|
3
|
+
import { B as S } from "../index3.js";
|
|
4
|
+
import { _ as $ } from "../_plugin-vue_export-helper.js";
|
|
5
|
+
const F = { class: "tr-dropdown-menu__list" }, N = ["onClick"], O = /* @__PURE__ */ M({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: /* @__PURE__ */ f({
|
|
8
8
|
appendTo: {},
|
|
@@ -14,29 +14,29 @@ const $ = { class: "tr-dropdown-menu__list" }, F = ["onClick"], N = /* @__PURE__
|
|
|
14
14
|
showModifiers: {}
|
|
15
15
|
}),
|
|
16
16
|
emits: /* @__PURE__ */ f(["item-click", "click-outside"], ["update:show"]),
|
|
17
|
-
setup(n, {
|
|
18
|
-
const t = n, c =
|
|
19
|
-
get: () => t.trigger === "manual" ? t.show :
|
|
17
|
+
setup(n, { expose: k, emit: _ }) {
|
|
18
|
+
const t = n, c = _, p = B(n, "show"), o = a({
|
|
19
|
+
get: () => t.trigger === "manual" ? t.show : p.value,
|
|
20
20
|
set: (e) => {
|
|
21
|
-
t.trigger !== "manual" && (
|
|
21
|
+
t.trigger !== "manual" && (p.value = e);
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), s = x(null), u = a(() => {
|
|
24
24
|
var e;
|
|
25
|
-
return (e =
|
|
26
|
-
}),
|
|
25
|
+
return (e = s.value) == null ? void 0 : e.triggerRef;
|
|
26
|
+
}), d = a(() => {
|
|
27
27
|
var e;
|
|
28
|
-
return (e =
|
|
28
|
+
return (e = s.value) == null ? void 0 : e.popperRef;
|
|
29
29
|
});
|
|
30
30
|
if (t.trigger === "click" || t.trigger === "manual")
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
I(
|
|
32
|
+
d,
|
|
33
33
|
(e) => {
|
|
34
34
|
c("click-outside", e), o.value = !1;
|
|
35
35
|
},
|
|
36
|
-
{ ignore: [
|
|
36
|
+
{ ignore: [u] }
|
|
37
37
|
);
|
|
38
38
|
else if (t.trigger === "hover") {
|
|
39
|
-
const e = h(
|
|
39
|
+
const e = h(u, { delayEnter: 100, delayLeave: 300 }), m = h(d, { delayEnter: 100, delayLeave: 300 });
|
|
40
40
|
R(
|
|
41
41
|
() => [e.value, m.value],
|
|
42
42
|
([r, g]) => {
|
|
@@ -44,44 +44,49 @@ const $ = { class: "tr-dropdown-menu__list" }, F = ["onClick"], N = /* @__PURE__
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const y = () => {
|
|
48
48
|
t.trigger === "click" && (o.value = !o.value);
|
|
49
|
-
},
|
|
49
|
+
}, C = (e) => {
|
|
50
50
|
o.value = !1, c("item-click", e);
|
|
51
51
|
};
|
|
52
|
-
return (
|
|
52
|
+
return k({
|
|
53
|
+
update: () => {
|
|
54
|
+
var e;
|
|
55
|
+
return (e = s.value) == null ? void 0 : e.update();
|
|
56
|
+
}
|
|
57
|
+
}), (e, m) => (i(), E(T(S), {
|
|
53
58
|
show: o.value,
|
|
54
59
|
class: "tr-dropdown-menu",
|
|
55
60
|
ref_key: "basePopperRef",
|
|
56
|
-
ref:
|
|
61
|
+
ref: s,
|
|
57
62
|
placement: "top-left",
|
|
58
63
|
"append-to": t.appendTo,
|
|
59
64
|
offset: 8,
|
|
60
65
|
"transition-props": { name: "tr-dropdown-menu" },
|
|
61
66
|
"prevent-overflow": !0,
|
|
62
|
-
"trigger-events": { onClick:
|
|
67
|
+
"trigger-events": { onClick: y }
|
|
63
68
|
}, {
|
|
64
69
|
trigger: v(() => [
|
|
65
|
-
|
|
70
|
+
b(e.$slots, "trigger", {}, void 0, !0)
|
|
66
71
|
]),
|
|
67
72
|
content: v(() => [
|
|
68
|
-
|
|
69
|
-
(
|
|
73
|
+
D("ul", F, [
|
|
74
|
+
(i(!0), w(H, null, L(t.items, (r) => (i(), w("li", {
|
|
70
75
|
class: "tr-dropdown-menu__list-item",
|
|
71
76
|
key: r.id,
|
|
72
|
-
onClick: (g) =>
|
|
73
|
-
},
|
|
77
|
+
onClick: (g) => C(r)
|
|
78
|
+
}, P(r.text), 9, N))), 128))
|
|
74
79
|
])
|
|
75
80
|
]),
|
|
76
81
|
_: 3
|
|
77
82
|
}, 8, ["show", "append-to", "trigger-events"]));
|
|
78
83
|
}
|
|
79
|
-
}),
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
n.component(
|
|
84
|
+
}), l = /* @__PURE__ */ $(O, [["__scopeId", "data-v-0cae3303"]]);
|
|
85
|
+
l.name = "TrDropdownMenu";
|
|
86
|
+
const V = function(n) {
|
|
87
|
+
n.component(l.name, l);
|
|
83
88
|
};
|
|
84
|
-
|
|
89
|
+
l.install = V;
|
|
85
90
|
export {
|
|
86
|
-
|
|
91
|
+
l as default
|
|
87
92
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,9 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
54
54
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
55
55
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
56
56
|
|
|
57
|
-
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {
|
|
57
|
+
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {
|
|
58
|
+
update: () => void | undefined;
|
|
59
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
58
60
|
"update:show": (value: boolean) => any;
|
|
59
61
|
} & {
|
|
60
62
|
"item-click": (item: DropdownMenuItem) => any;
|
|
@@ -108,7 +110,8 @@ transitionProps?: TransitionProps;
|
|
|
108
110
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
109
111
|
}> & Readonly<{}>, {
|
|
110
112
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
111
|
-
popperRef:
|
|
113
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
114
|
+
update: () => void;
|
|
112
115
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
113
116
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
114
117
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -144,9 +147,10 @@ preventOverflow?: boolean;
|
|
|
144
147
|
show?: boolean;
|
|
145
148
|
transitionProps?: TransitionProps;
|
|
146
149
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
147
|
-
}> & Readonly<{}>, "placement" | "
|
|
150
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
148
151
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
149
|
-
popperRef:
|
|
152
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
153
|
+
update: () => void;
|
|
150
154
|
}> & {} & ComponentCustomProperties & {} & {
|
|
151
155
|
$slots: Readonly<{
|
|
152
156
|
trigger?: () => VNode[];
|
|
@@ -727,7 +731,9 @@ floatingItemsRef: HTMLDivElement;
|
|
|
727
731
|
floatingMaybeItemRefs: unknown[];
|
|
728
732
|
}, HTMLDivElement>;
|
|
729
733
|
|
|
730
|
-
declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_4, {
|
|
734
|
+
declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_4, {
|
|
735
|
+
update: () => void | undefined;
|
|
736
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
731
737
|
"update:selectedGroup": (value: string) => any;
|
|
732
738
|
} & {
|
|
733
739
|
close: () => any;
|
|
@@ -790,7 +796,8 @@ transitionProps?: TransitionProps;
|
|
|
790
796
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
791
797
|
}> & Readonly<{}>, {
|
|
792
798
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
793
|
-
popperRef:
|
|
799
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
800
|
+
update: () => void;
|
|
794
801
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
795
802
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
796
803
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -826,9 +833,10 @@ preventOverflow?: boolean;
|
|
|
826
833
|
show?: boolean;
|
|
827
834
|
transitionProps?: TransitionProps;
|
|
828
835
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
829
|
-
}> & Readonly<{}>, "placement" | "
|
|
836
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
830
837
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
831
|
-
popperRef:
|
|
838
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
839
|
+
update: () => void;
|
|
832
840
|
}> & {} & ComponentCustomProperties & {} & {
|
|
833
841
|
$slots: Readonly<{
|
|
834
842
|
trigger?: () => VNode[];
|
|
@@ -948,7 +956,8 @@ declare function __VLS_template_3(): {
|
|
|
948
956
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
949
957
|
}> & Readonly<{}>, {
|
|
950
958
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
951
|
-
popperRef:
|
|
959
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
960
|
+
update: () => void;
|
|
952
961
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
953
962
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
954
963
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -984,9 +993,10 @@ declare function __VLS_template_3(): {
|
|
|
984
993
|
show?: boolean;
|
|
985
994
|
transitionProps?: TransitionProps;
|
|
986
995
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
987
|
-
}> & Readonly<{}>, "placement" | "
|
|
996
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
988
997
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
989
|
-
popperRef:
|
|
998
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
999
|
+
update: () => void;
|
|
990
1000
|
}> & {} & ComponentCustomProperties & {} & {
|
|
991
1001
|
$slots: Readonly<{
|
|
992
1002
|
trigger?: () => VNode[];
|
|
@@ -1594,7 +1604,8 @@ declare function __VLS_template_8(): {
|
|
|
1594
1604
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1595
1605
|
}> & Readonly<{}>, {
|
|
1596
1606
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1597
|
-
popperRef:
|
|
1607
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1608
|
+
update: () => void;
|
|
1598
1609
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1599
1610
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1600
1611
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -1630,9 +1641,10 @@ declare function __VLS_template_8(): {
|
|
|
1630
1641
|
show?: boolean;
|
|
1631
1642
|
transitionProps?: TransitionProps;
|
|
1632
1643
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1633
|
-
}> & Readonly<{}>, "placement" | "
|
|
1644
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1634
1645
|
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1635
|
-
popperRef:
|
|
1646
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1647
|
+
update: () => void;
|
|
1636
1648
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1637
1649
|
$slots: Readonly<{
|
|
1638
1650
|
trigger?: () => VNode[];
|
package/dist/index3.js
CHANGED
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
import { nextTick as
|
|
2
|
-
import { d as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
const ce =
|
|
7
|
-
setup: (r) => () =>
|
|
1
|
+
import { nextTick as R, h as k, defineComponent as g, render as B, onBeforeUnmount as j, Teleport as Z, computed as m, ref as $, createBlock as C, openBlock as h, Transition as q, normalizeProps as G, guardReactiveProps as J, withCtx as K, createElementBlock as L, createCommentVNode as Q, renderSlot as X, useSlots as Y, watch as ee, useAttrs as te, reactive as oe, resolveDynamicComponent as re, unref as T, mergeProps as S, createVNode as se } from "vue";
|
|
2
|
+
import { d as ne, f as pe, c as ae } from "./index2.js";
|
|
3
|
+
import { t as c } from "./utils.js";
|
|
4
|
+
import { _ as O } from "./_plugin-vue_export-helper.js";
|
|
5
|
+
import { u as le } from "./useSlotRefs.js";
|
|
6
|
+
const ce = g({
|
|
7
|
+
setup: (r) => () => k(Z, r.teleportProps, r.vnodeFactory()),
|
|
8
8
|
props: ["teleportProps", "vnodeFactory"]
|
|
9
9
|
});
|
|
10
|
-
function ie(r,
|
|
11
|
-
let e = null, o = null,
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
function ie(r, p) {
|
|
11
|
+
let e = null, o = null, a = !1;
|
|
12
|
+
R(() => {
|
|
13
|
+
a || (o = document.createElement("div"), e = k(ce, { teleportProps: r, vnodeFactory: p }), B(e, o));
|
|
14
14
|
}), j(() => {
|
|
15
|
-
|
|
16
|
-
o && (
|
|
15
|
+
a = !0, R(() => {
|
|
16
|
+
o && (B(null, o), o.remove(), e = null, o = null);
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function ue(r,
|
|
21
|
-
return
|
|
20
|
+
function ue(r, p) {
|
|
21
|
+
return m(() => {
|
|
22
22
|
var f;
|
|
23
|
-
const e =
|
|
23
|
+
const e = ne(r), o = (f = e == null ? void 0 : e.getRootNode) == null ? void 0 : f.call(e);
|
|
24
24
|
return o instanceof ShadowRoot ? o : document.body;
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
const fe = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "tr-base-popper"
|
|
30
|
-
}, de = /* @__PURE__ */ x({
|
|
27
|
+
const fe = /* @__PURE__ */ g({
|
|
31
28
|
__name: "Popper",
|
|
32
29
|
props: {
|
|
33
30
|
show: { type: Boolean },
|
|
34
31
|
transitionProps: {}
|
|
35
32
|
},
|
|
36
|
-
setup(r) {
|
|
37
|
-
|
|
33
|
+
setup(r, { expose: p }) {
|
|
34
|
+
const e = $(null);
|
|
35
|
+
return p({
|
|
36
|
+
popperRef: e
|
|
37
|
+
}), (o, a) => (h(), C(q, G(J(o.transitionProps)), {
|
|
38
38
|
default: K(() => [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
o.show ? (h(), L("div", {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "tr-base-popper",
|
|
42
|
+
ref_key: "popperRef",
|
|
43
|
+
ref: e
|
|
44
|
+
}, [
|
|
45
|
+
X(o.$slots, "default", {}, void 0, !0)
|
|
46
|
+
], 512)) : Q("", !0)
|
|
42
47
|
]),
|
|
43
48
|
_: 3
|
|
44
49
|
}, 16));
|
|
45
50
|
}
|
|
46
|
-
}),
|
|
51
|
+
}), de = /* @__PURE__ */ O(fe, [["__scopeId", "data-v-25c13ab7"]]), me = /* @__PURE__ */ g({
|
|
47
52
|
inheritAttrs: !1,
|
|
48
53
|
__name: "index",
|
|
49
54
|
props: {
|
|
@@ -62,22 +67,21 @@ const fe = {
|
|
|
62
67
|
triggerEvents: {}
|
|
63
68
|
},
|
|
64
69
|
setup(r, {
|
|
65
|
-
expose:
|
|
70
|
+
expose: p
|
|
66
71
|
}) {
|
|
67
72
|
const e = r, o = Y(), {
|
|
68
|
-
vnodes:
|
|
73
|
+
vnodes: a,
|
|
69
74
|
ref: u,
|
|
70
75
|
setRef: f
|
|
71
|
-
} =
|
|
76
|
+
} = le(o.trigger), E = (t = {}) => {
|
|
72
77
|
const s = {};
|
|
73
|
-
for (const [l,
|
|
74
|
-
/^on[A-Z]/.test(l) && typeof
|
|
78
|
+
for (const [l, n] of Object.entries(t))
|
|
79
|
+
/^on[A-Z]/.test(l) && typeof n == "function" && (s[l] = n);
|
|
75
80
|
return s;
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}, i = g(() => {
|
|
81
|
+
}, x = $(null), _ = m(() => {
|
|
82
|
+
var t;
|
|
83
|
+
return ((t = x.value) == null ? void 0 : t.popperRef) || null;
|
|
84
|
+
}), i = m(() => {
|
|
81
85
|
var t, s;
|
|
82
86
|
return typeof e.offset == "number" ? {
|
|
83
87
|
mainAxis: e.offset,
|
|
@@ -87,60 +91,61 @@ const fe = {
|
|
|
87
91
|
crossAxis: ((s = e.offset) == null ? void 0 : s.crossAxis) ?? 0
|
|
88
92
|
};
|
|
89
93
|
}), {
|
|
90
|
-
top:
|
|
91
|
-
bottom:
|
|
94
|
+
top: N,
|
|
95
|
+
bottom: V,
|
|
92
96
|
left: w,
|
|
93
|
-
right:
|
|
94
|
-
width:
|
|
95
|
-
update:
|
|
96
|
-
} =
|
|
97
|
+
right: z,
|
|
98
|
+
width: D,
|
|
99
|
+
update: y
|
|
100
|
+
} = pe(u), {
|
|
97
101
|
width: P,
|
|
98
102
|
height: v
|
|
99
|
-
} =
|
|
103
|
+
} = ae(_, void 0, {
|
|
100
104
|
box: "border-box"
|
|
101
|
-
}), F =
|
|
105
|
+
}), F = m(() => {
|
|
102
106
|
const {
|
|
103
107
|
placement: t,
|
|
104
108
|
preventOverflow: s
|
|
105
|
-
} = e, l = {},
|
|
109
|
+
} = e, l = {}, n = (d, A) => {
|
|
106
110
|
if (!s) {
|
|
107
|
-
l[
|
|
111
|
+
l[d] = A;
|
|
108
112
|
return;
|
|
109
113
|
}
|
|
110
|
-
const
|
|
111
|
-
l[
|
|
114
|
+
const b = d === "top" || d === "bottom", M = b ? "100dvh" : "100dvw", W = c(b ? v.value : P.value);
|
|
115
|
+
l[d] = `clamp(0px, ${A}, calc(${M} - ${W}))`;
|
|
112
116
|
};
|
|
113
|
-
return t.includes("top") &&
|
|
117
|
+
return t.includes("top") && n("top", c(N.value - v.value - i.value.mainAxis)), t.includes("bottom") && n("bottom", `calc(100% - ${c(V.value + v.value + i.value.mainAxis)})`), t.includes("left") && n("left", c(w.value + i.value.crossAxis)), t.includes("right") && n("right", `calc(100% - ${c(z.value + i.value.crossAxis)})`), t.includes("center") && n("left", c(w.value + D.value / 2 - P.value / 2 + i.value.crossAxis)), l;
|
|
114
118
|
});
|
|
115
|
-
|
|
116
|
-
t &&
|
|
119
|
+
ee(() => e.show, (t) => {
|
|
120
|
+
t && y();
|
|
117
121
|
}, {
|
|
118
122
|
flush: "post"
|
|
119
123
|
});
|
|
120
|
-
const
|
|
121
|
-
to: e.appendTo ||
|
|
124
|
+
const I = ue(u), U = te(), H = oe({
|
|
125
|
+
to: e.appendTo || I.value
|
|
122
126
|
});
|
|
123
|
-
return ie(
|
|
124
|
-
ref:
|
|
127
|
+
return ie(H, () => se(de, S({
|
|
128
|
+
ref: x,
|
|
125
129
|
show: e.show,
|
|
126
130
|
transitionProps: e.transitionProps,
|
|
127
131
|
style: F.value
|
|
128
|
-
},
|
|
132
|
+
}, U), {
|
|
129
133
|
default: () => {
|
|
130
134
|
var t;
|
|
131
135
|
return [(t = o.content) == null ? void 0 : t.call(o)];
|
|
132
136
|
}
|
|
133
|
-
})),
|
|
137
|
+
})), p({
|
|
134
138
|
triggerRef: u,
|
|
135
|
-
popperRef:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
popperRef: _,
|
|
140
|
+
update: y
|
|
141
|
+
}), (t, s) => (h(), C(re(T(a)[0]), S({
|
|
142
|
+
ref: T(f)
|
|
143
|
+
}, E(e.triggerEvents)), null, 16));
|
|
139
144
|
}
|
|
140
|
-
}),
|
|
141
|
-
|
|
145
|
+
}), ve = /* @__PURE__ */ O(me, [["__scopeId", "data-v-c09160be"]]);
|
|
146
|
+
ve.name = "TrBasePopper";
|
|
142
147
|
export {
|
|
143
|
-
|
|
148
|
+
ve as B,
|
|
144
149
|
ie as c,
|
|
145
150
|
ue as u
|
|
146
151
|
};
|