summaryrefslogtreecommitdiff
path: root/src/client/components/tab.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/components/tab.vue')
-rw-r--r--src/client/components/tab.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/components/tab.vue b/src/client/components/tab.vue
index 3902b7f98f..7705fc3d6d 100644
--- a/src/client/components/tab.vue
+++ b/src/client/components/tab.vue
@@ -3,7 +3,7 @@ import { defineComponent, h, resolveDirective, withDirectives } from 'vue';
export default defineComponent({
props: {
- value: {
+ modelValue: {
required: true,
},
},
@@ -13,11 +13,11 @@ export default defineComponent({
return withDirectives(h('div', {
class: 'pxhvhrfw',
}, options.map(option => withDirectives(h('button', {
- class: ['_button', { active: this.value === option.props.value }],
+ class: ['_button', { active: this.modelValue === option.props.modelValue }],
key: option.key,
- disabled: this.value === option.props.value,
+ disabled: this.modelValue === option.props.modelValue,
onClick: () => {
- this.$emit('update:value', option.props.value);
+ this.$emit('update:modelValue', option.props.modelValue);
}
}, option.children), [
[resolveDirective('click-anime')]