fix: getRangePickerDefaultProps

This commit is contained in:
xingyu4j
2025-10-17 15:10:23 +08:00
parent 22cf883cc4
commit a65a5d2aab
4 changed files with 53 additions and 50 deletions

View File

@@ -236,7 +236,7 @@ async function initComponentAdapter() {
'select',
{
component: ElTreeSelect,
// TODO @xingyu这里要加 props: { label: 'label', children: 'children' }, vben 官方是有的
props: { label: 'label', children: 'children' },
nodeKey: 'value',
loadingSlot: 'loading',
optionsPropName: 'data',
@@ -265,8 +265,8 @@ async function initComponentAdapter() {
},
// 自定义默认按钮
DefaultButton: (props, { attrs, slots }) => {
// TODO @xingyu, type: 'info' 要加么vben5 是有的;
return h(ElButton, { ...props, attrs }, slots);
// 调整 type 为 default info 有点丑
return h(ElButton, { ...props, attrs, type: 'default' }, slots);
},
// 自定义主要按钮
PrimaryButton: (props, { attrs, slots }) => {