iscs 矩形右键代码调整
This commit is contained in:
parent
e560ee0e02
commit
544b930e48
@ -68,7 +68,23 @@ export default {
|
|||||||
'iscs'
|
'iscs'
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
watch: {
|
watch:{
|
||||||
|
'$store.state.iscs.rightClickCount': function (val) {
|
||||||
|
const model = this.$store.getters['iscs/updateDeviceData'];
|
||||||
|
if (model._type === 'IscsRect' ) {
|
||||||
|
this.buttonText = '修改';
|
||||||
|
this.showDeleteButton = true;
|
||||||
|
this.isUpdate = true;
|
||||||
|
this.form.code = model.code;
|
||||||
|
this.form.fillColor = model.fillColor;
|
||||||
|
this.form.borderWidth = model.borderWidth;
|
||||||
|
this.form.strokeColor = model.strokeColor;
|
||||||
|
this.form.width = model.width;
|
||||||
|
this.form.height = model.height;
|
||||||
|
this.form.x = model.point.x;
|
||||||
|
this.form.y = model.point.y;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -73,7 +73,22 @@ export default {
|
|||||||
'iscs'
|
'iscs'
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
watch: {
|
watch:{
|
||||||
|
'$store.state.iscs.rightClickCount': function (val) {
|
||||||
|
const model = this.$store.getters['iscs/updateDeviceData'];
|
||||||
|
if (model._type === 'IscsText' ) {
|
||||||
|
this.buttonText = '修改';
|
||||||
|
this.showDeleteButton = true;
|
||||||
|
this.isUpdate = true;
|
||||||
|
this.form.code = model.code;
|
||||||
|
this.form.context = model.context;
|
||||||
|
this.form.fontSize = model.fontSize;
|
||||||
|
this.form.fontWeight = model.fontWeight;
|
||||||
|
this.form.textFill = model.textFill;
|
||||||
|
this.form.x = model.point.x;
|
||||||
|
this.form.y = model.point.y;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user