You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
JavaScript
59 lines
1.1 KiB
JavaScript
1 year ago
|
import { commonConfig, displayOption } from 'data-room-ui/js/config'
|
||
|
|
||
|
export const settingConfig = {
|
||
|
padding: [30, 30, 30, 60],
|
||
|
legend: false,
|
||
|
isGroup: true,
|
||
|
header: [],
|
||
|
columnWidth: [],
|
||
|
align: [],
|
||
|
data: 0,
|
||
|
// 设置面板属性的显隐
|
||
|
displayOption: {
|
||
|
...displayOption,
|
||
|
params: {
|
||
|
enable: false
|
||
|
},
|
||
|
headerField: {
|
||
|
enable: false
|
||
|
},
|
||
|
metricField: {
|
||
|
// 指标
|
||
|
label: '指标',
|
||
|
enable: false,
|
||
|
multiple: false // 是否多选
|
||
|
},
|
||
|
dimensionField: {
|
||
|
// 表格列
|
||
|
label: '展示字段', // 维度/查询字段
|
||
|
enable: true,
|
||
|
multiple: false // 是否多选
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
const customConfig = {
|
||
|
type: 'indicatorCard',
|
||
|
root: {
|
||
|
version: '2023071001',
|
||
|
contribution: false,
|
||
|
loading: false
|
||
|
},
|
||
|
customize: {
|
||
|
borderRadius: 0,
|
||
|
borderWidth: 0,
|
||
|
lineDistance: 25,
|
||
|
borderColor: '',
|
||
|
bgColor: '',
|
||
|
firstSize: 50,
|
||
|
firstColor: '#ffffff',
|
||
|
firstWeight: 500,
|
||
|
secondSize: 50,
|
||
|
secondColor: '#ffffff',
|
||
|
secondWeight: 500,
|
||
|
secondLine: '装机处理及时率'
|
||
|
}
|
||
|
}
|
||
|
export const dataConfig = {
|
||
|
...commonConfig(customConfig)
|
||
|
}
|