merge: upstream
This commit is contained in:
commit
11628e4b6a
285 changed files with 3413 additions and 1913 deletions
|
|
@ -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')],
|
||||
])));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue