()
| 31 | |
| 32 | const Hello = { |
| 33 | setup() { |
| 34 | const count = ref(0) |
| 35 | |
| 36 | function inc() { |
| 37 | count.value++ |
| 38 | click() |
| 39 | } |
| 40 | |
| 41 | return () => |
| 42 | h(Child, { |
| 43 | foo: count.value + 1, |
| 44 | id: 'test', |
| 45 | class: 'c' + count.value, |
| 46 | style: { color: count.value ? 'red' : 'green' }, |
| 47 | onClick: inc, |
| 48 | 'data-id': count.value + 1, |
| 49 | }) |
| 50 | }, |
| 51 | } |
| 52 | |
| 53 | const Child = { |
nothing calls this directly
no test coverage detected