fix
This commit is contained in:
@@ -15,13 +15,7 @@ fabric.Object.prototype.toObject_ = fabric.Object.prototype.toObject
|
|||||||
fabric.Object.prototype.toObject = function () {
|
fabric.Object.prototype.toObject = function () {
|
||||||
const args = [...arguments]
|
const args = [...arguments]
|
||||||
const arr = [...fabric.Object.prototype.customProperties]
|
const arr = [...fabric.Object.prototype.customProperties]
|
||||||
args.forEach(v => {
|
args.forEach(v => (Array.isArray(v) ? arr.push(...v) : arr.push(v)))
|
||||||
if (typeof v === 'string') {
|
|
||||||
arr.push(v)
|
|
||||||
} else if (Array.isArray(v)) {
|
|
||||||
arr.push(...v)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (this.fill?.source === null) {
|
if (this.fill?.source === null) {
|
||||||
let image = new Image()
|
let image = new Image()
|
||||||
image.crossOrigin = 'anonymous'
|
image.crossOrigin = 'anonymous'
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<span class="label" v-show="!item.edit">{{ item.name }}</span>
|
<span class="label" v-show="!item.edit">{{ item.name }}</span>
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
placement="right"
|
||||||
trigger="contextmenu"
|
trigger="hover"
|
||||||
width="10rem"
|
width="10rem"
|
||||||
popper-style="
|
popper-style="
|
||||||
padding: .6rem 0.7rem;
|
padding: .6rem 0.7rem;
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
v-model:visible="item.visible"
|
v-model:visible="item.visible"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<span @click.stop="openPopover(item)" class="icon">
|
<span @click.stop class="icon">
|
||||||
<svg-icon name="more" size="16" />
|
<svg-icon name="more" size="16" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -207,12 +207,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const openPopover = (item: any) => {
|
|
||||||
list.value.forEach((item: any) => {
|
|
||||||
item.visible = false
|
|
||||||
})
|
|
||||||
item.visible = !item.visible
|
|
||||||
}
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
MyEvent.add('newTitle', replaceTitle)
|
MyEvent.add('newTitle', replaceTitle)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user