判断添加的内容形式
@@ -64,6 +64,12 @@
:h="item.h"
>
<div class="grid-item-content">
+ <!-- 模块内容 -->
+ <div v-if="item.type == 1">
+ 111
+ </div>
+
{{ item.content }}
<button @click="openWindow(item)">编辑</button>
@@ -148,6 +154,7 @@ export default {
y: 0,
w: 12,
h: 1,
+ type: type, //1=顶部菜单(含登录) ..
content:""});
},