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