瀏覽代碼

update Web/src/components/cropper/index.vue.
去掉上传按钮绝对定位,因为在组件使用大型或者默认情况下组件会重叠,改为Flex 布局进行右侧对齐

Signed-off-by: 我是个笨蛋 <946658497@qq.com>

我是个笨蛋 8 月之前
父節點
當前提交
ad48ad128a
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      Web/src/components/cropper/index.vue

+ 10 - 1
Web/src/components/cropper/index.vue

@@ -37,7 +37,6 @@
 						:auto-upload="false"
 						:on-change="selectPicture"
 						:on-exceed="selectPictureExceed"
-						style="display: inline-block; position: absolute; right: 182px"
 					>
 						<el-button icon="ele-Picture">选择图片</el-button>
 					</el-upload>
@@ -199,4 +198,14 @@ defineExpose({
 		}
 	}
 }
+.dialog-footer {
+	display: flex;
+	align-items: center;
+	justify-content: flex-end;
+	gap: 12px;
+
+	.el-button+.el-button {
+		margin-left: 0 !important;
+	}
+}
 </style>