Skip to content

Commit

Permalink
fix: 修复边框属性值回填问题 (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchenguang1998 authored May 9, 2024
1 parent 6fae772 commit 0fe8ce8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/attribute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,14 @@ const getObjectAttr = (e) => {
baseAttr.angle = activeObject.get('angle') || 0;
baseAttr.points = activeObject.get('points') || {};
baseAttr.linkData = activeObject.get('linkData') || [null, null];
const strokeDashArray = JSON.stringify(activeObject.get('strokeDashArray') || []);
const target = strokeDashList.find((item) => {
return (
JSON.stringify(item.value.strokeDashArray) === strokeDashArray &&
activeObject.get('strokeLineCap') === item.value.strokeLineCap
);
});
target && (baseAttr.strokeDashArray = target.label);
const textTypes = ['i-text', 'text', 'textbox'];
if (textTypes.includes(activeObject.type)) {
Expand Down

0 comments on commit 0fe8ce8

Please sign in to comment.