refactor: internalSelect recordPicker

This commit is contained in:
katherinehhh 2023-05-06 14:14:02 +08:00
parent fc198621a6
commit 15cb251c4b
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ export const InternalSelect = observer((props: any) => {
onChange: props?.onChange,
selectedRows,
setSelectedRows,
collectionField
};
useEffect(() => {
if (value && Object.keys(value).length > 0) {

View File

@ -17,7 +17,7 @@ export default extend({
uiSchema: {
type: 'array',
title: '{{t("Roles")}}',
'x-component': 'RecordPicker',
'x-component': 'AssociationField',
'x-component-props': {
multiple: true,
fieldNames: {