Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="my-textTools">
|
<div class="my-textTools">
|
||||||
<input class="color" type="color" ref="colorInput" @change="changeColor" />
|
<input class="color" type="color" v-model="textStyle['--font-color']" ref="colorInput" @change="changeColor" />
|
||||||
<div class="interval"></div>
|
<div class="interval"></div>
|
||||||
<div class="fontFamily">
|
<div class="fontFamily">
|
||||||
<my-select v-model="textStyle['--font-family']" @change="changeFontFamily" :list="fontFamilyList[locale]" >
|
<my-select v-model="textStyle['--font-family']" @change="changeFontFamily" :list="fontFamilyList[locale]" >
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
v-model:visible="item.visible"
|
v-model:visible="item.visible"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<span @click.stop="item.visible = !item.visible" class="icon">
|
<span @click.stop="openPopover(item)" class="icon">
|
||||||
<svg-icon name="more" size="16" />
|
<svg-icon name="more" size="16" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -207,6 +207,12 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
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