修改代码

This commit is contained in:
ival 2021-04-07 10:57:19 +08:00
parent 31cc8f75c5
commit 3240ca7760

View File

@ -5,7 +5,8 @@ const elementType = Object.fromEntries(Object.keys(graphic).map(type => [type, t
export const elementConst = {
[elementType.Line]: {
code: elementType.Line, name:'线段',
code: elementType.Line,
name:'线段',
formList: {
style: [
@ -16,7 +17,8 @@ export const elementConst = {
}
},
[elementType.Text]: {
code: elementType.Text, name:'文字',
code: elementType.Text,
name:'文字',
formList: {
style: [
@ -27,7 +29,8 @@ export const elementConst = {
}
},
[elementType.Rect]: {
code: elementType.Rect, name:'矩形',
code: elementType.Rect,
name:'矩形',
formList: {
style: [
@ -38,7 +41,8 @@ export const elementConst = {
}
},
[elementType.Circle]: {
code: elementType.Circle, name:'圆形',
code: elementType.Circle,
name:'圆形',
formList:{
style: [
@ -49,7 +53,8 @@ export const elementConst = {
}
},
[elementType.Polygon]: {
code: elementType.Polygon, name:'多边形',
code: elementType.Polygon,
name:'多边形',
formList: {
style: [
@ -60,7 +65,8 @@ export const elementConst = {
}
},
[elementType.Arrow]: {
code: elementType.Arrow, name:'箭头',
code: elementType.Arrow,
name:'箭头',
formList: {
style: [
@ -71,7 +77,8 @@ export const elementConst = {
}
},
[elementType.Polyline]: {
code: elementType.Polyline, name:'多边形折线段',
code: elementType.Polyline,
name:'多边形折线段',
formList: {
style: [
@ -82,7 +89,8 @@ export const elementConst = {
}
},
[elementType.Isogon]: {
code: elementType.Isogon, name:'正多边形',
code: elementType.Isogon,
name:'正多边形',
formList: {
style: [
@ -93,7 +101,8 @@ export const elementConst = {
}
},
[elementType.Ellipse]: {
code: elementType.Ellipse, name:'椭圆',
code: elementType.Ellipse,
name:'椭圆',
formList: {
style: [
@ -104,7 +113,8 @@ export const elementConst = {
}
},
[elementType.Arc]: {
code: elementType.Arc, name:'圆弧',
code: elementType.Arc,
name:'圆弧',
formList: {
style: [
@ -115,7 +125,8 @@ export const elementConst = {
}
},
[elementType.Sector]: {
code: elementType.Sector, name:'扇形',
code: elementType.Sector,
name:'扇形',
formList: {
style: [
@ -126,7 +137,8 @@ export const elementConst = {
}
},
[elementType.Heart]: {
code: elementType.Heart, name:'心形',
code: elementType.Heart,
name:'心形',
formList: {
style: [
@ -137,7 +149,8 @@ export const elementConst = {
}
},
[elementType.Droplet]: {
code: elementType.Droplet, name:'水滴',
code: elementType.Droplet,
name:'水滴',
formList: {
style: [