mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
7e692ad585
* chore: init * chore: panel style * docs: update demo * chore: fill style * test: update snapshot * docs: update demo * chore: push * docs: update desc * chore: fix icons * chore: use shared hooks * test: update snapshot * chore: fix lint
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
import * as React from 'react';
|
|
|
|
export default function useCheckable(cascaderPrefixCls: string, multiple?: boolean) {
|
|
return React.useMemo(
|
|
() => (multiple ? <span className={`${cascaderPrefixCls}-checkbox-inner`} /> : false),
|
|
[multiple],
|
|
);
|
|
}
|