fix: getRangePickerDefaultProps
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user