lambo-design-bi 0.0.1 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,18 +5,21 @@
|
|
|
5
5
|
{{ widget.options.title }}
|
|
6
6
|
</template>
|
|
7
7
|
<template v-for="(item, index) in widget.widgets">
|
|
8
|
-
<
|
|
8
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index">
|
|
9
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
10
|
+
<slot :name="slot" v-bind="scope" />
|
|
11
|
+
</template>
|
|
12
|
+
</component>
|
|
9
13
|
</template>
|
|
10
14
|
</lambo-indicator-card-bi>
|
|
11
15
|
</template>
|
|
12
16
|
<script>
|
|
13
17
|
import LamboIndicatorCardBi from './comps/indicator-card/src/indicator-card-bi.vue'
|
|
14
18
|
import { getWidgetName } from '../../util/widget-map'
|
|
15
|
-
import AtomWidget from '../../atom/index.vue'
|
|
16
19
|
|
|
17
20
|
export default {
|
|
18
21
|
name: "BiContainerCard",
|
|
19
|
-
components: { LamboIndicatorCardBi
|
|
22
|
+
components: { LamboIndicatorCardBi },
|
|
20
23
|
props: {
|
|
21
24
|
widget: {
|
|
22
25
|
type: Object,
|
package/bi/widget/layout/col.vue
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-col :span="(widget.options && widget.options.span) ? parseInt(widget.options.span) : 24">
|
|
3
3
|
<template v-for="(item, index) in widget.widgets">
|
|
4
|
-
<
|
|
4
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index">
|
|
5
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
6
|
+
<slot :name="slot" v-bind="scope" />
|
|
7
|
+
</template>
|
|
8
|
+
</component>
|
|
5
9
|
</template>
|
|
6
10
|
</el-col>
|
|
7
11
|
</template>
|
|
8
12
|
<script>
|
|
9
|
-
import
|
|
13
|
+
import { getWidgetName } from '../util/widget-map'
|
|
10
14
|
|
|
11
15
|
export default {
|
|
12
16
|
name: "BiCol",
|
|
13
|
-
components: {
|
|
17
|
+
components: {},
|
|
14
18
|
props: {
|
|
15
19
|
widget: {
|
|
16
20
|
type: Object,
|
|
@@ -23,7 +27,7 @@ export default {
|
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
methods: {
|
|
26
|
-
|
|
30
|
+
getWidgetName
|
|
27
31
|
},
|
|
28
32
|
created() {
|
|
29
33
|
|
package/bi/widget/layout/row.vue
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-row class="custom-row" :gutter="(widget.options && widget.options.gutter) ? parseInt(widget.options.gutter) : 0">
|
|
3
3
|
<template v-for="(item, index) in widget.widgets">
|
|
4
|
-
<
|
|
4
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index">
|
|
5
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
6
|
+
<slot :name="slot" v-bind="scope" />
|
|
7
|
+
</template>
|
|
8
|
+
</component>
|
|
5
9
|
</template>
|
|
6
10
|
</el-row>
|
|
7
11
|
</template>
|
|
8
12
|
<script>
|
|
9
|
-
import
|
|
13
|
+
import { getWidgetName } from '../util/widget-map'
|
|
10
14
|
|
|
11
15
|
export default {
|
|
12
16
|
name: "BiRow",
|
|
13
|
-
components: {
|
|
17
|
+
components: {},
|
|
14
18
|
props: {
|
|
15
19
|
widget: {
|
|
16
20
|
type: Object,
|
|
@@ -23,7 +27,7 @@ export default {
|
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
methods: {
|
|
26
|
-
|
|
30
|
+
getWidgetName
|
|
27
31
|
},
|
|
28
32
|
created() {
|
|
29
33
|
|
package/bi/widget/page/index.vue
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-for="(item, index) in widget.widgets">
|
|
4
|
-
<
|
|
4
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index">
|
|
5
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
6
|
+
<slot :name="slot" v-bind="scope" />
|
|
7
|
+
</template>
|
|
8
|
+
</component>
|
|
5
9
|
</template>
|
|
6
10
|
</div>
|
|
7
11
|
</template>
|
|
8
12
|
<script>
|
|
9
|
-
import
|
|
13
|
+
import getWidgetName from '../util/widget-map'
|
|
10
14
|
|
|
11
15
|
export default {
|
|
12
16
|
name: "BiPage",
|
|
13
|
-
components: {
|
|
17
|
+
components: {},
|
|
14
18
|
props: {
|
|
15
19
|
widget: {
|
|
16
20
|
type: Object,
|
|
@@ -25,7 +29,7 @@ export default {
|
|
|
25
29
|
return {}
|
|
26
30
|
},
|
|
27
31
|
methods: {
|
|
28
|
-
|
|
32
|
+
getWidgetName
|
|
29
33
|
},
|
|
30
34
|
created() {
|
|
31
35
|
|