@uxda/appkit 1.2.76 → 1.2.77
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/index.js +22 -10
- package/package.json +1 -1
- package/src/user/components/UserFeedbackEntry.vue +21 -5
package/dist/index.js
CHANGED
|
@@ -6783,7 +6783,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
6783
6783
|
withTabbar: { type: Boolean, required: false, default: false },
|
|
6784
6784
|
withNavbar: { type: Boolean, required: false, default: false }
|
|
6785
6785
|
},
|
|
6786
|
-
emits: ["close", "jump"],
|
|
6786
|
+
emits: ["close", "jump", "drag"],
|
|
6787
6787
|
setup(__props, { emit: __emit }) {
|
|
6788
6788
|
const props = __props;
|
|
6789
6789
|
function onClose() {
|
|
@@ -6797,6 +6797,14 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
6797
6797
|
const dragStyle = computed(() => {
|
|
6798
6798
|
return `left:${dragData.left}px; top:${dragData.top}px; width:${dragData.width}px; height:${dragData.height}px;`;
|
|
6799
6799
|
});
|
|
6800
|
+
function onDragMoveHandler(e) {
|
|
6801
|
+
emits("drag", true);
|
|
6802
|
+
onDragMove(e);
|
|
6803
|
+
}
|
|
6804
|
+
function onDragEndHandler() {
|
|
6805
|
+
emits("drag", false);
|
|
6806
|
+
onDragEnd();
|
|
6807
|
+
}
|
|
6800
6808
|
const {
|
|
6801
6809
|
dragData: dragData1,
|
|
6802
6810
|
initDragData: initDragData1,
|
|
@@ -6807,6 +6815,14 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
6807
6815
|
const dragStyle1 = computed(() => {
|
|
6808
6816
|
return `left:${dragData1.left}px; top:${dragData1.top}px; width:${dragData1.width}px; height:${dragData1.height}px;`;
|
|
6809
6817
|
});
|
|
6818
|
+
function onDragMoveHandler1(e) {
|
|
6819
|
+
emits("drag", true);
|
|
6820
|
+
onDragMove1(e);
|
|
6821
|
+
}
|
|
6822
|
+
function onDragEndHandler1() {
|
|
6823
|
+
emits("drag", false);
|
|
6824
|
+
onDragEnd1();
|
|
6825
|
+
}
|
|
6810
6826
|
onMounted(async () => {
|
|
6811
6827
|
const navbarHeight = safeArea.nav + safeArea.status;
|
|
6812
6828
|
initDragData({
|
|
@@ -6839,10 +6855,8 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
6839
6855
|
style: normalizeStyle(dragStyle.value),
|
|
6840
6856
|
onTouchstart: _cache[0] || (_cache[0] = //@ts-ignore
|
|
6841
6857
|
(...args) => unref(onDragStart) && unref(onDragStart)(...args)),
|
|
6842
|
-
onTouchmove:
|
|
6843
|
-
|
|
6844
|
-
onTouchend: _cache[2] || (_cache[2] = //@ts-ignore
|
|
6845
|
-
(...args) => unref(onDragEnd) && unref(onDragEnd)(...args)),
|
|
6858
|
+
onTouchmove: onDragMoveHandler,
|
|
6859
|
+
onTouchend: onDragEndHandler,
|
|
6846
6860
|
class: "user-feedback-entry",
|
|
6847
6861
|
onClick: onJump
|
|
6848
6862
|
},
|
|
@@ -6854,12 +6868,10 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
6854
6868
|
{
|
|
6855
6869
|
key: 1,
|
|
6856
6870
|
style: normalizeStyle(dragStyle1.value),
|
|
6857
|
-
onTouchstart: _cache[
|
|
6871
|
+
onTouchstart: _cache[1] || (_cache[1] = //@ts-ignore
|
|
6858
6872
|
(...args) => unref(onDragStart1) && unref(onDragStart1)(...args)),
|
|
6859
|
-
onTouchmove:
|
|
6860
|
-
|
|
6861
|
-
onTouchend: _cache[5] || (_cache[5] = //@ts-ignore
|
|
6862
|
-
(...args) => unref(onDragEnd1) && unref(onDragEnd1)(...args)),
|
|
6873
|
+
onTouchmove: onDragMoveHandler1,
|
|
6874
|
+
onTouchend: onDragEndHandler1,
|
|
6863
6875
|
class: "user-feedback-entry hasStorage"
|
|
6864
6876
|
},
|
|
6865
6877
|
[
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:style="dragStyle"
|
|
4
4
|
@touchstart="onDragStart"
|
|
5
|
-
@touchmove="
|
|
6
|
-
@touchend="
|
|
5
|
+
@touchmove="onDragMoveHandler"
|
|
6
|
+
@touchend="onDragEndHandler"
|
|
7
7
|
class="user-feedback-entry"
|
|
8
8
|
@click="onJump"
|
|
9
9
|
v-if="!hasStorage"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<div
|
|
19
19
|
:style="dragStyle1"
|
|
20
20
|
@touchstart="onDragStart1"
|
|
21
|
-
@touchmove="
|
|
22
|
-
@touchend="
|
|
21
|
+
@touchmove="onDragMoveHandler1"
|
|
22
|
+
@touchend="onDragEndHandler1"
|
|
23
23
|
class="user-feedback-entry hasStorage"
|
|
24
24
|
v-else
|
|
25
25
|
>
|
|
@@ -72,6 +72,14 @@ const { dragData, initDragData, onDragStart, onDragMove, onDragEnd } = useDragBo
|
|
|
72
72
|
const dragStyle = computed(() => {
|
|
73
73
|
return `left:${dragData.left}px; top:${dragData.top}px; width:${dragData.width}px; height:${dragData.height}px;`
|
|
74
74
|
})
|
|
75
|
+
function onDragMoveHandler(e: TouchEvent) {
|
|
76
|
+
emits('drag', true)
|
|
77
|
+
onDragMove(e)
|
|
78
|
+
}
|
|
79
|
+
function onDragEndHandler() {
|
|
80
|
+
emits('drag', false)
|
|
81
|
+
onDragEnd()
|
|
82
|
+
}
|
|
75
83
|
|
|
76
84
|
const {
|
|
77
85
|
dragData: dragData1,
|
|
@@ -83,6 +91,14 @@ const {
|
|
|
83
91
|
const dragStyle1 = computed(() => {
|
|
84
92
|
return `left:${dragData1.left}px; top:${dragData1.top}px; width:${dragData1.width}px; height:${dragData1.height}px;`
|
|
85
93
|
})
|
|
94
|
+
function onDragMoveHandler1(e: TouchEvent) {
|
|
95
|
+
emits('drag', true)
|
|
96
|
+
onDragMove1(e)
|
|
97
|
+
}
|
|
98
|
+
function onDragEndHandler1() {
|
|
99
|
+
emits('drag', false)
|
|
100
|
+
onDragEnd1()
|
|
101
|
+
}
|
|
86
102
|
|
|
87
103
|
onMounted(async () => {
|
|
88
104
|
const navbarHeight = safeArea.nav + safeArea.status
|
|
@@ -110,7 +126,7 @@ onMounted(async () => {
|
|
|
110
126
|
})
|
|
111
127
|
|
|
112
128
|
// 父组件事件
|
|
113
|
-
const emits = defineEmits(['close', 'jump'])
|
|
129
|
+
const emits = defineEmits(['close', 'jump', 'drag'])
|
|
114
130
|
</script>
|
|
115
131
|
|
|
116
132
|
<style lang="scss">
|