UNPKG
@pit-front-end/components
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
0.0.4
0.0.3
0.0.2
0.0.1
湖南创智艾泰克科技有限公司
@pit-front-end/components
/
dist
/
es
/
components
/
input
/
src
/
use-input.js
16 lines
(15 loc)
•
279 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
{ getCurrentInstance
as
o, computed
as
n }
from
"vue"
;
function
m
(
t
) {
const
{
emit
: e } =
o
() ?? {};
return
{
modelValue
:
n
({
set
(
u
) { e &&
e
(
"update:modelValue"
, u); },
get
(
) {
return
t.
modelValue
; } }) }; }
export
{ m
as
useInput };