its_ui_vite 1.0.7 → 1.0.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.
- package/package.json +1 -1
- package/src/assets/js/helpers.js +0 -25
- package/src/pages/index.vue +1 -1
package/package.json
CHANGED
package/src/assets/js/helpers.js
CHANGED
|
@@ -46,8 +46,6 @@ export function isMobile() {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
let MapTargets = new Map()
|
|
50
|
-
|
|
51
49
|
export const CClasses = {
|
|
52
50
|
scrollContainer: 'scroll-container',
|
|
53
51
|
}
|
|
@@ -61,27 +59,6 @@ export function addTracingElement(target, moveFn = () => {}) {
|
|
|
61
59
|
let timer
|
|
62
60
|
let debounceTimer
|
|
63
61
|
|
|
64
|
-
function isMovableTarget() {
|
|
65
|
-
if (target.value === null) return false
|
|
66
|
-
|
|
67
|
-
const currentPosition = target.value.getBoundingClientRect()
|
|
68
|
-
|
|
69
|
-
if (MapTargets.has(target.value)) {
|
|
70
|
-
const oldPosition = MapTargets.get(target.value)
|
|
71
|
-
|
|
72
|
-
const isMovingTargetX = oldPosition.x - currentPosition.x
|
|
73
|
-
const isMovingTargetY = oldPosition.y - currentPosition.y
|
|
74
|
-
|
|
75
|
-
MapTargets.set(target.value, currentPosition)
|
|
76
|
-
|
|
77
|
-
return isMovingTargetX !== 0 || isMovingTargetY !== 0
|
|
78
|
-
} else {
|
|
79
|
-
MapTargets.set(target.value, currentPosition)
|
|
80
|
-
|
|
81
|
-
return false
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
62
|
function isVisible(position) {
|
|
86
63
|
if (!position) return false
|
|
87
64
|
|
|
@@ -104,8 +81,6 @@ export function addTracingElement(target, moveFn = () => {}) {
|
|
|
104
81
|
}
|
|
105
82
|
|
|
106
83
|
function dispatch() {
|
|
107
|
-
if (!isMovableTarget()) return;
|
|
108
|
-
|
|
109
84
|
const position = target.value.getBoundingClientRect()
|
|
110
85
|
|
|
111
86
|
if (!position) return;
|
package/src/pages/index.vue
CHANGED
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
<!-- ./col -->
|
|
728
728
|
|
|
729
729
|
<!-- col -->
|
|
730
|
-
<div class="table__col scroll-sm">
|
|
730
|
+
<div class="table__col scroll-sm scroll-container">
|
|
731
731
|
<div class="table__item">
|
|
732
732
|
<CSelect @change_cselect="(evt) => log(['CSelect default', ...evt])" :autocomplete="true" size="md" :options="[
|
|
733
733
|
{
|