Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore: Add regression tests for #1476 * fix: reactive props and keep refs * chore: fix type compile error on test component
- Loading branch information
1 parent
86baba7
commit bb1a378
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div> | ||
<template v-for="field of availableFields" :key="field.name"> | ||
<button class="field" @click="selectedField = field"> | ||
{{ field.name }} | ||
</button> | ||
<div | ||
v-if="selectedField === field" | ||
class="selectedField" | ||
> | ||
{{ field.name }} | ||
</div> | ||
</template> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
export default { | ||
props: { | ||
availableFields: { type: Array, required: true } | ||
}, | ||
data: () => ({ | ||
selectedField: '' | ||
}) | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters