forked from github/dataease
style(图表): 图片组样式调整
This commit is contained in:
parent
5903e40b71
commit
ea55a5c551
@ -88,6 +88,6 @@ const handleDragEnd = e => {
|
|||||||
}
|
}
|
||||||
.media-component {
|
.media-component {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 6px !important;
|
margin: 0 6px 12px 6px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -318,6 +318,7 @@ const list = [
|
|||||||
sizeX: 36,
|
sizeX: 36,
|
||||||
sizeY: 14,
|
sizeY: 14,
|
||||||
style: {
|
style: {
|
||||||
|
adaptation: 'adaptation',
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 300
|
height: 300
|
||||||
},
|
},
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="pic-main" @click="onPictureClick">
|
<div class="pic-main">
|
||||||
<img
|
<img
|
||||||
draggable="false"
|
draggable="false"
|
||||||
v-if="state.showUrl"
|
v-if="state.showUrl"
|
||||||
:style="imageAdapter"
|
:style="imageAdapter"
|
||||||
:src="imgUrlTrans(state.showUrl)"
|
:src="imgUrlTrans(state.showUrl)"
|
||||||
/>
|
/>
|
||||||
|
<template v-else>
|
||||||
|
<chart-empty-info
|
||||||
|
:themes="canvasStyleData.dashboard.themeColor"
|
||||||
|
:view-icon="view.type"
|
||||||
|
></chart-empty-info>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -28,8 +34,9 @@ import { getData } from '@/api/chart'
|
|||||||
import { parseJson } from '@/views/chart/components/js/util'
|
import { parseJson } from '@/views/chart/components/js/util'
|
||||||
import { mappingColor } from '@/views/chart/components/js/panel/common/common_table'
|
import { mappingColor } from '@/views/chart/components/js/panel/common/common_table'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
|
import ChartEmptyInfo from '@/views/chart/components/views/components/ChartEmptyInfo.vue'
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { canvasViewInfo, editMode, mobileInPc } = storeToRefs(dvMainStore)
|
const { canvasViewInfo, editMode, mobileInPc, canvasStyleData } = storeToRefs(dvMainStore)
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
emptyValue: '-',
|
emptyValue: '-',
|
||||||
data: null,
|
data: null,
|
||||||
|
@ -140,12 +140,7 @@ onBeforeUnmount(() => {
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span
|
<span style="margin-top: 2px" class="image-hint" :class="`image-hint_${themes}`">
|
||||||
style="margin-top: 2px"
|
|
||||||
v-if="!curComponent.propValue.url"
|
|
||||||
class="image-hint"
|
|
||||||
:class="`image-hint_${themes}`"
|
|
||||||
>
|
|
||||||
支持JPG、PNG、GIF、SVG
|
支持JPG、PNG、GIF、SVG
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
Loading…
Reference in New Issue
Block a user