mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
优化动画面板显示逻辑
This commit is contained in:
parent
66ad8c88b5
commit
81f48438b1
@ -98,6 +98,7 @@ import {
|
|||||||
CloseSmall,
|
CloseSmall,
|
||||||
Undo,
|
Undo,
|
||||||
Transform,
|
Transform,
|
||||||
|
Click,
|
||||||
} from '@icon-park/vue-next'
|
} from '@icon-park/vue-next'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -229,5 +230,6 @@ export default {
|
|||||||
app.component('IconSeoFolder', SeoFolder)
|
app.component('IconSeoFolder', SeoFolder)
|
||||||
app.component('IconUndo', Undo)
|
app.component('IconUndo', Undo)
|
||||||
app.component('IconTransform', Transform)
|
app.component('IconTransform', Transform)
|
||||||
|
app.component('IconClick', Click)
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="element-animation-panel">
|
<div class="element-animation-panel">
|
||||||
<div class="element-animation">
|
<div class="element-animation" v-if="handleElement">
|
||||||
<Popover trigger="click" v-model:visible="animationPoolVisible">
|
<Popover trigger="click" v-model:visible="animationPoolVisible">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="animation-pool">
|
<div class="animation-pool">
|
||||||
@ -29,6 +29,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tip" v-else><IconClick /> 选中画布中的元素添加动画</div>
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
@ -42,7 +44,7 @@
|
|||||||
itemKey="id"
|
itemKey="id"
|
||||||
>
|
>
|
||||||
<template #item="{ element, index }">
|
<template #item="{ element, index }">
|
||||||
<div class="sequence-item" :class="{ 'active': handleElement.id === element.elId }">
|
<div class="sequence-item" :class="{ 'active': handleElement?.id === element.elId }">
|
||||||
<div class="index">{{index + 1}}</div>
|
<div class="index">{{index + 1}}</div>
|
||||||
<div class="text">【{{element.elType}}】{{element.animationType}}</div>
|
<div class="text">【{{element.elType}}】{{element.animationType}}</div>
|
||||||
<div class="handler">
|
<div class="handler">
|
||||||
@ -200,6 +202,11 @@ export default defineComponent({
|
|||||||
.element-animation-btn {
|
.element-animation-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.tip {
|
||||||
|
text-align: center;
|
||||||
|
font-style: italic;
|
||||||
|
padding-top: 12px;
|
||||||
|
}
|
||||||
.animation-pool {
|
.animation-pool {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
@ -41,7 +41,8 @@ export default defineComponent({
|
|||||||
]
|
]
|
||||||
const slideTabs = [
|
const slideTabs = [
|
||||||
{ label: '页面样式', value: ToolbarStates.SLIDE_STYLE },
|
{ label: '页面样式', value: ToolbarStates.SLIDE_STYLE },
|
||||||
{ label: '翻页动画', value: ToolbarStates.SLIDE_ANIMATION },
|
{ label: '切换', value: ToolbarStates.SLIDE_ANIMATION },
|
||||||
|
{ label: '动画', value: ToolbarStates.EL_ANIMATION },
|
||||||
]
|
]
|
||||||
const multiSelectTabs = [
|
const multiSelectTabs = [
|
||||||
{ label: '位置', value: ToolbarStates.MULTI_POSITION },
|
{ label: '位置', value: ToolbarStates.MULTI_POSITION },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user