mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
fix bug
This commit is contained in:
parent
8a74cd5b30
commit
da564638ad
@ -13,11 +13,11 @@ export default defineComponent({
|
|||||||
return withDirectives(h('div', {
|
return withDirectives(h('div', {
|
||||||
class: 'pxhvhrfw',
|
class: 'pxhvhrfw',
|
||||||
}, options.map(option => withDirectives(h('button', {
|
}, options.map(option => withDirectives(h('button', {
|
||||||
class: ['_button', { active: this.modelValue === option.props.modelValue }],
|
class: ['_button', { active: this.modelValue === option.props.value }],
|
||||||
key: option.key,
|
key: option.key,
|
||||||
disabled: this.modelValue === option.props.modelValue,
|
disabled: this.modelValue === option.props.value,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
this.$emit('update:modelValue', option.props.modelValue);
|
this.$emit('update:modelValue', option.props.value);
|
||||||
}
|
}
|
||||||
}, option.children), [
|
}, option.children), [
|
||||||
[resolveDirective('click-anime')]
|
[resolveDirective('click-anime')]
|
||||||
|
Loading…
Reference in New Issue
Block a user