diff --git a/packages/amis-ui/src/components/UserSelect.tsx b/packages/amis-ui/src/components/UserSelect.tsx index 2aa32d89416..eade24a6f97 100644 --- a/packages/amis-ui/src/components/UserSelect.tsx +++ b/packages/amis-ui/src/components/UserSelect.tsx @@ -45,6 +45,7 @@ export interface UserSelectProps controlled?: boolean; displayFields: Array; isTab?: boolean; + disabled?: boolean; fetcher?: ( api: Api, data?: any, @@ -995,6 +996,7 @@ export class UserSelect extends React.Component< showResultBox, labelField = 'label', valueField = 'value', + disabled, mobileUI } = this.props; @@ -1007,6 +1009,7 @@ export class UserSelect extends React.Component< className={cx('UserSelect-input', isOpened ? 'is-active' : '')} allowInput={false} result={this.getResult()} + disabled={disabled} itemRender={(option: any) => { if (labelField !== 'avatar') { return ( diff --git a/packages/amis-ui/src/components/UserTabSelect.tsx b/packages/amis-ui/src/components/UserTabSelect.tsx index 8c10022dd82..9f5f3c5fb7f 100644 --- a/packages/amis-ui/src/components/UserTabSelect.tsx +++ b/packages/amis-ui/src/components/UserTabSelect.tsx @@ -35,6 +35,7 @@ export interface UserTabSelectProps extends ThemeProps, LocaleProps { selection?: Array