import { ChartConfigValueType,ChartConfigProp } from "./component/chart.d"; import { ScaleDefault } from "./component/chart.ops"; // import { ChartConfigProp } from "./component/chart.d"; /** * 图形模型 */ export interface HeaderItemProp{ title : string ; icon ?: React.ReactNode ; key : string ; subItems?: HeaderItemProp[]; } /** * 头部菜单数据 */ export const HeaderItems : HeaderItemProp[] = [ { title : "图表", icon : undefined , key : "tubiao", subItems : [ { title : "柱形图", icon : undefined , key : "tubiao_zhuxingtu", subItems : [] }, { title : "折线图", icon : undefined, key : "tubiao_zhexiantu", subItems : [] }, { title : "饼图", icon : undefined, key : "tubiao_bingtu", subItems : [] }, { title : "折柱图", icon : undefined, key : "tubiao_zhezhutu", subItems : [] }, // { // title : "象形图", // icon : undefined, // key : "tubiao_xiangxingtu", // subItems : [] // }, { title : "雷达图", icon : undefined, key : "tubiao_leida", subItems : [] }, // { // title : "散点图", // icon : undefined, // key : "tubiao_sandiantu", // subItems : [] // }, { title : "漏斗图", icon : undefined, key : "tubiao_loudoutu", subItems : [] }, { title : "排名", icon : undefined, key : "tubiao_paiming", subItems : [] } ] }, { title : "文字", icon : undefined, key : "wenzi", subItems : [ { title : "文本框", icon : undefined, key : "wenzi_wenbenkuang", subItems : [] }, { title : "实时时间", icon : undefined, key : "wenzi_shishishijian", subItems : [] }, { title : "翻牌器", icon : undefined, key : "wenzi_fanpaiqi", subItems : [] }, { title : "日历", icon : undefined, key : "wenzi_rili", subItems: [] } ] }, { title : "地图", icon : undefined, key : "ditu", subItems : [ { title : "全国地图", icon : undefined, key : "ditu_quanguoditu", subItems : [] } ] }, { title : "媒体", icon : undefined, key:"meiti", subItems:[ { title : "图片", icon : undefined, key : "meiti_tupian", subItems : [] }, { title : "边框", icon : undefined, key : "meiti_biankuang", subItems : [] }, { title : "视频", icon : undefined, key : "meiti_shipin", subItems : [] }, ] }, { title : "指标", icon : undefined , key : "zhibiao", subItems : [ // { // title : "翻牌器", // icon : undefined, // key : "zhibiao_fanpaiqi", // subItems : [] // }, // { // title : "进度条", // icon : undefined, // key : "zhibiao_jindutiao", // subItems : [] // }, // { // title : "环形图", // icon : undefined, // key : "zhibiao_huanxingqi", // subItems : [] // }, { title : "仪表盘", icon : undefined, key : "zhibiao_yibiaopan", subItems : [] }, ] }, { title : "表格", icon : undefined, key : "biaoge", subItems : [ { title : "表格", icon : undefined, key : "biaoge_biaoge", subItems : [] } ] }, { title : "预览", icon : undefined, key : "yulan", subItems : [] }, { title : "上一步", icon : undefined, key : "huanyuan_1", subItems : [] }, { title : "保存", icon : undefined, key : "baocun", subItems : [] } ] export interface GlobalItemProp { index : number ; data: ChartConfigProp ; } /** * 全局数据模型 */ export interface GlobalDataProp { [key:string] : GlobalItemProp ; } /** * 页面整体配置项 */ export const PageConfig : ChartConfigProp = { config : { title : "页面配置", config:{ "大屏宽度":{ title : "大屏宽度", value : 1920, subItem : undefined , key :"大屏宽度", valueType:ChartConfigValueType.NUMBER_INPUT }, "大屏高度":{ title : "大屏高度", value : 1080, subItem : undefined , key :"大屏高度", valueType:ChartConfigValueType.NUMBER_INPUT }, "大屏简介":{ title : "大屏简介", value : "", subItem : undefined , key :"大屏简介", valueType:ChartConfigValueType.INPUT }, "背景颜色":{ title : "背景颜色", value : "#000", subItem : undefined , key :"背景颜色", valueType:ChartConfigValueType.COLOR_SELECTOR }, "背景图片":{ title : "背景图片", value : "https://ssl.zhuanyegou.com/static/uatdevops/%E8%83%8C%E6%99%AF%E5%9B%BE.png", subItem : undefined , key :"背景图片", valueType:ChartConfigValueType.IMG_SELECTOR }, "缩放":{ title : "缩放", value : ScaleDefault, subItem : undefined , key :"缩放", valueType:ChartConfigValueType.SLIDE }, "参数":{ title : "参数", value : "", subItem : undefined , key :"参数", valueType:ChartConfigValueType.INPUT } } } }