Skip to content

Commit

Permalink
style: 更换表单设计器左侧button标签为div
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 3, 2021
1 parent 8fed41e commit f11fe72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/component/form-designer/src/FormDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
<div class="widget-cate">基础组件</div>
<Draggable :clone="handleClone" tag="ul" :list="basicComponents" v-bind="getDraggableOptions()" :move="handleMove">
<li class="form-edit-widget-label" v-for="(item, index) in basicComponents" :key="index">
<a>
<div>
<Icon class="icon" :name="item.icon"></Icon>
<span>{{ item.name }}</span>
</a>
</div>
</li>
</Draggable>
<div class="widget-cate">高级组件</div>
<Draggable :clone="handleClone" tag="ul" :list="advanceComponents" v-bind="getDraggableOptions()" :move="handleMove">
<li class="form-edit-widget-label" v-for="(item, index) in advanceComponents" :key="index">
<a>
<div>
<Icon class="icon" :name="item.icon"></Icon>
<span>{{ item.name }}</span>
</a>
</div>
</li>
</Draggable>
<div class="widget-cate">布局组件</div>
Expand All @@ -45,10 +45,10 @@
v-for="(item, index) in layoutComponents"
:key="index"
>
<a>
<div>
<Icon class="icon" :name="item.icon"></Icon>
<span>{{ item.name }}</span>
</a>
</div>
</li>
</Draggable>
<div class="widget-cate">基础图表</div>
Expand All @@ -58,10 +58,10 @@
v-for="(item, index) in chartComponents"
:key="index"
>
<a>
<div>
<Icon class="icon" :name="item.icon"></Icon>
<span>{{ item.name }}</span>
</a>
</div>
</li>
</Draggable>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/component/form-designer/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ $primary-background-color: #ecf5ff;
border: 1px dashed $primary-color;
}

& > a {
& > div {
display: block;
cursor: move;
background: #f4f6fc;
Expand Down

0 comments on commit f11fe72

Please sign in to comment.