feat: Initial devtools support (#1125)

This commit is contained in:
Guillaume Chau
2020-07-17 00:18:52 +02:00
committed by GitHub
parent 5ed73cd874
commit 568b6db12b
15 changed files with 132 additions and 17 deletions

View File

@@ -622,7 +622,7 @@ describe('emits', () => {
defineComponent({
emits: {
click: (n: number) => typeof n === 'number',
input: (b: string) => null
input: (b: string) => b.length > 1
},
setup(props, { emit }) {
emit('click', 1)