Skip to content

Commit ac2114b

Browse files
committed
test: update cases
1 parent a07a633 commit ac2114b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/compiler-sfc/__tests__/compileScript.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,18 @@ defineExpose({ foo: 123 })
474474
</tempalte>
475475
`)
476476
})
477+
478+
test('v-on contain object', () => {
479+
// should not error
480+
compile(`
481+
<script setup lang="ts">
482+
import { foo } from './foo'
483+
</script>
484+
<template>
485+
<div v-on="{ foo }"></div>
486+
</tempalte>
487+
`)
488+
})
477489
})
478490

479491
describe('inlineTemplate mode', () => {

0 commit comments

Comments
 (0)