baiqiu-cms-decoration-dg 0.0.8 → 0.0.10

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "baiqiu-cms-decoration-dg",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "author": "anni.zhou",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -54,14 +54,6 @@ export default {
54
54
  }
55
55
  }
56
56
  },
57
- watch: {
58
- cmsList: {
59
- handler(n) {
60
- console.log(n)
61
- },
62
- immediate: true
63
- }
64
- },
65
57
  mounted() {
66
58
  this.$nextTick(()=>{
67
59
  var commom = require('../../utils/common')
@@ -15,7 +15,6 @@
15
15
  height: item.attributeJson.layoutStyle ? Math.round(item.attributeJson.layoutStyle.height * ratio) + 'px' : 'auto'
16
16
  }"
17
17
  >
18
- {{item.layoutType}}
19
18
  <component
20
19
  ref="layModule"
21
20
  :is="layOutObj[item.layoutType]"
@@ -29,9 +28,12 @@
29
28
  :envUrl="envUrl"
30
29
  :path="path"
31
30
  >
32
- <template v-if="item.layoutType === 3" slot="customComponent" slot-scope="scope">
31
+ <template v-if="item.layoutType === 3" slot="customComponent" slot-scope="scope">
33
32
  <slot name="customComponent" :attributeJson="scope.attributeJson"></slot>
34
33
  </template>
34
+ <template slot="latticeDG" slot-scope="scope">
35
+ <slot name="latticeDG" :attributeJson="scope.attributeJson"></slot>
36
+ </template>
35
37
  </component>
36
38
  </div>
37
39
  </div>
@@ -7,22 +7,25 @@
7
7
  style="width: 100%; height: 100%"
8
8
  >
9
9
  <template v-for="(item, index) in layOutData.componentList">
10
- <component
11
- ref="singleComponent"
12
- :is="item.component"
13
- :ratio="ratio"
14
- :attributeJson="item.attributeJson"
15
- :sortId="item.sort"
16
- :key="item.sort"
17
- v-bind="$attrs"
18
- v-on="$listeners"
19
- v-if="item.displayType == 1"
20
- :style="{zIndex: index + 1}"
21
- >
22
- <template slot="customComponent" slot-scope="scope">
23
- <slot name="customComponent" :attributeJson="scope.attributeJson"></slot>
24
- </template>
25
- </component>
10
+ <template v-if="item.type == 105">
11
+ <slot name="latticeDG" :attributeJson="item.attributeJson"></slot>
12
+ </template>
13
+ <template v-else>
14
+ <component
15
+ ref="singleComponent"
16
+ :is="item.component"
17
+ :ratio="ratio"
18
+ :attributeJson="item.attributeJson"
19
+ :sortId="item.sort"
20
+ :key="item.sort"
21
+ v-bind="$attrs"
22
+ v-on="$listeners"
23
+ v-if="item.displayType == 1"
24
+ :style="{zIndex: index + 1}"
25
+ >
26
+ </component>
27
+ </template>
28
+
26
29
  </template>
27
30
  <!--辅助线END-->
28
31
  </div>