Skip to content

Commit bbd729e

Browse files
donaldshenlevy9527
authored andcommitted
feat: 模板默认绑定 attrs & listeners (#99)
1 parent 7a39b31 commit bbd729e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/src/component.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="{{componentName}}">
2+
<div class="{{componentName}}" v-bind="$attrs" v-on="$listeners">
33
hello
44
</div>
55
</template>

0 commit comments

Comments
 (0)