|
@@ -14,13 +14,13 @@
|
|
|
:lineStyle="lineStyle"
|
|
|
:lineWidth="lineWidth"
|
|
|
></baseLinePro>
|
|
|
- <BaseExplainPro
|
|
|
+ <!-- <BaseExplainPro
|
|
|
:strokeColor="strokeColor"
|
|
|
:fontSize="fontSize"
|
|
|
:text="text"
|
|
|
:backgroundColor="backgroundColor"
|
|
|
v-show="itemType == 'BaseExplain'"
|
|
|
- ></BaseExplainPro>
|
|
|
+ ></BaseExplainPro>-->
|
|
|
<BaseImagePro v-show="itemType == 'BaseImage'"></BaseImagePro>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -47,7 +47,8 @@ export default {
|
|
|
lineStyle: "solid", //线条样式
|
|
|
lineWidth: 1, //线宽
|
|
|
fontSize: 12, //字体大小
|
|
|
- textMsg: "",
|
|
|
+ textMsg: "", // 文本
|
|
|
+ backgroundColor: "", // 背景色
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -72,9 +73,10 @@ export default {
|
|
|
this.strokeColor = item.strokeColor.toRgba();
|
|
|
this.lineStyle = lineStyle[item.lineStyle];
|
|
|
this.lineWidth = item.lineWidth;
|
|
|
- } else if (this.itemType == "baseText") {
|
|
|
+ } else if (this.itemType == "BaseText") {
|
|
|
this.strokeColor = item.strokeColor.toRgba();
|
|
|
this.backgroundColor = item.backgroundColor.toRgba();
|
|
|
+ console.log("text", item.font.size);
|
|
|
this.textMsg = item.text;
|
|
|
this.fontSize = item.font.size;
|
|
|
}
|