|
@@ -90,6 +90,9 @@ export const formatPre = [{
|
|
|
{
|
|
|
modelId:11,
|
|
|
text:'上4图+文字'
|
|
|
+ },{
|
|
|
+ modelId:12,
|
|
|
+ text:'上6图'
|
|
|
}
|
|
|
]
|
|
|
//版式id对应组件名
|
|
@@ -104,7 +107,8 @@ export const modelMap = {
|
|
|
8: 'Eight',
|
|
|
9: 'Nine',
|
|
|
10:'Ten',
|
|
|
- 11:'Ele'
|
|
|
+ 11:'Ele',
|
|
|
+ 12:'Twelve'
|
|
|
}
|
|
|
//版式信息,用于判断图表/文字插入哪个位置
|
|
|
export const modelInfo = {
|
|
@@ -177,8 +181,8 @@ export const modelInfo = {
|
|
|
elTextNum:1,
|
|
|
elTextPosition: 3
|
|
|
},
|
|
|
- 10:{
|
|
|
- elNum:7,
|
|
|
+ 12:{
|
|
|
+ elNum:6,
|
|
|
elType:['chart','chart','chart','chart','chart','chart'],
|
|
|
positions:[1,2,3,4,5,6],
|
|
|
elChartNum:6,
|
|
@@ -192,7 +196,15 @@ export const modelInfo = {
|
|
|
elChartNum:4,
|
|
|
elTextNum:1,
|
|
|
elTextPosition: 5
|
|
|
- }
|
|
|
+ },
|
|
|
+ 10:{
|
|
|
+ elNum:7,
|
|
|
+ elType:['chart','chart','chart','chart','chart','chart','text'],
|
|
|
+ positions:[1,2,3,4,5,6],
|
|
|
+ elChartNum:6,
|
|
|
+ elTextNum:1,
|
|
|
+ elTextPosition: 7
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
//给标题预留的位置,单位%
|
|
@@ -375,7 +387,7 @@ export const modelConfig = [{
|
|
|
}
|
|
|
]
|
|
|
},{
|
|
|
- modelId:10,
|
|
|
+ modelId:12,
|
|
|
elements:[{
|
|
|
position:1,
|
|
|
width:33*0.9,
|
|
@@ -416,14 +428,7 @@ export const modelConfig = [{
|
|
|
height:(restHeight)*0.48*0.9,
|
|
|
x:(33*0.1)/2+33*2,
|
|
|
y:(restHeight*0.48*0.1)/2+50
|
|
|
- }/* ,
|
|
|
- {
|
|
|
- position:7,
|
|
|
- width:100*0.9,
|
|
|
- height:(restHeight)*0.18*0.8,
|
|
|
- x:(100-100*0.9)/2,
|
|
|
- y:82
|
|
|
- } */]
|
|
|
+ }]
|
|
|
},{
|
|
|
modelId:11,
|
|
|
elements:[{
|
|
@@ -456,6 +461,56 @@ export const modelConfig = [{
|
|
|
height:(restHeight)*0.18*0.8,
|
|
|
x:(100-100*0.9)/2,
|
|
|
y:80
|
|
|
+ },{
|
|
|
+ modelId:10,
|
|
|
+ elements:[{
|
|
|
+ position:1,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2,
|
|
|
+ y:(restHeight*0.4*0.1)/2
|
|
|
+ },{
|
|
|
+ position:2,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2+33,
|
|
|
+ y:(restHeight*0.4*0.1)/2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position:3,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2+33*2,
|
|
|
+ y:(restHeight*0.4*0.1)/2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position:4,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2,
|
|
|
+ y:(restHeight*0.4*0.1)/2+40
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position:5,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2+33,
|
|
|
+ y:(restHeight*0.4*0.1)/2+40
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position:6,
|
|
|
+ width:33*0.9,
|
|
|
+ height:(restHeight)*0.4*0.9,
|
|
|
+ x:(33*0.1)/2+33*2,
|
|
|
+ y:(restHeight*0.4*0.1)/2+40
|
|
|
+ },
|
|
|
+ {
|
|
|
+ position:7,
|
|
|
+ width:100*0.9,
|
|
|
+ height:(restHeight)*0.18*0.8,
|
|
|
+ x:(100-100*0.9)/2,
|
|
|
+ y:80
|
|
|
+ }]
|
|
|
}]
|
|
|
}
|
|
|
]
|
|
@@ -688,6 +743,7 @@ export const BaseTextShape = {
|
|
|
richContent:''
|
|
|
}
|
|
|
//默认情况下,版式内部位置对应的组件元素
|
|
|
+//用于版式渲染,版式内切换元素位置
|
|
|
export const defaultPosition = {
|
|
|
1:{//modelId
|
|
|
1:{type:'chart'},//position
|
|
@@ -729,14 +785,13 @@ export const defaultPosition = {
|
|
|
2:{type:'chart'},
|
|
|
3:{type:'text'}
|
|
|
},
|
|
|
- 10:{
|
|
|
+ 12:{
|
|
|
1:{type:'chart'},
|
|
|
2:{type:'chart'},
|
|
|
3:{type:'chart'},
|
|
|
4:{type:'chart'},
|
|
|
5:{type:'chart'},
|
|
|
6:{type:'chart'},
|
|
|
- /* 7:{type:'text'} */
|
|
|
},
|
|
|
11:{
|
|
|
1:{type:'chart'},
|
|
@@ -744,7 +799,16 @@ export const defaultPosition = {
|
|
|
3:{type:'chart'},
|
|
|
4:{type:'chart'},
|
|
|
5:{type:'text'},
|
|
|
- }
|
|
|
+ },
|
|
|
+ 10:{
|
|
|
+ 1:{type:'chart'},
|
|
|
+ 2:{type:'chart'},
|
|
|
+ 3:{type:'chart'},
|
|
|
+ 4:{type:'chart'},
|
|
|
+ 5:{type:'chart'},
|
|
|
+ 6:{type:'chart'},
|
|
|
+ 7:{type:'text'}
|
|
|
+ },
|
|
|
}
|
|
|
//画笔工具栏
|
|
|
export const boardTool = [
|