|
|
|
|
@ -136,20 +136,34 @@ async function initComponentAdapter() {
|
|
|
|
|
// 如果你的组件体积比较大,可以使用异步加载
|
|
|
|
|
// Button: () =>
|
|
|
|
|
// import('xxx').then((res) => res.Button),
|
|
|
|
|
ApiSelect: withDefaultPlaceholder(ApiComponent, 'select', {
|
|
|
|
|
component: Select,
|
|
|
|
|
loadingSlot: 'suffixIcon',
|
|
|
|
|
visibleEvent: 'onDropdownVisibleChange',
|
|
|
|
|
modelPropName: 'value',
|
|
|
|
|
}),
|
|
|
|
|
ApiTreeSelect: withDefaultPlaceholder(ApiComponent, 'select', {
|
|
|
|
|
component: TreeSelect,
|
|
|
|
|
fieldNames: { label: 'label', value: 'value', children: 'children' },
|
|
|
|
|
loadingSlot: 'suffixIcon',
|
|
|
|
|
modelPropName: 'value',
|
|
|
|
|
optionsPropName: 'treeData',
|
|
|
|
|
visibleEvent: 'onVisibleChange',
|
|
|
|
|
}),
|
|
|
|
|
ApiSelect: withDefaultPlaceholder(
|
|
|
|
|
{
|
|
|
|
|
...ApiComponent,
|
|
|
|
|
name: 'ApiSelect',
|
|
|
|
|
},
|
|
|
|
|
'select',
|
|
|
|
|
{
|
|
|
|
|
component: Select,
|
|
|
|
|
loadingSlot: 'suffixIcon',
|
|
|
|
|
visibleEvent: 'onDropdownVisibleChange',
|
|
|
|
|
modelPropName: 'value',
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
ApiTreeSelect: withDefaultPlaceholder(
|
|
|
|
|
{
|
|
|
|
|
...ApiComponent,
|
|
|
|
|
name: 'ApiTreeSelect',
|
|
|
|
|
},
|
|
|
|
|
'select',
|
|
|
|
|
{
|
|
|
|
|
component: TreeSelect,
|
|
|
|
|
fieldNames: { label: 'label', value: 'value', children: 'children' },
|
|
|
|
|
loadingSlot: 'suffixIcon',
|
|
|
|
|
modelPropName: 'value',
|
|
|
|
|
optionsPropName: 'treeData',
|
|
|
|
|
visibleEvent: 'onVisibleChange',
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
AutoComplete,
|
|
|
|
|
Checkbox,
|
|
|
|
|
CheckboxGroup,
|
|
|
|
|
|