|
|
@@ -9,7 +9,8 @@
|
|
|
overflow: 'hidden',
|
|
|
flexDirection: 'column',
|
|
|
gap: '8px',
|
|
|
- padding: '8px'
|
|
|
+ padding: '8px',
|
|
|
+ borderRadius: props.borderRadius + 'px'
|
|
|
}" @click="$emit('click', $event)">
|
|
|
<!-- 预览窗口 -->
|
|
|
<div v-if="mediaItems.length > 0" class="preview-container">
|
|
|
@@ -62,11 +63,13 @@ const props = withDefaults(
|
|
|
selected?: boolean;
|
|
|
readonly?: boolean;
|
|
|
modelValue?: any;
|
|
|
+ borderRadius?: number;
|
|
|
}>(),
|
|
|
{
|
|
|
selected: false,
|
|
|
readonly: false,
|
|
|
- modelValue: null
|
|
|
+ modelValue: null,
|
|
|
+ borderRadius: 0
|
|
|
}
|
|
|
);
|
|
|
|
|
|
@@ -263,8 +266,9 @@ function onResizeMouseDown(dir: string, e: MouseEvent) {
|
|
|
<style scoped>
|
|
|
.media-asset-board-wrapper {
|
|
|
background: #f9fbfd;
|
|
|
+ border-radius: inherit;
|
|
|
border: 2px dashed #b3c7e6;
|
|
|
- border-radius: 10px;
|
|
|
+ border-radius: 0px;
|
|
|
transition: border-color 0.2s;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
@@ -288,6 +292,8 @@ function onResizeMouseDown(dir: string, e: MouseEvent) {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+ border-radius: inherit;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.media-item {
|
|
|
@@ -297,6 +303,7 @@ function onResizeMouseDown(dir: string, e: MouseEvent) {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+ border-radius: inherit;
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.5s ease-in-out;
|
|
|
}
|
|
|
@@ -309,6 +316,7 @@ function onResizeMouseDown(dir: string, e: MouseEvent) {
|
|
|
max-width: 100%;
|
|
|
max-height: 100%;
|
|
|
object-fit: contain;
|
|
|
+ border-radius: inherit;
|
|
|
}
|
|
|
|
|
|
.media-asset-icon {
|