Skip to content

Commit 737c10c

Browse files
authored
chore: comment unused code (#4533)
1 parent 235db80 commit 737c10c

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

packages/docs/layouts/default.vue

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ afterEach(() => {
6262
6363
6464
// Halloween background animation
65-
const mouse = ref({ x: 0, y: 0 })
66-
const mouseInertia = ref({ x: 0, y: 0 })
67-
68-
const onMouseMove = (e: MouseEvent) => {
69-
mouse.value = { x: e.clientX, y: e.clientY }
70-
mouseInertia.value = {
71-
x: mouseInertia.value.x * 0.9 + (mouse.value.x - mouseInertia.value.x) * 0.1,
72-
y: mouseInertia.value.y * 0.9 + (mouse.value.y - mouseInertia.value.y) * 0.1,
73-
}
74-
}
65+
// const mouse = ref({ x: 0, y: 0 })
66+
// const mouseInertia = ref({ x: 0, y: 0 })
67+
68+
// const onMouseMove = (e: MouseEvent) => {
69+
// mouse.value = { x: e.clientX, y: e.clientY }
70+
// mouseInertia.value = {
71+
// x: mouseInertia.value.x * 0.9 + (mouse.value.x - mouseInertia.value.x) * 0.1,
72+
// y: mouseInertia.value.y * 0.9 + (mouse.value.y - mouseInertia.value.y) * 0.1,
73+
// }
74+
// }
7575
7676
onMounted(() => {
7777
isSidebarVisible.value = !breakpoints.smDown
@@ -87,22 +87,22 @@ onMounted(() => {
8787
currentPresetName.value = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
8888
}
8989
90-
window.addEventListener('mousemove', onMouseMove)
90+
// window.addEventListener('mousemove', onMouseMove)
9191
92-
const resetInertia = () => {
93-
mouseInertia.value = {
94-
x: mouseInertia.value.x * 0.9 + -1 * 0.1,
95-
y: mouseInertia.value.y * 0.9 + -1 * 0.1,
96-
}
97-
requestAnimationFrame(resetInertia)
98-
}
92+
// const resetInertia = () => {
93+
// mouseInertia.value = {
94+
// x: mouseInertia.value.x * 0.9 + -1 * 0.1,
95+
// y: mouseInertia.value.y * 0.9 + -1 * 0.1,
96+
// }
97+
// requestAnimationFrame(resetInertia)
98+
// }
9999
100-
requestAnimationFrame(resetInertia)
100+
// requestAnimationFrame(resetInertia)
101101
})
102102
103-
onUnmounted(() => {
104-
window.removeEventListener('mousemove', onMouseMove)
105-
})
103+
// onUnmounted(() => {
104+
// window.removeEventListener('mousemove', onMouseMove)
105+
// })
106106
107107
useHead({
108108
link: [

packages/ui/src/components/va-dropdown/VaDropdown.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ export default defineComponent({
216216
},
217217
218218
render () {
219-
console.log('VaDropdown render', this.$props, this.$slots)
220-
221219
const getParentScopedId = () => {
222220
const instance = getCurrentInstance()
223221
@@ -237,8 +235,6 @@ export default defineComponent({
237235
}
238236
: {}
239237
240-
console.log(scopePatch)
241-
242238
const slotBind = {
243239
isOpened: this.valueComputed,
244240
hide: this.hide,

0 commit comments

Comments
 (0)