g-ai-robot3 0.1.62 → 0.1.63
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/g-ai-robot3.es.js +21 -18
- package/dist/g-ai-robot3.umd.js +23 -23
- package/dist/index.css +1 -1
- package/dist/utils/useDraggable.d.ts +1 -0
- package/package.json +1 -1
package/dist/g-ai-robot3.es.js
CHANGED
|
@@ -95155,7 +95155,7 @@ function h6(e, t = {}) {
|
|
|
95155
95155
|
}, u = (d) => {
|
|
95156
95156
|
if (t.dragHandleClass && !d.target.closest(`.${t.dragHandleClass}`))
|
|
95157
95157
|
return;
|
|
95158
|
-
d.preventDefault();
|
|
95158
|
+
t.stopPropagation && d.stopPropagation(), d.preventDefault();
|
|
95159
95159
|
const { clientX: f, clientY: p } = l(d);
|
|
95160
95160
|
if (!e.value)
|
|
95161
95161
|
return;
|
|
@@ -95577,7 +95577,6 @@ const cbe = {
|
|
|
95577
95577
|
position: "fixed",
|
|
95578
95578
|
right: "calc(100vw - 900px)",
|
|
95579
95579
|
top: "calc(100vh - 800px)",
|
|
95580
|
-
// Fix: `calc()` should be inside a string
|
|
95581
95580
|
cursor: "grab",
|
|
95582
95581
|
zIndex: 1e3
|
|
95583
95582
|
}), { startDrag: Me } = h6(Ce, {
|
|
@@ -95585,20 +95584,23 @@ const cbe = {
|
|
|
95585
95584
|
initialY: window.innerHeight - 300
|
|
95586
95585
|
}), { startDrag: De } = h6(Te, {
|
|
95587
95586
|
initialX: 50,
|
|
95588
|
-
initialY: window.innerHeight - 200
|
|
95587
|
+
initialY: window.innerHeight - 200,
|
|
95588
|
+
dragHandleClass: "dialog-header",
|
|
95589
|
+
stopPropagation: !0
|
|
95590
|
+
// 阻止事件冒泡到父元素
|
|
95589
95591
|
});
|
|
95590
95592
|
return (Oe, Ee) => ($t(), Qt("div", {
|
|
95591
95593
|
id: "g-ai-robot",
|
|
95592
|
-
style: vg(Oe.robotCss)
|
|
95594
|
+
style: vg(Oe.robotCss),
|
|
95595
|
+
ref_key: "robotElement",
|
|
95596
|
+
ref: Ce,
|
|
95597
|
+
onMousedown: Ee[3] || (Ee[3] = //@ts-ignore
|
|
95598
|
+
(...ye) => Be(Me) && Be(Me)(...ye)),
|
|
95599
|
+
onTouchstart: Ee[4] || (Ee[4] = //@ts-ignore
|
|
95600
|
+
(...ye) => Be(Me) && Be(Me)(...ye))
|
|
95593
95601
|
}, [
|
|
95594
95602
|
Ot("div", {
|
|
95595
|
-
class: Hr(["robot", { disabled: c.value }])
|
|
95596
|
-
ref_key: "robotElement",
|
|
95597
|
-
ref: Ce,
|
|
95598
|
-
onMousedown: Ee[0] || (Ee[0] = //@ts-ignore
|
|
95599
|
-
(...ye) => Be(Me) && Be(Me)(...ye)),
|
|
95600
|
-
onTouchstart: Ee[1] || (Ee[1] = //@ts-ignore
|
|
95601
|
-
(...ye) => Be(Me) && Be(Me)(...ye))
|
|
95603
|
+
class: Hr(["robot", { disabled: c.value }])
|
|
95602
95604
|
}, [
|
|
95603
95605
|
l.mode == "video" || l.mode == "audio" ? ($t(), Qt("div", cbe, [
|
|
95604
95606
|
Ot("img", {
|
|
@@ -95615,7 +95617,7 @@ const cbe = {
|
|
|
95615
95617
|
}), null, 16)) : vn("", !0),
|
|
95616
95618
|
Oe.showMsgBubble ? ($t(), Bi(sbe, Ft({ key: 2 }, Oe.$props, { "msg-list": h.value }), null, 16, ["msg-list"])) : vn("", !0)
|
|
95617
95619
|
])) : vn("", !0)
|
|
95618
|
-
],
|
|
95620
|
+
], 2),
|
|
95619
95621
|
L.value ? ($t(), Qt("div", {
|
|
95620
95622
|
key: 0,
|
|
95621
95623
|
class: "talk_main",
|
|
@@ -95628,10 +95630,11 @@ const cbe = {
|
|
|
95628
95630
|
}, {
|
|
95629
95631
|
default: Tu(() => [
|
|
95630
95632
|
Ot("header", {
|
|
95631
|
-
onMousedown: Ee[
|
|
95633
|
+
onMousedown: Ee[0] || (Ee[0] = //@ts-ignore
|
|
95634
|
+
(...ye) => Be(De) && Be(De)(...ye)),
|
|
95635
|
+
onTouchstart: Ee[1] || (Ee[1] = //@ts-ignore
|
|
95632
95636
|
(...ye) => Be(De) && Be(De)(...ye)),
|
|
95633
|
-
|
|
95634
|
-
(...ye) => Be(De) && Be(De)(...ye))
|
|
95637
|
+
class: "dialog-header"
|
|
95635
95638
|
}, [
|
|
95636
95639
|
Ot("span", null, KI(Oe.title), 1),
|
|
95637
95640
|
Ot("span", {
|
|
@@ -95726,7 +95729,7 @@ const cbe = {
|
|
|
95726
95729
|
}, null, 2),
|
|
95727
95730
|
Ot("div", mbe, [
|
|
95728
95731
|
to(Ot("textarea", {
|
|
95729
|
-
"onUpdate:modelValue": Ee[
|
|
95732
|
+
"onUpdate:modelValue": Ee[2] || (Ee[2] = (ye) => f.value = ye),
|
|
95730
95733
|
placeholder: "请输入内容",
|
|
95731
95734
|
autosize: { minRows: 2, maxRows: 4 },
|
|
95732
95735
|
onKeyup: WI(de, ["enter"]),
|
|
@@ -95772,9 +95775,9 @@ const cbe = {
|
|
|
95772
95775
|
_: 1
|
|
95773
95776
|
}, 8, ["theme"])
|
|
95774
95777
|
], 4)) : vn("", !0)
|
|
95775
|
-
],
|
|
95778
|
+
], 36));
|
|
95776
95779
|
}
|
|
95777
|
-
}), Mm = /* @__PURE__ */ u1(wbe, [["__scopeId", "data-v-
|
|
95780
|
+
}), Mm = /* @__PURE__ */ u1(wbe, [["__scopeId", "data-v-a9a3a4f3"]]);
|
|
95778
95781
|
Mm.name = "GAiRobot3";
|
|
95779
95782
|
Mm.install = function(e) {
|
|
95780
95783
|
e.component("GAiRobot3", Mm);
|