UNPKG
@ant-design-vue/use
Version:
latest (0.0.1-alpha.10)
0.0.1-alpha.10
0.0.1-alpha.9
0.0.1-alpha.8
0.0.1-alpha.7
0.0.1-alpha.6
0.0.1-alpha.5
0.0.1-alpha.4
0.0.1-alpha.3
0.0.1-alpha.2
0.0.1-alpha.1
0.0.1-alpha.0
Vue 3 Composition Api Library.
github.com/vueComponent/use
vueComponent/use
@ant-design-vue/use
/
es
/
useSize
/
index.d.ts
8 lines
(7 loc)
•
195 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
Ref
}
from
'vue'
;
declare
type
Size
= {
width
?:
number
;
height
?:
number
; };
declare
function
useSize
(
target
?:
Ref
<
Element
|
Window
|
null
>
): [
Size
,
Ref
];
export
default
useSize;