MCPcopy Create free account
hub / github.com/vuejs/test-utils / WithPropCustomClassComponent

Class WithPropCustomClassComponent

test-dts/mount.d-test.ts:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276class WithPropCustomClassComponent extends CustomClassComponent<CustomClassComponentProps> {
277 static defaultProps: (keyof CustomClassComponentProps)[] = ['size', 'age']
278 count = ref(0)
279 changeCount(count: number) {
280 this.count.value = count
281 }
282 render() {
283 return h('div', `hello world ${this.count.value}${this.props.size}`)
284 }
285}
286
287expectError(
288 mount(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…