()
| 132 | |
| 133 | const Comp = { |
| 134 | setup() { |
| 135 | return () => [ |
| 136 | h( |
| 137 | Child, |
| 138 | null, |
| 139 | createSlots({ _: 2 as any }, [ |
| 140 | flag1.value |
| 141 | ? { |
| 142 | name: 'one', |
| 143 | fn: () => [h('span')], |
| 144 | } |
| 145 | : { |
| 146 | name: 'two', |
| 147 | fn: () => [h('div')], |
| 148 | }, |
| 149 | ]), |
| 150 | ), |
| 151 | ] |
| 152 | }, |
| 153 | } |
| 154 | render(h(Comp), nodeOps.createElement('div')) |
| 155 |
nothing calls this directly
no test coverage detected