UNPKG
@tuoyuan/web
Version:
latest (1.2.10-beta.1)
1.2.10-beta.1
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.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.16
1.0.15
1.0.14
1.0.13
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
0.0.13
0.0.12
0.0.10
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
拓源前端组件库
dev.iot1234.com/docs/ty-admin/guide/web/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B.html
@tuoyuan/web
/
es
/
utils
/
install.js
10 lines
(9 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ setGlobalConfig
as
r, getComponentPrefix
as
l }
from
"@tuoyuan/arco/es/_utils/global-config"
;
const
f
= (
n, t
) => (n.
install
=
(
e
) =>
{
r
(e, t);
const
o =
l
(t); e.
component
(o + n.
name
, n); }, n);
export
{ f
as
withInstall };