UNPKG
easy-antd-modal
Version:
beta (1.0.0-beta.1)
latest (2.0.2)
2.0.2
2.0.1
2.0.0
2.0.0-beta.1
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.4.0-beta.1
1.3.0
1.2.1
1.2.0
1.2.0-beta.1
1.1.1
1.1.0
1.1.0-beta.1
1.0.0
1.0.0-beta.1
二次开发, 简化 Ant Design Modal 的使用方式
github.com/Wxh16144/easy-antd-modal
Wxh16144/easy-antd-modal
easy-antd-modal
/
lib
/
hooks
/
useBoolean.d.ts
7 lines
(6 loc)
•
184 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
interface
Actions
{
setTrue
:
() =>
void
;
setFalse
:
() =>
void
;
toggle
:
() =>
void
; }
export
default
function
useBoolean
(
defaultValue
?:
boolean
): [
boolean
,
Actions
];