diff --git a/src/components/Canvas/DepthCanvas/components/brush-control-panel.vue b/src/components/Canvas/DepthCanvas/components/brush-control-panel.vue
index af24f34..298c3a7 100644
--- a/src/components/Canvas/DepthCanvas/components/brush-control-panel.vue
+++ b/src/components/Canvas/DepthCanvas/components/brush-control-panel.vue
@@ -7,7 +7,7 @@
:is-input="false"
v-model="brushSize"
:tip-formatter="(v) => v + 'px'"
- :min="5"
+ :min="1"
:max="100"
@input="onInputSize"
/>
diff --git a/src/components/Canvas/DepthCanvas/components/details-panel/basic-info.vue b/src/components/Canvas/DepthCanvas/components/details-panel/basic-info.vue
new file mode 100644
index 0000000..da5b100
--- /dev/null
+++ b/src/components/Canvas/DepthCanvas/components/details-panel/basic-info.vue
@@ -0,0 +1,65 @@
+
+
+
+ X:
+ {{ object.left }}
+
+
+ Y:
+ {{ object.top }}
+
+
+ Width:
+ {{ object.width }}
+
+
+ Height:
+ {{ object.height }}
+
+
+ 缩放X:
+ {{ object.scaleX }}
+
+
+ 缩放Y:
+ {{ object.scaleY }}
+
+
+ Angle:
+ {{ object.angle }}
+
+
+
+
+
+
+
diff --git a/src/components/Canvas/DepthCanvas/components/details-panel/index.vue b/src/components/Canvas/DepthCanvas/components/details-panel/index.vue
index 1ea4906..5e61ee3 100644
--- a/src/components/Canvas/DepthCanvas/components/details-panel/index.vue
+++ b/src/components/Canvas/DepthCanvas/components/details-panel/index.vue
@@ -8,34 +8,7 @@
-
- X:
- {{ activeObject.left }}
-
-
- Y:
- {{ activeObject.top }}
-
-
- Width:
- {{ activeObject.width }}
-
-
- Height:
- {{ activeObject.height }}
-
-
- 缩放X:
- {{ activeObject.scaleX }}
-
-
- 缩放Y:
- {{ activeObject.scaleY }}
-
-
- Angle:
- {{ activeObject.angle }}
-
+
@@ -51,8 +24,7 @@
const activeObject = ref(null)
const updateActiveObject = () => {
const obj = layers.value.find((v: any) => v.info.id === activeID.value)
- // activeObject.value = obj?.toJSON('info') || null
- activeObject.value = obj
+ activeObject.value = obj ? JSON.parse(JSON.stringify(obj)) : null
}
watch(layers, () => updateActiveObject())
watch(activeID, () => updateActiveObject())
@@ -95,23 +67,7 @@
}
> .content {
padding: 1.6rem;
- > div {
- padding: 0.8rem 0;
- display: flex;
- align-items: center;
- > .label {
- font-size: 1.6rem;
- color: #000;
- font-weight: bold;
- min-width: 7rem;
- text-align: right;
- margin-right: 0.8rem;
- }
- > .value {
- font-size: 1.6rem;
- color: #333;
- }
- }
+
}
}