diff --git a/packages/client/src/components/MkTab.vue b/packages/client/src/components/MkTab.vue index 3c2e47ba7a..8920e4155d 100644 --- a/packages/client/src/components/MkTab.vue +++ b/packages/client/src/components/MkTab.vue @@ -10,20 +10,18 @@ export default defineComponent({ render() { const options = this.$slots.default(); - return withDirectives(h('div', { + return h('div', { class: 'pxhvhrfw', }, options.map(option => withDirectives(h('button', { - class: ['_button', { active: this.modelValue === option.props.value }], + class: ['_button', { active: this.modelValue === option.props?.value }], key: option.key, - disabled: this.modelValue === option.props.value, + disabled: this.modelValue === option.props?.value, onClick: () => { - this.$emit('update:modelValue', option.props.value); + this.$emit('update:modelValue', option.props?.value); }, }, option.children), [ [resolveDirective('click-anime')], - ]))), [ - [resolveDirective('size'), { max: [500] }], - ]); + ]))); }, });