mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 代码优化
This commit is contained in:
parent
59cadd849d
commit
48660ed8ec
@ -2,7 +2,7 @@
|
|||||||
<div
|
<div
|
||||||
class="editable-element"
|
class="editable-element"
|
||||||
ref="elementRef"
|
ref="elementRef"
|
||||||
:id="'editable-element-' + elementInfo.id"
|
:id="`editable-element-${elementInfo.id}`"
|
||||||
:style="{
|
:style="{
|
||||||
zIndex: elementIndex,
|
zIndex: elementIndex,
|
||||||
color: theme.fontColor,
|
color: theme.fontColor,
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
<div class="shape-clip">
|
<div class="shape-clip">
|
||||||
<div
|
<div
|
||||||
class="shape-clip-item"
|
class="shape-clip-item"
|
||||||
v-for="(item, index) in shapeClipPathOptions"
|
v-for="(item, key) in shapeClipPathOptions"
|
||||||
:key="index"
|
:key="key"
|
||||||
@click="presetImageClip(index)"
|
@click="presetImageClip(key)"
|
||||||
>
|
>
|
||||||
<div class="shape" :style="{ backgroundImage: `url(${handleElement.src})`, clipPath: item.style }"></div>
|
<div class="shape" :style="{ backgroundImage: `url(${handleElement.src})`, clipPath: item.style }"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="screen-element"
|
class="screen-element"
|
||||||
|
:id="`screen-element-${elementInfo.id}`"
|
||||||
:style="{
|
:style="{
|
||||||
zIndex: elementIndex,
|
zIndex: elementIndex,
|
||||||
color: theme.fontColor,
|
color: theme.fontColor,
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
>
|
>
|
||||||
<div class="background" :style="{ ...backgroundStyle }"></div>
|
<div class="background" :style="{ ...backgroundStyle }"></div>
|
||||||
<ScreenElement
|
<ScreenElement
|
||||||
:id="`screen-element-${element.id}`"
|
|
||||||
v-for="(element, index) in slide.elements"
|
v-for="(element, index) in slide.elements"
|
||||||
:key="element.id"
|
:key="element.id"
|
||||||
:elementInfo="element"
|
:elementInfo="element"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user