修改看板

master
夜笙歌 4 days ago
parent 68095c894e
commit 0ced8ec51f

@ -721,7 +721,7 @@
:headers="headers" :headers="headers"
:on-success="(res)=>nodeAttrForm.backgroundImage = res.data.url" :on-success="(res)=>nodeAttrForm.backgroundImage = res.data.url"
> >
<img v-if="nodeAttrForm.backgroundImage" :src="nodeAttrForm.backgroundImage" class="avatar" /> <img v-if="nodeAttrForm.backgroundImage" :src="nodeAttrForm.backgroundImage" class="avatar" alt=""/>
<el-icon v-else class="avatar-uploader-icon"> <el-icon v-else class="avatar-uploader-icon">
<Plus /> <Plus />
</el-icon> </el-icon>
@ -764,7 +764,7 @@
<!-- <el-tooltip--> <!-- <el-tooltip-->
<!-- class="box-item"--> <!-- class="box-item"-->
<!-- effect="dark"--> <!-- effect="dark"-->
<!-- :content="i"-- <!-- :content="i"-->
<!-- placement="bottom"--> <!-- placement="bottom"-->
<!-- v-for="i in icons.filter(e=>e.includes(selectIconInput))"--> <!-- v-for="i in icons.filter(e=>e.includes(selectIconInput))"-->
<!-- >--> <!-- >-->
@ -775,7 +775,6 @@
<!-- </el-tooltip>--> <!-- </el-tooltip>-->
</div> </div>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
<el-form-item label="图标路径" v-if="Object.keys(nodeAttrForm).includes('iconSrc')"> <el-form-item label="图标路径" v-if="Object.keys(nodeAttrForm).includes('iconSrc')">
<el-input v-model="nodeAttrForm.iconSrc" style="width: 100%" /> <el-input v-model="nodeAttrForm.iconSrc" style="width: 100%" />

@ -105,29 +105,26 @@ const defaultOption = {
name: props.data?.options?.xName || '', name: props.data?.options?.xName || '',
type: 'category', type: 'category',
axisLine: { axisLine: {
show: props.data?.options?.xAxisLineShow || false,
lineStyle: { lineStyle: {
color: '#DCE2E8' color: props.data?.options?.xAxisLineColor || '#DCE2E8'
} }
}, },
axisTick: { axisTick: {
show: true show: props.data?.options?.xAxisTickShow || false,
}, lineStyle: {
axisLabel: { color: props.data?.options?.xAxisTickColor || '#DCE2E8'
interval: 0,
textStyle: {
color: '#fff'
},
fontSize: 12,
margin: 3
},
axisPointer: {
label: {
padding: [0, 0, 0, 0],
margin: 0,
fontSize: 12
} }
}, },
boundaryGap: true axisLabel: {
show: props.data?.options?.xAxisLabelShow || false,
interval: props.data?.options?.xAxisLabelInterval ? 0 : 'auto',
formatter: props.data?.options?.xAxisLabelFormatter || null,
color: props.data?.options?.xAxisLabelColor || '#fff',
fontSize: props.data?.options?.xAxisLabelFontSize || 12,
margin: props.data?.options?.xAxisLabelMargin || 3
},
boundaryGap: props.data?.options?.boundaryGap || false
} }
], ],
yAxis: [ yAxis: [

@ -10,7 +10,29 @@ const getId = (type) => {
const getOption = (e) => { const getOption = (e) => {
if (e === 'line' || e === 'multiLines') { if (e === 'line' || e === 'multiLines') {
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true }; return {
title: '',
yNames: [],
gridTop: 30,
gridLeft: 5,
gridBottom: 10,
gridRight: 10,
xName: '',
xAxisLineShow: true,
xAxisLineColor: '#DCE2E8',
xAxisTickShow: true,
xAxisTickColor: '#DCE2E8',
xAxisLabelShow: true,
xAxisLabelInterval: false,
xAxisLabelFormatter: '',
xAxisLabelColor: '#fff',
xAxisLabelFontSize: 12,
xAxisLabelMargin: 3,
boundaryGap: true,
yName: '',
tooltip: true,
legend: true
};
} else if (e === 'bar' || e === 'multiBars') { } else if (e === 'bar' || e === 'multiBars') {
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true }; return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true };
} else if (e === 'backgroundBar') { } else if (e === 'backgroundBar') {

Loading…
Cancel
Save