|
@@ -5,13 +5,14 @@
|
|
v-model="openedCollapses"
|
|
v-model="openedCollapses"
|
|
:borderless="true"
|
|
:borderless="true"
|
|
:expand-on-row-click="true"
|
|
:expand-on-row-click="true"
|
|
- expand-icon-placement="right"
|
|
|
|
|
|
+ expand-icon-placement="left"
|
|
>
|
|
>
|
|
- <t-collapse-panel
|
|
|
|
- v-for="(item, i) in pen.events"
|
|
|
|
- :value="i"
|
|
|
|
- :header="`交互事件${i + 1}`"
|
|
|
|
- >
|
|
|
|
|
|
+ <t-collapse-panel v-for="(item, i) in pen.events" :value="i">
|
|
|
|
+ <template #header>
|
|
|
|
+ <div @click.stop class="head">
|
|
|
|
+ <t-select v-model="item.name" :options="options" autoWidth />
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
<template #headerRightContent>
|
|
<template #headerRightContent>
|
|
<t-space size="small" @click.stop>
|
|
<t-space size="small" @click.stop>
|
|
<t-popconfirm
|
|
<t-popconfirm
|
|
@@ -24,18 +25,11 @@
|
|
</t-space>
|
|
</t-space>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <!-- <div class="form-item">
|
|
|
|
- <label>交互事件</label>
|
|
|
|
- <t-select v-model="item.name" :options="options" />
|
|
|
|
- </div> -->
|
|
|
|
- <div class="form-item banner">
|
|
|
|
- <label>执行动作</label>
|
|
|
|
- </div>
|
|
|
|
- <!-- <Actions class="mt-8" :data="trigger" /> -->
|
|
|
|
|
|
+ <Actions :data="pen.events[i]" />
|
|
</t-collapse-panel>
|
|
</t-collapse-panel>
|
|
</t-collapse>
|
|
</t-collapse>
|
|
<t-divider />
|
|
<t-divider />
|
|
- <div class="mt-16 px-16">
|
|
|
|
|
|
+ <div class="p-16">
|
|
<t-dropdown
|
|
<t-dropdown
|
|
:options="options"
|
|
:options="options"
|
|
@click="addEvent"
|
|
@click="addEvent"
|
|
@@ -79,6 +73,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
import { debounce } from '@/services/debouce';
|
|
import { debounce } from '@/services/debouce';
|
|
|
|
|
|
|
|
+import Actions from './Actions.vue';
|
|
import { updatePen } from './pen';
|
|
import { updatePen } from './pen';
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
@@ -165,6 +160,16 @@ onUnmounted(() => {});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .head {
|
|
|
|
+ :deep(.t-select) {
|
|
|
|
+ width: fit-content;
|
|
|
|
+
|
|
|
|
+ .t-input {
|
|
|
|
+ border-color: transparent;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
.banner {
|
|
.banner {
|
|
background-color: var(--color-background-input);
|
|
background-color: var(--color-background-input);
|
|
padding: 0 12px;
|
|
padding: 0 12px;
|