提交 13df73f3 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 9d94a20d
...@@ -151,7 +151,7 @@ const list = ref([ ...@@ -151,7 +151,7 @@ const list = ref([
type: 2, type: 2,
type_name: '营销动作', type_name: '营销动作',
icon: '18', icon: '18',
component_type: 2, component_type: 4,
component_name: 'MADelayProcess' component_name: 'MADelayProcess'
}, },
{ {
...@@ -285,10 +285,10 @@ const list = ref([ ...@@ -285,10 +285,10 @@ const list = ref([
]) ])
const currentList = computed(() => { const currentList = computed(() => {
return list.value.map(item => { return list.value.map((item) => {
return { return {
...item, ...item,
children: item.children.filter(item => (item.connection_type ? connections.value.find(connection => connection.type === item.connection_type) : true)) children: item.children.filter((item) => (item.connection_type ? connections.value.find((connection) => connection.type === item.connection_type) : true))
} }
}) })
}) })
...@@ -307,7 +307,7 @@ const onDragStart = (event: DragEvent, data: any) => { ...@@ -307,7 +307,7 @@ const onDragStart = (event: DragEvent, data: any) => {
<dt :style="`background: ${parent.background?.color}`">{{ parent.name }}</dt> <dt :style="`background: ${parent.background?.color}`">{{ parent.name }}</dt>
<dd> <dd>
<ul> <ul>
<li v-for="(item, index) in parent.children" :key="index" :draggable="true" @dragstart="event => onDragStart(event, item)"> <li v-for="(item, index) in parent.children" :key="index" :draggable="true" @dragstart="(event) => onDragStart(event, item)">
<div class="icon-box"> <div class="icon-box">
<Icon class="circle" :color="item.color || parent.background?.color" :name="parent.background?.icon || ''" w="60" h="60"></Icon> <Icon class="circle" :color="item.color || parent.background?.color" :name="parent.background?.icon || ''" w="60" h="60"></Icon>
<Icon class="icon" color="#fff" :name="item.icon" w="24" h="24"></Icon> <Icon class="icon" color="#fff" :name="item.icon" w="24" h="24"></Icon>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论