修改代码

This commit is contained in:
ival 2021-04-08 09:50:07 +08:00
parent 4357eec04f
commit dcefdfab33

View File

@ -22,7 +22,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入起始点横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '起始点横坐标'
},
{
@ -58,7 +58,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入终止点纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '终止点纵坐标'}
// opts.shape.percent number 1 已显示的百分比,用于绘制动画。
]
@ -81,6 +81,7 @@ export const elementConst = {
name:'矩形',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -90,8 +91,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
{
@ -103,7 +103,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入左上角横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '左上角横坐标'
},
{
@ -115,7 +115,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入左上角纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '左上角纵坐标'
},
{
@ -162,6 +162,7 @@ export const elementConst = {
name:'圆形',
formList:{
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -171,8 +172,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
{
@ -184,7 +184,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'},
{
prop: 'cy',
@ -195,7 +195,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -218,6 +218,7 @@ export const elementConst = {
name:'多边形',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -227,8 +228,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
@ -264,6 +264,7 @@ export const elementConst = {
name:'正多边形',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -273,8 +274,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape:[
{
@ -286,7 +286,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'
},
{
@ -298,7 +298,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -333,6 +333,7 @@ export const elementConst = {
name:'椭圆',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -342,8 +343,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape:[
{
@ -355,7 +355,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'
},
{
@ -367,7 +367,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -379,7 +379,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入横向半径', trigger: 'blur' }
],
value: 30,
value: 50,
description: '横向半径'
},
{
@ -391,7 +391,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入纵向半径', trigger: 'blur' }
],
value: 50,
value: 30,
description: '纵向半径'
}
]
@ -414,7 +414,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'
},
{
@ -426,7 +426,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -487,6 +487,7 @@ export const elementConst = {
name:'扇形',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -496,8 +497,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
{
@ -509,7 +509,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'
},
{
@ -521,7 +521,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -545,7 +545,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入内半径', trigger: 'blur' }
],
value: 50,
value: 30,
description: '内半径'
},
{
@ -594,6 +594,7 @@ export const elementConst = {
name:'心形',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -603,8 +604,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
{
@ -616,7 +616,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'
},
{
@ -628,7 +628,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{
@ -663,6 +663,7 @@ export const elementConst = {
name:'水滴',
formList: {
style: [
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
@ -672,8 +673,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
{
@ -685,7 +685,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心横坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心横坐标'},
{
prop: 'cy',
@ -696,7 +696,7 @@ export const elementConst = {
rules:[
{ required: true, message:'请输入圆心纵坐标', trigger: 'blur' }
],
value: 10,
value: 0,
description: '圆心纵坐标'
},
{