修改代码
This commit is contained in:
parent
31cc8f75c5
commit
3240ca7760
@ -5,7 +5,8 @@ const elementType = Object.fromEntries(Object.keys(graphic).map(type => [type, t
|
|||||||
|
|
||||||
export const elementConst = {
|
export const elementConst = {
|
||||||
[elementType.Line]: {
|
[elementType.Line]: {
|
||||||
code: elementType.Line, name:'线段',
|
code: elementType.Line,
|
||||||
|
name:'线段',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -16,7 +17,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Text]: {
|
[elementType.Text]: {
|
||||||
code: elementType.Text, name:'文字',
|
code: elementType.Text,
|
||||||
|
name:'文字',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -27,7 +29,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Rect]: {
|
[elementType.Rect]: {
|
||||||
code: elementType.Rect, name:'矩形',
|
code: elementType.Rect,
|
||||||
|
name:'矩形',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -38,7 +41,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Circle]: {
|
[elementType.Circle]: {
|
||||||
code: elementType.Circle, name:'圆形',
|
code: elementType.Circle,
|
||||||
|
name:'圆形',
|
||||||
formList:{
|
formList:{
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -49,7 +53,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Polygon]: {
|
[elementType.Polygon]: {
|
||||||
code: elementType.Polygon, name:'多边形',
|
code: elementType.Polygon,
|
||||||
|
name:'多边形',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -60,7 +65,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Arrow]: {
|
[elementType.Arrow]: {
|
||||||
code: elementType.Arrow, name:'箭头',
|
code: elementType.Arrow,
|
||||||
|
name:'箭头',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -71,7 +77,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Polyline]: {
|
[elementType.Polyline]: {
|
||||||
code: elementType.Polyline, name:'多边形折线段',
|
code: elementType.Polyline,
|
||||||
|
name:'多边形折线段',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -82,7 +89,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Isogon]: {
|
[elementType.Isogon]: {
|
||||||
code: elementType.Isogon, name:'正多边形',
|
code: elementType.Isogon,
|
||||||
|
name:'正多边形',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -93,7 +101,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Ellipse]: {
|
[elementType.Ellipse]: {
|
||||||
code: elementType.Ellipse, name:'椭圆',
|
code: elementType.Ellipse,
|
||||||
|
name:'椭圆',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -104,7 +113,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Arc]: {
|
[elementType.Arc]: {
|
||||||
code: elementType.Arc, name:'圆弧',
|
code: elementType.Arc,
|
||||||
|
name:'圆弧',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -115,7 +125,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Sector]: {
|
[elementType.Sector]: {
|
||||||
code: elementType.Sector, name:'扇形',
|
code: elementType.Sector,
|
||||||
|
name:'扇形',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -126,7 +137,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Heart]: {
|
[elementType.Heart]: {
|
||||||
code: elementType.Heart, name:'心形',
|
code: elementType.Heart,
|
||||||
|
name:'心形',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
@ -137,7 +149,8 @@ export const elementConst = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[elementType.Droplet]: {
|
[elementType.Droplet]: {
|
||||||
code: elementType.Droplet, name:'水滴',
|
code: elementType.Droplet,
|
||||||
|
name:'水滴',
|
||||||
formList: {
|
formList: {
|
||||||
style: [
|
style: [
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user