UNPKG
essential-com
Version:
latest (1.2.3)
1.2.3
1.2.2
### 介绍 ---
essential-com
/
packages
/
Foo
/
index.ts
13 lines
(10 loc)
•
190 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
App
,
Plugin
}
from
'vue'
;
import
Foo
from
'./src/index.vue'
;
export
const
FooPlugin
:
Plugin
= {
install
(
app: App
) { app.
component
(
'my-foo'
,
Foo
); }, };
export
{
Foo
, };