@1001-digital/components 2.0.0 → 2.0.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/package.json +1 -1
- package/src/base/components/BottomNav.vue +1 -1
- package/src/base/components/Combobox.vue +1 -1
- package/src/base/components/Dropdown.vue +1 -1
- package/src/base/components/FormDatePicker.vue +1 -1
- package/src/base/components/FormInputGroup.vue +1 -1
- package/src/base/components/Sidebar.vue +14 -3
- package/src/base/components/Tooltip.vue +1 -1
package/package.json
CHANGED
|
@@ -187,7 +187,7 @@ const open = defineModel<boolean>('open')
|
|
|
187
187
|
const placeholderValue = ref(props.placeholder) as ReturnType<typeof ref<DateValue | undefined>>
|
|
188
188
|
</script>
|
|
189
189
|
|
|
190
|
-
<style>
|
|
190
|
+
<style scoped>
|
|
191
191
|
@layer components {
|
|
192
192
|
.form-date-picker-anchor {
|
|
193
193
|
display: inline-flex;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
position: relative;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
|
+
gap: var(--border-width);
|
|
12
13
|
|
|
13
14
|
& :deep(input + .icon) {
|
|
14
15
|
position: absolute;
|
|
@@ -42,7 +43,6 @@
|
|
|
42
43
|
+ input,
|
|
43
44
|
+ button,
|
|
44
45
|
+ a {
|
|
45
|
-
margin-inline-start: calc(-1 * var(--border-width));
|
|
46
46
|
border-start-start-radius: 0 !important;
|
|
47
47
|
border-end-start-radius: 0 !important;
|
|
48
48
|
}
|
|
@@ -25,7 +25,15 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
ref,
|
|
30
|
+
reactive,
|
|
31
|
+
computed,
|
|
32
|
+
watch,
|
|
33
|
+
watchEffect,
|
|
34
|
+
onMounted,
|
|
35
|
+
onBeforeUnmount,
|
|
36
|
+
} from 'vue'
|
|
29
37
|
import { useMediaQuery, useScrollLock, useElementSize } from '@vueuse/core'
|
|
30
38
|
|
|
31
39
|
const open = defineModel<boolean>('open', { default: false })
|
|
@@ -119,6 +127,9 @@ onMounted(() => {
|
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
|
|
130
|
+
// Prevent browser back/forward navigation gesture
|
|
131
|
+
e.preventDefault()
|
|
132
|
+
|
|
122
133
|
const w = sidebarWidth.value
|
|
123
134
|
if (!w) return
|
|
124
135
|
|
|
@@ -160,7 +171,7 @@ onMounted(() => {
|
|
|
160
171
|
}
|
|
161
172
|
|
|
162
173
|
document.addEventListener('touchstart', onTouchStart, { passive: true })
|
|
163
|
-
document.addEventListener('touchmove', onTouchMove, { passive:
|
|
174
|
+
document.addEventListener('touchmove', onTouchMove, { passive: false })
|
|
164
175
|
document.addEventListener('touchend', onTouchEnd)
|
|
165
176
|
|
|
166
177
|
cleanupSwipe = () => {
|
|
@@ -206,7 +217,7 @@ defineExpose({
|
|
|
206
217
|
})
|
|
207
218
|
</script>
|
|
208
219
|
|
|
209
|
-
<style>
|
|
220
|
+
<style scoped>
|
|
210
221
|
@layer components {
|
|
211
222
|
.sidebar {
|
|
212
223
|
position: fixed;
|