|
|
@@ -3,6 +3,7 @@ import Teleport from '@/components/Teleport'
|
|
|
|
|
|
import * as TextboxConfig from './module/TextboxConfig'
|
|
|
import fabric from "../../js/fabric-adapter";
|
|
|
+import {markRaw} from "vue";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -171,6 +172,11 @@ export default {
|
|
|
params = {}
|
|
|
params[label] = value
|
|
|
}
|
|
|
+ if(!this.editLayer.fill || label !== 'fill'){
|
|
|
+ params = {
|
|
|
+ fill:'#000'
|
|
|
+ }
|
|
|
+ }
|
|
|
this.editLayer[action](params)
|
|
|
if(Array.isArray(this.editLayer._objects)){
|
|
|
this.editLayer._objects?.map(item=>{
|
|
|
@@ -361,7 +367,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
// 添加到画布
|
|
|
- this.fcanvas.add(strokeObj);
|
|
|
+ this.fcanvas.add(markRaw(strokeObj));
|
|
|
this.clipStrokeObject = strokeObj;
|
|
|
this.fcanvas.requestRenderAll();
|
|
|
},
|