UNPKG
vue-simput
Version:
latest (2.3.0)
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
Simput component meant to be used with PyWebVue/Trame
vue-simput
/
VueSimput
/
src
/
main.js
14 lines
(12 loc)
•
311 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
components
from
'./components'
;
import
widgets
from
'./widgets'
;
export
default
{
install
(
Vue
) {
Object
.
keys
(components).
forEach
(
(
name
) =>
{
Vue
.
component
(name, components[name]); });
Object
.
keys
(widgets).
forEach
(
(
name
) =>
{
Vue
.
component
(name, widgets[name]); }); }, };