lambo-design-bi 0.0.1 → 0.0.107
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,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<LamboPageContainer :has-footer="false" :has-header="widget.options.title ? true : false">
|
|
3
|
+
<template #page-title>{{ widget.options.title }}</template>
|
|
4
|
+
|
|
5
|
+
<LamboIndicatorCardBiSearch :has-extend="false" :has-title="false">
|
|
6
|
+
<BiSearchForm :widget="widget.search"></BiSearchForm>
|
|
7
|
+
</LamboIndicatorCardBiSearch>
|
|
8
|
+
|
|
3
9
|
<template v-for="(item, index) in widget.widgets">
|
|
4
|
-
<
|
|
10
|
+
<component :is="getWidgetName(item)" :widget="item" :key="index">
|
|
11
|
+
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
|
12
|
+
<slot :name="slot" v-bind="scope" />
|
|
13
|
+
</template>
|
|
14
|
+
</component>
|
|
5
15
|
</template>
|
|
6
|
-
</
|
|
16
|
+
</LamboPageContainer>
|
|
7
17
|
</template>
|
|
8
18
|
<script>
|
|
9
|
-
import
|
|
19
|
+
import LamboPageContainer from "@lambo-design/page-container"
|
|
20
|
+
import BiSearchForm from '../search/search-form.vue'
|
|
21
|
+
import { getWidgetName } from '../util/widget-map'
|
|
22
|
+
import LamboIndicatorCardBiSearch from '../container/card/comps/indicator-card/src/indicator-card-bi-search.vue'
|
|
10
23
|
|
|
11
24
|
export default {
|
|
12
25
|
name: "BiPage",
|
|
13
|
-
components: {
|
|
26
|
+
components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch },
|
|
14
27
|
props: {
|
|
15
28
|
widget: {
|
|
16
29
|
type: Object,
|
|
@@ -22,10 +35,11 @@ export default {
|
|
|
22
35
|
}
|
|
23
36
|
},
|
|
24
37
|
data() {
|
|
25
|
-
return {
|
|
38
|
+
return {
|
|
39
|
+
}
|
|
26
40
|
},
|
|
27
41
|
methods: {
|
|
28
|
-
|
|
42
|
+
getWidgetName
|
|
29
43
|
},
|
|
30
44
|
created() {
|
|
31
45
|
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
import LamboQueryFilter from "@lambo-design/query-filter"
|
|
15
15
|
import { deepCopy } from "@lambo-design/shared/utils/assist"
|
|
16
16
|
import moment from 'moment'
|
|
17
|
+
import BiSearchItem from "./search-item.vue"
|
|
17
18
|
|
|
18
19
|
export default {
|
|
19
20
|
name: 'BiSearchForm',
|
|
20
|
-
components: { LamboQueryFilter },
|
|
21
|
+
components: { LamboQueryFilter, BiSearchItem },
|
|
21
22
|
props: {
|
|
22
23
|
widget: {
|
|
23
24
|
type: Object,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambo-design-bi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.107",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "finch",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"@lambo-design/shared": "^1.0.0-beta.283",
|
|
22
22
|
"@lambo-design/query-filter": "^1.0.0-beta.38",
|
|
23
23
|
"@lambo-design/detail-table": "^1.0.0-beta.23",
|
|
24
|
+
"@lambo-design/page-container": "^1.0.0-beta.35",
|
|
24
25
|
"axios": "1.6.7",
|
|
25
26
|
"core-js": "^3.8.3",
|
|
26
27
|
"echarts": "^4.8.0",
|