Merge pull request #8046 from dataease/pr@dev@refactor_graphical

refactor(数据大屏): 图形组件样式变更
This commit is contained in:
王嘉豪 2024-02-18 18:41:06 +08:00 committed by GitHub
commit 9123a7699d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 82 deletions

View File

@ -70,18 +70,6 @@ export const CANVAS_MATERIAL = [
type: 'graphical',
title: '矩形',
icon: 'graphical-rect'
},
{
value: 'triangle',
type: 'graphical',
title: '三角形',
icon: 'graphical-triangle'
},
{
value: 'circular',
type: 'graphical',
title: '圆形',
icon: 'graphical-circular'
}
]
},

View File

@ -195,10 +195,10 @@ const list = [
sizeX: 15,
sizeY: 15,
style: {
width: 300,
height: 200,
color: '#000000',
board: 1
borderColor: '#000',
borderWidth: 1,
backgroundColor: '',
borderStyle: 'solid'
}
},
{

View File

@ -95,67 +95,12 @@ onBeforeUnmount(() => {
<template>
<div class="attr-list de-collapse-style">
<input
id="input"
ref="files"
type="file"
accept=".jpeg,.jpg,.png,.gif"
hidden
@click="
e => {
e.target.value = ''
}
"
@change="reUpload"
/>
<CommonAttr
:themes="themes"
:element="curComponent"
:background-color-picker-width="197"
:background-border-select-width="197"
>
<el-collapse-item :effect="themes" title="图片" name="picture">
<el-row class="img-area" :class="`img-area_${themes}`">
<el-col style="width: 130px !important">
<el-upload
:themes="themes"
action=""
accept=".jpeg,.jpg,.png,.gif,.svg"
class="avatar-uploader"
list-type="picture-card"
:class="{ disabled: uploadDisabled }"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:before-upload="beforeUploadCheck"
:http-request="upload"
:file-list="fileList"
>
<el-icon><Plus /></el-icon>
</el-upload>
<img-view-dialog v-model="dialogVisible" :image-url="dialogImageUrl"></img-view-dialog>
</el-col>
</el-row>
<el-row style="margin-bottom: 16px">
<span
style="margin-top: 2px"
v-if="!curComponent.propValue.url"
class="image-hint"
:class="`image-hint_${themes}`"
>
支持JPGPNGGIF
</span>
<el-button
size="small"
style="margin: 8px 0 0 -4px"
v-if="curComponent.propValue.url"
text
@click="goFile"
>
重新上传
</el-button>
</el-row>
</el-collapse-item>
</CommonAttr>
</div>
</template>

View File

@ -1,15 +1,5 @@
<template>
<div class="rect-main">
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
<rect
width="100%"
height="100%"
fill="transparent"
:stroke="style.color"
:stroke-width="style.fontSize"
/>
</svg>
</div>
<div class="rect-main"></div>
</template>
<script setup lang="ts">