merge: upstream

This commit is contained in:
Marie 2024-02-03 20:19:44 +01:00
commit 11628e4b6a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
285 changed files with 3413 additions and 1913 deletions

View file

@ -13,18 +13,18 @@ export default defineComponent({
},
},
setup(props, { emit, slots }) {
const options = slots.default();
const options = slots.default?.() ?? [];
return () => h('div', {
class: 'pxhvhrfw',
}, options.map(option => withDirectives(h('button', {
class: ['_button', { active: props.modelValue === option.props.value }],
key: option.key,
disabled: props.modelValue === option.props.value,
class: ['_button', { active: props.modelValue === option.props?.value }],
key: option.key as string,
disabled: props.modelValue === option.props?.value,
onClick: () => {
emit('update:modelValue', option.props.value);
emit('update:modelValue', option.props?.value);
},
}, option.children), [
}, option.children ?? []), [
[resolveDirective('click-anime')],
])));
},