Skip to content

Commit

Permalink
feat: ✨ 移除多餘的 div
Browse files Browse the repository at this point in the history
  • Loading branch information
mukiwu committed Sep 16, 2022
1 parent c1cb94a commit 07eeeb4
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/packages/SmartWidgetGrid.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<template>
<div>
<grid-layout
:layout.sync="layout"
:colNum = "colNum"
v-bind="layoutAttrs"
v-on="gridLayoutEvents"
<grid-layout
:layout.sync="layout"
:colNum="colNum"
v-bind="layoutAttrs"
v-on="gridLayoutEvents"
>
<grid-item
v-for="item in layout"
drag-ignore-from=".widget-body"
:key="item.i"
:static="isStatic"
v-bind="item"
v-on="gridLayoutItemEvents"
>
<grid-item
v-for="item in layout"
drag-ignore-from=".widget-body"
:key="item.i"
:static="isStatic"
v-bind="item"
v-on="gridLayoutItemEvents"
>
<slot :name="item.i"></slot>
</grid-item>
</grid-layout>
</div>
<slot :name="item.i"></slot>
</grid-item>
</grid-layout>
</template>

<script>
Expand Down

0 comments on commit 07eeeb4

Please sign in to comment.