flx:提交orc

This commit is contained in:
Rain_ 2025-07-24 18:59:14 +08:00
parent 199a50c6a2
commit e04f2b6f6d
3 changed files with 10 additions and 2 deletions

View File

@ -67,8 +67,8 @@ Vue.use(VueQuillEditor) // 注册富文本编辑器
Vue.use(SlideVerify) Vue.use(SlideVerify)
Vue.use(VueAwesomeSwiper) Vue.use(VueAwesomeSwiper)
import VueKonva from 'vue-konva'; // import VueKonva from 'vue-konva';
Vue.use(VueKonva); // Vue.use(VueKonva);
// 全局组件挂载 // 全局组件挂载
Vue.component('Pagination', Pagination) Vue.component('Pagination', Pagination)

View File

@ -241,6 +241,7 @@ export default {
showTools: { type: Boolean, default: true }, showTools: { type: Boolean, default: true },
placement: { type: String, default: "left" }, placement: { type: String, default: "left" },
configJson: { type: String, default: () => "" }, configJson: { type: String, default: () => "" },
zonePlaceInfoId: { type: String, default: () => "" },
}, },
data() { data() {
return { return {
@ -973,6 +974,12 @@ export default {
strokeWidth(newVal) { strokeWidth(newVal) {
if (this.boardObj) this.boardObj.freeDrawingBrush.width = newVal; if (this.boardObj) this.boardObj.freeDrawingBrush.width = newVal;
}, },
zonePlaceInfoId(newVal) {
if (newVal) {
this.initCanvas();
this.initEvent();
}
},
}, },
}; };
</script> </script>

View File

@ -127,6 +127,7 @@
ref="canvasfabric" ref="canvasfabric"
:canvasWidth="width" :canvasWidth="width"
:canvasHeight="height" :canvasHeight="height"
:zonePlaceInfoId="zonePlaceInfo.id"
:configJson="zonePlaceInfo.configJson" :configJson="zonePlaceInfo.configJson"
></MyPictode> ></MyPictode>
</div> </div>