初始化
This commit is contained in:
59
frontend/packages/BasicComponents/LinkChart/settingConfig.js
Normal file
59
frontend/packages/BasicComponents/LinkChart/settingConfig.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @Author: liu.shiyi
|
||||
* @Date: 2022-10-13 11:18:03
|
||||
* @LastEditTime: 2022-10-13 13:55:11
|
||||
*/
|
||||
import { commonConfig, displayOption } from 'data-room-ui/js/config'
|
||||
|
||||
export const settingConfig = {
|
||||
theme: 'dark',
|
||||
text: '超链接占位符', // text内容
|
||||
// 设置面板属性的显隐
|
||||
displayOption: {
|
||||
...displayOption,
|
||||
metricField: {
|
||||
// 指标
|
||||
label: '指标',
|
||||
enable: true,
|
||||
multiple: false // 是否多选
|
||||
},
|
||||
dimensionField: {
|
||||
// 维度
|
||||
label: '维度', // 维度/查询字段
|
||||
enable: false,
|
||||
multiple: true // 是否多选
|
||||
}
|
||||
}
|
||||
}
|
||||
const customConfig = {
|
||||
type: 'linkChart',
|
||||
root: {
|
||||
version: '2023071001',
|
||||
url: 'https://www.runoob.com/',
|
||||
// 绕x轴旋转角度
|
||||
rotateX: 0,
|
||||
// 绕y轴旋转角度
|
||||
rotateY: 0,
|
||||
// 绕z轴旋转角度
|
||||
rotateZ: 0,
|
||||
// 透视距离
|
||||
perspective: 0,
|
||||
skewX: 0,
|
||||
skewY: 0
|
||||
},
|
||||
customize: {
|
||||
title: '超链接占位符',
|
||||
fontSize: 20,
|
||||
fontWeight: 700,
|
||||
color: 'left,#007aff,#007aff',
|
||||
url: 'http://gcpaas.gccloud.com', // 链接地址
|
||||
openType: '_blank', // 打开方式
|
||||
dialogW: 1000, // 弹窗宽度
|
||||
dialogH: 500// 弹窗高度
|
||||
}
|
||||
|
||||
}
|
||||
export const dataConfig = {
|
||||
...commonConfig(customConfig)
|
||||
}
|
||||
Reference in New Issue
Block a user