JSX判断多状态、多条件

<div>
	{error && <span>{error}</span>}
	{loading && <span>loading...</span>}
	{!error && !loading && !data && <span>empty</span>}
	{data && <div>{data}</div>}
</div>
empty

Switch-Case判断单状态、多条件

<Switch expression={vip}>
	<Switch.Case condition={1}>一级VIP</Switch.Case>
	<Switch.Case condition={2}>二级VIP</Switch.Case>
	<Switch.Case condition={3}>三级VIP</Switch.Case>
	<Switch.Default>非VIP</Switch.Default>
</Switch>
非VIP