We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
at
0
<v-clicks>
1 parent bb46180 commit 9153dd3Copy full SHA for 9153dd3
packages/client/builtin/VClicks.ts
@@ -43,9 +43,11 @@ export default defineComponent({
43
const every = +this.every
44
const at = normalizeSingleAtValue(this.at)
45
const isRelative = typeof at === 'string'
46
- if (!at) {
47
- console.warn('[slidev] Invalid at prop for v-clicks component:', at)
48
- return
+
+ let elements = this.$slots.default?.()
49
+ if (at == null || !elements) {
50
+ return elements
51
}
52
53
const click = resolveDirective('click')!
@@ -71,11 +73,6 @@ export default defineComponent({
71
73
}) as T
72
74
75
- let elements = this.$slots.default?.()
-
76
- if (!elements)
77
78
79
elements = openAllTopLevelSlots(toArray(elements))
80
81
const mapSubList = (children: VNodeArrayChildren, depth = 1): VNodeArrayChildren => {
0 commit comments