export default function getMixinTheme()

in packages-rc/console-base-rc-button/src/ui/util/get-mixin-theme.ts [157:171]


export default function getMixinTheme(props: Partial<IModelProps>): FlattenSimpleInterpolation | null {
  if (props.disabled) {
    return (props.theme ? MAPPING_DISABLED[props.theme] : null) || mixinButtonTextTertiaryStateDisabled;
  }
  
  if (props.active) {
    return props.theme ? MAPPING_ACTIVE[props.theme] : null;
  }
  
  if (props.loading) { // loading 的时候没有 hover 样式
    return props.theme ? MAPPING_NORMAL[props.theme] : null;
  }
  
  return props.theme ? MAPPING[props.theme] : null;
}