Improve component stability
This commit is contained in:
parent
f1c9e596e8
commit
6aef54a9e0
3 changed files with 11 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ export default defineComponent({
|
|||
class: 'pxhvhrfw',
|
||||
}, options.map(option => withDirectives(h('button', {
|
||||
class: ['_button', { active: this.value === option.props.value }],
|
||||
key: option.props.value,
|
||||
key: option.key,
|
||||
disabled: this.value === option.props.value,
|
||||
onClick: () => {
|
||||
this.$emit('update:value', option.props.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue