fix:修复基础雷达图颜色设置失效问题

main
liu.shiyi 2 years ago
parent 9a663685e1
commit dac62b736f

@ -11,7 +11,7 @@
class="el-dropdown-link content-box" class="el-dropdown-link content-box"
:style="{'font-size': config.customize.fontSize +'px','font-weight': +config.customize.fontWeight,'background-image': `-webkit-linear-gradient(${config.customize.color})`}" :style="{'font-size': config.customize.fontSize +'px','font-weight': +config.customize.fontWeight,'background-image': `-webkit-linear-gradient(${config.customize.color})`}"
> >
暗黑主题 主题切换
</div> </div>
<el-dropdown-menu <el-dropdown-menu
slot="dropdown" slot="dropdown"

@ -1,6 +1,6 @@
// 配置版本号 // 配置版本号
const version = '2023092201' const version = '2023092202'
// 分类 // 分类
const category = 'Radar' const category = 'Radar'
// 标题 // 标题
@ -145,9 +145,9 @@ const setting = [
{ {
label: '数据点颜色', label: '数据点颜色',
type: 'colorPicker', // 设置组件类型 type: 'colorPicker', // 设置组件类型
field: 'point_color', // 字段 field: 'point_style_fill', // 字段
optionField: 'point.color', // 对应options中的字段 optionField: 'point.style.fill', // 对应options中的字段
value: '#ffffff', value: '#fff',
tabName: 'custom', tabName: 'custom',
groupName: 'graph' groupName: 'graph'
}, },
@ -159,7 +159,7 @@ const setting = [
value: 2, value: 2,
tabName: 'custom', tabName: 'custom',
groupName: 'graph' groupName: 'graph'
}, }
// 边距 padding // 边距 padding
] ]
@ -185,7 +185,7 @@ const option = {
xField: 'name', xField: 'name',
yField: 'star', yField: 'star',
smooth: false, smooth: false,
color: 'l(90) 0:#648ff7 1:#648ff7', color: 'l(0) 0:#648ff7 1:#648ff7',
theme: { theme: {
styleSheet: { styleSheet: {
backgroundColor: '' backgroundColor: ''
@ -210,7 +210,9 @@ const option = {
}, },
// 开启辅助点 // 开启辅助点
point: { point: {
color: '', style: {
fill: '#fff'
},
shape: '', shape: '',
size: 2 size: 2
}, },

Loading…
Cancel
Save