修改代码

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,7 +81,8 @@ export const elementConst = {
name:'矩形',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +162,8 @@ export const elementConst = {
name:'圆形',
formList:{
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +218,8 @@ export const elementConst = {
name:'多边形',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -227,8 +228,7 @@ export const elementConst = {
],
value: '#fff',
description: '填充样式。'
},
...form2ShapeStyle
}
],
shape: [
@ -264,7 +264,8 @@ export const elementConst = {
name:'正多边形',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +333,8 @@ export const elementConst = {
name:'椭圆',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +487,8 @@ export const elementConst = {
name:'扇形',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +594,8 @@ export const elementConst = {
name:'心形',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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,7 +663,8 @@ export const elementConst = {
name:'水滴',
formList: {
style: [
{
...form2ShapeStyle,
{
prop: 'fill',
label: '填充样式',
type: types.Color,
@ -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: '圆心纵坐标'
},
{