This commit is contained in:
lzp
2026-03-30 15:44:28 +08:00
parent d6c8de770a
commit 03b8b36a8c
2 changed files with 3 additions and 15 deletions

View File

@@ -15,13 +15,7 @@ fabric.Object.prototype.toObject_ = fabric.Object.prototype.toObject
fabric.Object.prototype.toObject = function () {
const args = [...arguments]
const arr = [...fabric.Object.prototype.customProperties]
args.forEach(v => {
if (typeof v === 'string') {
arr.push(v)
} else if (Array.isArray(v)) {
arr.push(...v)
}
})
args.forEach(v => (Array.isArray(v) ? arr.push(...v) : arr.push(v)))
if (this.fill?.source === null) {
let image = new Image()
image.crossOrigin = 'anonymous'

View File

@@ -44,7 +44,7 @@
<span class="label" v-show="!item.edit">{{ item.name }}</span>
<el-popover
placement="right"
trigger="contextmenu"
trigger="hover"
width="10rem"
popper-style="
padding: .6rem 0.7rem;
@@ -54,7 +54,7 @@
v-model:visible="item.visible"
>
<template #reference>
<span @click.stop="openPopover(item)" class="icon">
<span @click.stop class="icon">
<svg-icon name="more" size="16" />
</span>
</template>
@@ -207,12 +207,6 @@
}
})
}
const openPopover = (item: any) => {
list.value.forEach((item: any) => {
item.visible = false
})
item.visible = !item.visible
}
onMounted(() => {
MyEvent.add('newTitle', replaceTitle)
})