8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be1961 commit 78c21d2Copy full SHA for 78c21d2
docs/rules/no-ref-as-operand.md
@@ -25,7 +25,7 @@ You must use `.value` to access the `Ref` value.
25
import { ref } from 'vue'
26
27
export default {
28
- setup() {
+ setup(_props, { emit }) {
29
const count = ref(0)
30
const ok = ref(true)
31
@@ -34,12 +34,14 @@ export default {
34
count.value + 1
35
1 + count.value
36
var msg = ok.value ? 'yes' : 'no'
37
+ emit('increment', count.value)
38
39
/* ✗ BAD */
40
count++
41
count + 1
42
1 + count
43
var msg = ok ? 'yes' : 'no'
44
+ emit('increment', count)
45
46
return {
47
count
0 commit comments