UNPKG
@artmate/chat
Version:
latest (1.4.1)
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**
mty-ai-md.mtyui.asia
enootttt/ArtChat
@artmate/chat
/
dist
/
es
/
packages
/
src
/
useArtChat
/
useSyncState.js
15 lines
(14 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{ ref
as
o }
from
"vue"
;
function
a
(
e
) {
const
c =
o
(
0
), t =
o
(
typeof
e ==
"function"
?
e
() : e );
function
f
(
n
) {
const
u =
typeof
n ==
"function"
?
n
(t.
value
) : n; t.
value
= u, c.
value
+=
1
; }
return
[t, f,
() =>
t.
value
]; }
export
{ a
as
default
};