diff --git a/frontend/src/components/canvas/components/RectangleAttr.vue b/frontend/src/components/canvas/components/RectangleAttr.vue
index d7d15b6952..da5f9b12ee 100644
--- a/frontend/src/components/canvas/components/RectangleAttr.vue
+++ b/frontend/src/components/canvas/components/RectangleAttr.vue
@@ -32,13 +32,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -48,9 +64,10 @@
-
+
+
@@ -101,7 +118,20 @@ export default {
}, {
value: '5',
label: '5'
- }]
+ }],
+ innerOpacity: 0
+ }
+ },
+ watch: {
+ innerOpacity: {
+ handler(oldVal, newVal) {
+ this.styleInfo['opacity'] = this.innerOpacity / 100
+ }
+ }
+ },
+ mounted() {
+ if (this.styleInfo['opacity']) {
+ this.innerOpacity = this.styleInfo['opacity'] * 100
}
},
computed: {
@@ -176,7 +206,7 @@ export default {
.el-card-main {
height: 34px;
z-index: 10;
- width: 210px;
+ width: 400px;
position: absolute;
}