Merge branch 'fork/Voidlurk/fix-default'

This commit is contained in:
Jin Mao
2026-03-24 10:36:40 +08:00

View File

@@ -165,7 +165,17 @@ async function initComponentAdapter() {
DatePicker,
// 自定义默认按钮
DefaultButton: (props, { attrs, slots }) => {
return h(Button, { ...props, attrs, theme: 'default' }, slots);
let ghost = false;
let variant = props.variant;
if (props.variant === 'ghost') {
ghost = true;
variant = 'base';
}
return h(
Button,
{ ...props, ghost, variant, attrs, theme: 'default' },
slots,
);
},
Divider,
IconPicker: withDefaultPlaceholder(IconPicker, 'select', {