提交 abf8d045 authored 作者: wangjiahao's avatar wangjiahao

style: 样式修改

上级 69d53f0b
......@@ -150,6 +150,7 @@ import Hyperlinks from '@/components/canvas/components/Editor/Hyperlinks'
import VideoLinks from '@/components/canvas/components/Editor/VideoLinks'
import DateFormat from '@/components/canvas/components/Editor/DateFormat'
import { COLOR_PANEL } from '@/views/chart/chart/chart'
import { chartTransStr2Object } from '@/views/panel/panel'
export default {
components: { Hyperlinks, DateFormat, VideoLinks },
......@@ -332,6 +333,14 @@ export default {
},
watch: {
styleInfo: {
handler(newVal, oldVla) {
if (newVal.fontSize) {
this.initFontSize = newVal.fontSize
}
},
deep: true
},
innerOpacity: {
handler(oldVal, newVal) {
this.styleInfo['opacity'] = this.innerOpacity / 100
......@@ -405,12 +414,7 @@ export default {
getPositionY(y) {
return y * this.curCanvasScale.scalePointHeight
},
fontSizeChange(val) {
this.styleInfo.fontSize = val
this.styleChange()
},
styleChange() {
console.log('styleChange')
this.$store.commit('recordStyleChange')
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论