Skip to content

Commit 58365b6

Browse files
authored
fix: use template instead of render function (#82)
1 parent df6e5e9 commit 58365b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<template>
2+
<div>{{ finalValue }}</div>
3+
</template>
4+
15
<script>
26
import { nanoid } from 'nanoid'
37
@@ -45,9 +49,6 @@ export default {
4549
props: {
4650
value: { required: true, type: String },
4751
},
48-
render() {
49-
return <div>{this.finalValue}</div>
50-
},
5152
watch: {
5253
finalValue() {
5354
return this.update()

0 commit comments

Comments
 (0)