UNPKG
snowy-designer
Version:
latest (0.1.1-alpha.7)
0.1.1-alpha.7
0.1.1-alpha.6
0.1.1-alpha.5
0.1.1-alpha.4
0.1.1-alpha.0
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
github.com/Kchengz/epic-designer
Kchengz/epic-designer
snowy-designer
/
dist
/
hooks
/
src
/
plugin
/
useState.js
19 lines
(18 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import
{ reactive
as
i }
from
"vue"
;
function
f
(
r = {}
) {
const
t =
i
({ ...r });
function
o
(
e, c
) { t[e] = c; }
function
n
(
e
) {
delete
t[e]; }
return
{
removeProperty
: n,
setProperty
: o,
state
: t }; }
export
{ f
as
useState };