lambo-design-bi 0.0.106 → 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.
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <div>
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">
5
11
  <template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
@@ -7,14 +13,17 @@
7
13
  </template>
8
14
  </component>
9
15
  </template>
10
- </div>
16
+ </LamboPageContainer>
11
17
  </template>
12
18
  <script>
13
- import getWidgetName from '../util/widget-map'
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'
14
23
 
15
24
  export default {
16
25
  name: "BiPage",
17
- components: {},
26
+ components: { LamboPageContainer, BiSearchForm, LamboIndicatorCardBiSearch },
18
27
  props: {
19
28
  widget: {
20
29
  type: Object,
@@ -26,7 +35,8 @@ export default {
26
35
  }
27
36
  },
28
37
  data() {
29
- return {}
38
+ return {
39
+ }
30
40
  },
31
41
  methods: {
32
42
  getWidgetName
@@ -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,
@@ -38,8 +38,3 @@ export function getWidgetName(item) {
38
38
  return WIDGET_MAP['_empty']
39
39
  }
40
40
  }
41
-
42
- export default {
43
- WIDGET_MAP,
44
- getWidgetName,
45
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambo-design-bi",
3
- "version": "0.0.106",
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",