mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
parent
390883c79e
commit
acf4070de0
@ -118,6 +118,10 @@ const iconFactory: {
|
||||
[propName: string]: React.ElementType<{}>;
|
||||
} = {};
|
||||
|
||||
export function getIconNames() {
|
||||
return Object.keys(iconFactory);
|
||||
}
|
||||
|
||||
export function getIcon(key: string) {
|
||||
return iconFactory[key];
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ import PickerContainer from './PickerContainer';
|
||||
import InputJSONSchema from './json-schema';
|
||||
import {Badge, withBadge} from './Badge';
|
||||
import type {BadgeObject} from './Badge';
|
||||
import {getIcon, Icon, registerIcon} from './icons';
|
||||
import {getIcon, getIconNames, Icon, registerIcon} from './icons';
|
||||
import {withRemoteConfig} from './WithRemoteConfig';
|
||||
import type {RemoteOptionsProps} from './WithRemoteConfig';
|
||||
import ConditionBuilder from './condition-builder';
|
||||
@ -224,6 +224,7 @@ export {
|
||||
UserSelect,
|
||||
UserTabSelect,
|
||||
getIcon,
|
||||
getIconNames,
|
||||
registerIcon,
|
||||
Badge,
|
||||
HeadCellDropDown,
|
||||
|
Loading…
Reference in New Issue
Block a user